fixed mac 10 mag spawning by just pushing the mark functions closer to each other
This commit is contained in:
@@ -162,14 +162,13 @@ func reload():
|
||||
|
||||
func spawn_mag():
|
||||
var instance_mag = weapon_info.mag.instantiate()
|
||||
if spawn_av_lv.size() == 1:
|
||||
await spawn_av_lv.size() ==2
|
||||
var anim_velocity = solve_anim_av_lv()
|
||||
|
||||
instance_mag.position = mag_ejector.global_position
|
||||
instance_mag.transform.basis = mag_ejector.global_transform.basis
|
||||
instance_mag.linear_velocity += global_transform.basis * (anim_velocity["lv"] * 5) + player.velocity
|
||||
instance_mag.angular_velocity += global_transform.basis * anim_velocity["av"]
|
||||
|
||||
get_tree().get_root().add_child(instance_mag)
|
||||
|
||||
func spawn_casing():
|
||||
|
||||
Reference in New Issue
Block a user