pellet spread, bulletholes and balance fixes

This commit is contained in:
Rendo 2025-12-14 14:54:35 +05:00
commit 74e37f8a18
17 changed files with 261 additions and 72 deletions

View file

@ -0,0 +1,13 @@
@icon("res://weapons/gun/pellet_spread/icon.png")
class_name PelletSpread extends Path2D
func get_dots() -> PackedVector2Array:
var result: PackedVector2Array
for i in curve.point_count:
result.append(curve.get_point_position(i))
for i in range(len(result)):
result[i] += get_viewport_rect().size/2.0
return result