mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Adds setMoveCooldown()
This commit is contained in:
@@ -170,7 +170,7 @@
|
||||
|
||||
var/shoot_time = (_burst - 1)*_burst_delay
|
||||
user.setClickCooldown(shoot_time)
|
||||
if(user.client) user.client.move_delay = world.time + shoot_time //no moving while shooting either
|
||||
user.setMoveCooldown(shoot_time) //no moving while shooting either
|
||||
next_fire_time = world.time + shoot_time
|
||||
|
||||
//actually attempt to shoot
|
||||
@@ -203,7 +203,7 @@
|
||||
|
||||
//update timing
|
||||
user.setClickCooldown(4)
|
||||
if(user.client) user.client.move_delay = world.time + _move_delay
|
||||
user.setMoveCooldown(_move_delay)
|
||||
next_fire_time = world.time + _fire_delay
|
||||
|
||||
if(muzzle_flash)
|
||||
|
||||
Reference in New Issue
Block a user