tempknife
This commit is contained in:
parent
c970d1e417
commit
f5a7a84c84
4 changed files with 55 additions and 8 deletions
|
|
@ -3,9 +3,9 @@ extends WeaponState
|
|||
@export var vertical_curve: Curve
|
||||
@export var horizontal_curve: Curve
|
||||
|
||||
@export var raycast: RayCast3D
|
||||
@export var emptyable: bool
|
||||
@export var damage: int
|
||||
@export var shoot_distance: float = 100
|
||||
|
||||
@export var fire_timer: Timer
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ func fire() -> void:
|
|||
machine.animation_player.play(with_morphems("shoot"))
|
||||
|
||||
if is_multiplayer_authority():
|
||||
Session.shoot(damage)
|
||||
Session.shoot(damage,shoot_distance)
|
||||
|
||||
fire_timer.start()
|
||||
machine.player_camera.recoil(horizontal_curve.sample(bullets_shot),vertical_curve.sample(bullets_shot))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue