mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Fixes a bug that allowed turret guns to be fired by mobs. (#20451)
* TRIGGER_GUARD_NONE works properly * uses FALSE instead of 0
This commit is contained in:
@@ -29,7 +29,6 @@ GLOBAL_LIST_INIT(summoned_guns, list(
|
||||
/obj/item/gun/projectile/automatic/l6_saw,
|
||||
/obj/item/gun/projectile/automatic/m90,
|
||||
/obj/item/gun/energy/alien,
|
||||
/obj/item/gun/energy/gun/turret,
|
||||
/obj/item/gun/energy/pulse/carbine,
|
||||
/obj/item/gun/energy/decloner,
|
||||
/obj/item/gun/energy/mindflayer,
|
||||
|
||||
@@ -1032,7 +1032,10 @@
|
||||
/mob/living/proc/can_use_guns(obj/item/gun/G)
|
||||
if(G.trigger_guard != TRIGGER_GUARD_ALLOW_ALL && !IsAdvancedToolUser() && !issmall(src))
|
||||
to_chat(src, "<span class='warning'>You don't have the dexterity to do this!</span>")
|
||||
return 0
|
||||
return FALSE
|
||||
if(G.trigger_guard == TRIGGER_GUARD_NONE)
|
||||
to_chat(src, "<span class='warning'>This gun is only built to be fired by machines!</span>")
|
||||
return FALSE
|
||||
return 1
|
||||
|
||||
/mob/living/start_pulling(atom/movable/AM, state, force = pull_force, show_message = FALSE)
|
||||
|
||||
Reference in New Issue
Block a user