Skip to content

Commit

Permalink
extinguisher fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johndoe2013 committed Aug 3, 2023
1 parent 30c97b6 commit 794f516
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,16 @@ and you're good to go.

#define EXECUTION_CHECK (attacked_mob.stat == UNCONSCIOUS || attacked_mob.is_mob_restrained()) && ((user.a_intent == INTENT_GRAB)||(user.a_intent == INTENT_DISARM))

/obj/item/weapon/gun/afterattack(atom/target, mob/user, proximity_flag, click_parameters)
if(!proximity_flag)
return FALSE

if(active_attachable && (active_attachable.flags_attach_features & ATTACH_MELEE))
active_attachable.last_fired = world.time
active_attachable.fire_attachment(target, src, user)
return TRUE


/obj/item/weapon/gun/attack(mob/living/attacked_mob, mob/living/user)
if(active_attachable && (active_attachable.flags_attach_features & ATTACH_MELEE)) //this is expected to do something in melee.
active_attachable.last_fired = world.time
Expand Down

0 comments on commit 794f516

Please sign in to comment.