From 2901f594567079ba986490a297e78c84a8389328 Mon Sep 17 00:00:00 2001 From: AndroBetel <44546836+AndroBetel@users.noreply.github.com> Date: Wed, 6 Mar 2024 05:59:53 +0300 Subject: [PATCH] upp mg fire prevention iff (#137) Small change for UPP ops. --- code/modules/projectiles/guns/misc.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/projectiles/guns/misc.dm b/code/modules/projectiles/guns/misc.dm index 3ab8280a96..9c8b305a4f 100644 --- a/code/modules/projectiles/guns/misc.dm +++ b/code/modules/projectiles/guns/misc.dm @@ -284,6 +284,7 @@ LAZYADD(traits_to_give, list( BULLET_TRAIT_ENTRY_ID("iff", /datum/element/bullet_trait_iff) //it has no PVE IFF mechanics because its innacurate as hell and is used for suppression and not as assault weapon. )) + AddComponent(/datum/component/iff_fire_prevention) /datum/action/item_action/toggle_iff_pkp/New(Target, obj/item/holder) . = ..() @@ -320,6 +321,7 @@ add_bullet_trait(BULLET_TRAIT_ENTRY_ID("iff", /datum/element/bullet_trait_iff)) if(!iff_enabled) remove_bullet_trait("iff") + SEND_SIGNAL(src, COMSIG_GUN_IFF_TOGGLED, iff_enabled) /obj/effect/syringe_gun_dummy name = ""