Skip to content

Commit

Permalink
zonespess
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegoflores31 committed Aug 25, 2023
1 parent 7c2bfa8 commit 69f2ff9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1334,11 +1334,10 @@ and you're good to go.

//The following relating to bursts was borrowed from Fire code.
var/check_for_attachment_fire = FALSE
if(active_attachable)
if(active_attachable.flags_attach_features & ATTACH_PROJECTILE)
check_for_attachment_fire = TRUE
else
active_attachable.activate_attachment(src, null, TRUE)//No way.
if(active_attachable?.flags_attach_features & ATTACH_PROJECTILE)
check_for_attachment_fire = TRUE
else
active_attachable.activate_attachment(src, null, TRUE)//No way.


var/bullets_to_fire = 1
Expand Down Expand Up @@ -1506,7 +1505,7 @@ not all weapons use normal magazines etc. load_into_chamber() itself is designed
if(active_attachable)
if(active_attachable.flags_attach_features & ATTACH_PROJECTILE)
if(!(active_attachable.flags_attach_features & ATTACH_WIELD_OVERRIDE) && !(flags_item & WIELDED))
to_chat(user, SPAN_WARNING("You must wield [src] to fire \the [active_attachable]!"))
to_chat(user, SPAN_WARNING("You must wield [src] to fire [active_attachable]!"))
return
if((flags_gun_features & GUN_WIELDED_FIRING_ONLY) && !(flags_item & WIELDED) && !active_attachable) //If we're not holding the weapon with both hands when we should.
to_chat(user, SPAN_WARNING("You need a more secure grip to fire this weapon!"))
Expand Down
6 changes: 3 additions & 3 deletions code/modules/projectiles/gun_attachables.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2261,7 +2261,7 @@ Defined in conflicts.dm of the #defines folder.
var/obj/item/weapon/gun/attached_gun = loc

if(!(attached_gun.flags_item & WIELDED))
to_chat(user, SPAN_WARNING("You must wield [attached_gun] to fire \the [src]!"))
to_chat(user, SPAN_WARNING("You must wield [attached_gun] to fire [src]!"))
return

if(current_rounds > round_usage_per_tile && ..())
Expand Down Expand Up @@ -2408,7 +2408,7 @@ Defined in conflicts.dm of the #defines folder.
if(!internal_extinguisher)
return
if(!(gun.flags_item & WIELDED))
to_chat(user, SPAN_WARNING("You must wield [gun] to fire \the [src]!"))
to_chat(user, SPAN_WARNING("You must wield [gun] to fire [src]!"))
return
if(..())
return internal_extinguisher.afterattack(target, user)
Expand Down Expand Up @@ -2470,7 +2470,7 @@ Defined in conflicts.dm of the #defines folder.
return

if((gun.flags_gun_features & GUN_WIELDED_FIRING_ONLY) && !(gun.flags_item & WIELDED))
to_chat(user, SPAN_WARNING("You must wield [gun] to fire \the [src]!"))
to_chat(user, SPAN_WARNING("You must wield [gun] to fire [src]!"))
return

if(gun.flags_gun_features & GUN_TRIGGER_SAFETY)
Expand Down

0 comments on commit 69f2ff9

Please sign in to comment.