Skip to content

Commit

Permalink
Update code/modules/vehicles/mecha/_mecha.dm
Browse files Browse the repository at this point in the history
Failsafe for turf just in case

Co-authored-by: EvilDragonfiend <[email protected]>
  • Loading branch information
Rukofamicom and EvilDragonfiend authored Aug 22, 2024
1 parent 3a91c15 commit bb4d792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/vehicles/mecha/_mecha.dm
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
occupant.Stun(2 SECONDS)
occupant.Knockdown(destruction_knockdown_duration)
occupant.throwing = TRUE //This is somewhat hacky, but is the best option available to avoid chasm detection for the split second between the next two lines
occupant.forceMove(loc)
occupant.forceMove(get_turf(loc))
occupant.throw_at(get_edge_target_turf(src,pick(GLOB.alldirs)),rand(5, 8),rand(5, 8)) //resets the throwing variable above.
occupant.visible_message("<span class='userdanger'>[occupant] is forcefully ejected from the mech!</span>", "<span class='userdanger'>You are forcefully ejected from the mech!</span>", null, COMBAT_MESSAGE_RANGE)
playsound(src, 'sound/machines/scanbuzz.ogg', 60, FALSE)
Expand Down

0 comments on commit bb4d792

Please sign in to comment.