Skip to content

trigger_teleport "Pushables" flag 4 broken. #272

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

Open
frendship-loost opened this issue Mar 11, 2025 · 5 comments · May be fixed by #285
Open

trigger_teleport "Pushables" flag 4 broken. #272

frendship-loost opened this issue Mar 11, 2025 · 5 comments · May be fixed by #285

Comments

@frendship-loost
Copy link

Title, to be fair, this is also broken in regular Half-Life. The intention is that trigger_teleport, combined with player-exclusion flags, will only affect pushables (func_pushable) sent into its bounds, if the master key+value permits. Maybe this is an entity fix included with one of the bugfixed branches of goldsrc? I do not know.

@tschumann
Copy link
Contributor

Looks like trigger_teleport doesn't support any spawn flags - maybe it was someone just copy+pasting in the .fgd file?

@frendship-loost
Copy link
Author

I think all of the other spawnflags work. And, "Pushables" flag works on some other trigger such as trigger_once and trigger_multiple. But, it is specifically broken for trigger_teleport (I am not sure about trigger_hurt). I don't totally understand the structure of the hl codebase, but almost(or all?) of the trigger_ entity functionality is built in triggers.cpp ?

ref:
https://github.com/MSRevive/MasterSwordRebirth/blob/a8931f3a64f813d3b098b18afbbe1d0626c98266/src/game/server/triggers.cpp

@tschumann
Copy link
Contributor

Ah, I see now yeah - looks like SF_TRIGGER_PUSHABLES is only supported by trigger_multiple even though it's kind of implied that all trigger_ entities support it.

@tschumann
Copy link
Contributor

Still needs testing but I've pushed #285

@SaintWish SaintWish linked a pull request May 10, 2025 that will close this issue
@tschumann
Copy link
Contributor

Hm, I wonder if this wasn't done for a reason? The flag "works" in that the item goes through the teleporter, but doesn't appear at the other end. Some investigation required...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants