Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Portals Bump Attacking Vehicles #16724

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,14 @@ GLOBAL_LIST_INIT(wraith_banish_very_short_duration_list, typecacheof(list(
var/mob/living/carbon/xenomorph/xeno_crosser = crosser
if(xeno_crosser.m_intent == MOVE_INTENT_WALK)
return
var/turf/other_portal_turf = get_turf(linked_portal)
for(var/thing in other_portal_turf.contents)
// Prevents the crossing if blocked by a vehicle.
// Without this, crossers would "move" to the vehicle which would cause a bump attack instead of a teleport to the other side.
// While some argue "skill issue" as vehicles could simply move off the portal, it was determined to be an exploit rather than a skill issue.
if(ishitbox(thing) || isvehicle(thing))
return

COOLDOWN_START(linked_portal, portal_cooldown, 1)
crosser.pass_flags &= ~PASS_MOB
RegisterSignal(crosser, COMSIG_MOVABLE_MOVED, PROC_REF(do_teleport_atom))
Expand Down
Loading