mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
Fix broken tesh mechanics + nerf underwater diving
This commit is contained in:
9
modular_chomp/code/modules/projectiles/gun.dm
Normal file
9
modular_chomp/code/modules/projectiles/gun.dm
Normal file
@@ -0,0 +1,9 @@
|
||||
// prevent gun activation when stealth swimming. The low alpha hides you from NPC AI, which allows you to cheese mobs.
|
||||
/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
|
||||
|
||||
return ..()
|
||||
Reference in New Issue
Block a user