Files
Aurora.3/code/modules/projectiles/targeting/targeting_client.dm
Pacmandevil ff3b59f67f Adds a cooldown to aiming after shooting, also makes shooting while aiming drop the aim (#3271)
The cooldown is currently 3 seconds as suggested by this thread

also adds a nifty proc to Aiming to set said cool-down, it's variable.
The proc is "aim_cooldown(x)" with x being the time you want them unable to aim.
2017-08-29 23:18:59 +03:00

12 lines
519 B
Plaintext

//These are called by the on-screen buttons, adjusting what the victim can and cannot do.
/client/proc/add_gun_icons()
if(!mob) return 1 // This can runtime if someone manages to throw a gun out of their hand before the proc is called.
screen |= mob.item_use_icon
screen |= mob.gun_move_icon
screen |= mob.radio_use_icon
/client/proc/remove_gun_icons()
if(!mob) return 1 // Runtime prevention on N00k agents spawning with SMG
screen -= mob.item_use_icon
screen -= mob.gun_move_icon
screen -= mob.radio_use_icon