tweaks to crouch etc
This commit is contained in:
@@ -192,16 +192,9 @@ func spawn_casing():
|
||||
|
||||
func bullet_fire():
|
||||
var instance_bullet
|
||||
if hitscan_enabled:
|
||||
instance_bullet = bullet_fake.instantiate()
|
||||
else:
|
||||
instance_bullet = bullet.instantiate()
|
||||
instance_bullet = bullet.instantiate()
|
||||
instance_bullet.position = barrel_raycast.global_position
|
||||
#shoot bullet from real gun if gun is folded up
|
||||
if player.gun_folded == false:
|
||||
instance_bullet.transform.basis = barrel_raycast.global_transform.basis
|
||||
else:
|
||||
instance_bullet.transform.basis = barrel_raycast.global_transform.basis
|
||||
instance_bullet.transform.basis = barrel_raycast.global_transform.basis
|
||||
instance_bullet.bullet_speed = bullet_speed
|
||||
instance_bullet.player_velocity = player.velocity * transform.basis
|
||||
instance_bullet.bullet_drop = bullet_drop
|
||||
@@ -211,7 +204,7 @@ func bullet_fire():
|
||||
instance_bullet.bullet_target = tracker
|
||||
instance_bullet.instance_bullethole = bullethole.instantiate()
|
||||
instance_bullet.player_position = player.global_position
|
||||
get_tree().current_scene.add_child(instance_bullet)
|
||||
get_tree().get_root().add_child(instance_bullet)
|
||||
|
||||
|
||||
func swapped_out():
|
||||
|
||||
Reference in New Issue
Block a user