Files
Aurora.3/code/modules/projectiles/targeting/targeting_client.dm
Cody Brittain b981ee6854 Updated targeting code (#17845)
* Updated targeting code

* Spellcheck and missing code addition

* Re-add balance code

* Apply suggestions from code review

Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>

* Resolve issues from Code Review

---------

Co-authored-by: Cody Brittain <cbrittain10@live.com>
Co-authored-by: Fluffy <65877598+FluffyGhoster@users.noreply.github.com>
2023-12-05 11:37:11 +00:00

17 lines
532 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 TRUE // 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 TRUE // Runtime prevention on N00k agents spawning with SMG
screen -= mob.item_use_icon
screen -= mob.gun_move_icon
screen -= mob.radio_use_icon