tempknife

This commit is contained in:
Rendo 2025-11-30 02:16:24 +05:00
commit f5a7a84c84
4 changed files with 55 additions and 8 deletions

View file

@ -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))