Skip to content

Commit

Permalink
Fixes controllers and bullet damage
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Nov 27, 2024
1 parent 307e1f7 commit b8ec725
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions code/game/machinery/porta_turret/portable_turret.dm
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@
retaliating = TRUE

/obj/machinery/porta_turret/bullet_act(obj/projectile/hitting_projectile)
. = ..()
if(ismob(hitting_projectile.firer))
retaliate(hitting_projectile.firer)

Expand Down
15 changes: 4 additions & 11 deletions code/game/machinery/porta_turret/portable_turret_control.dm
Original file line number Diff line number Diff line change
Expand Up @@ -147,34 +147,27 @@
return TRUE
if("power")
toggle_on(usr)
return TRUE
if("mode")
toggle_lethal(usr)
return TRUE

if("toggle_dangerous")
turret_flags ^= TURRET_FLAG_SHOOT_DANGEROUS_ONLY
return TRUE
if("toggle_retaliate")
turret_flags ^= TURRET_FLAG_SHOOT_RETALIATE
return TRUE


if("toggle_fauna")
turret_flags ^= TURRET_FLAG_SHOOT_FAUNA
return TRUE
if("toggle_humans")
turret_flags ^= TURRET_FLAG_SHOOT_HUMANS
return TRUE
if("toggle_silicons")
turret_flags ^= TURRET_FLAG_SHOOT_SILICONS
return TRUE

if("toggle_nonfaction")
turret_flags ^= TURRET_FLAG_SHOOT_NONFACTION
return TRUE
if("toggle_specificfaction")
turret_flags ^= TURRET_FLAG_SHOOT_SPECIFIC_FACTION
return TRUE

else
return

update_turrets()

Expand Down

0 comments on commit b8ec725

Please sign in to comment.