Files
CHOMPStation2/modular_chomp/code/modules/projectiles/gun.dm
FluffMedic c14d24d058 Cursed Traits (#7568)
Co-authored-by: Raeschen <rycoop29@gmail.com>
2024-02-16 11:44:52 +01:00

16 lines
748 B
Plaintext

// prevent gun activation when stealth swimming. The low alpha hides you from NPC AI, which allows you to cheese mobs.
//Just adding onto this code for funny net gun
/obj/item/weapon/gun/special_check(var/mob/user)
var/mob/living/L = user
if(istype(L))
if(L.has_modifier_of_type(/datum/modifier/underwater_stealth))
to_chat(user,"<span class='warning'>You cannot use guns whilst hiding underwater!</span>")
return 0
else if(L.has_modifier_of_type(/datum/modifier/rednet))
to_chat(user,"<span class='warning'>Your gun refuses to fire!</span>")
return 0
else if(L.has_modifier_of_type(/datum/modifier/trait/thickdigits))
to_chat(user,"<span class='warning'>Your hands can't pull the trigger!!</span>")
return 0
return ..()