Fix broken tesh mechanics + nerf underwater diving

This commit is contained in:
Raeschen
2022-11-13 17:46:19 +01:00
parent fdc1fff93b
commit b34b2ce48f
3 changed files with 38 additions and 1 deletions

View 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 ..()