pellet spread, bulletholes and balance fixes
This commit is contained in:
parent
eabc137ce8
commit
74e37f8a18
17 changed files with 261 additions and 72 deletions
13
weapons/gun/pellet_spread/pellet_spread.gd
Normal file
13
weapons/gun/pellet_spread/pellet_spread.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue