Skip to content

Commit

Permalink
Fix sentries mismatching firer and shooter
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Nov 2, 2024
1 parent 0f3fcbd commit 47d849f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/defenses/sentry.dm
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@
new_projectile.damage *= damage_mult
new_projectile.accuracy *= accuracy_mult
GIVE_BULLET_TRAIT(new_projectile, /datum/element/bullet_trait_iff, faction_group)
new_projectile.fire_at(target, src, owner_mob, new_projectile.ammo.max_range, new_projectile.ammo.shell_speed, null, FALSE)
new_projectile.fire_at(target, owner_mob, src, new_projectile.ammo.max_range, new_projectile.ammo.shell_speed, null, FALSE)
muzzle_flash(Get_Angle(get_turf(src), target))
ammo.current_rounds--
track_shot()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/defenses/sentry_flamer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
var/obj/projectile/P = new(create_cause_data(initial(name), owner_mob))
P.generate_bullet(new ammo.default_ammo)
GIVE_BULLET_TRAIT(P, /datum/element/bullet_trait_iff, faction_group)
P.fire_at(A, src, owner_mob, P.ammo.max_range, P.ammo.shell_speed, null)
P.fire_at(A, owner_mob, src, P.ammo.max_range, P.ammo.shell_speed, null)
ammo.current_rounds--
track_shot()
if(ammo.current_rounds == 0)
Expand Down

0 comments on commit 47d849f

Please sign in to comment.