Thing_Move() and Teleport() in Brutal Doom & PB

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
vedan77
Posts: 20
Joined: Fri Aug 20, 2021 5:09 am

Thing_Move() and Teleport() in Brutal Doom & PB

Post by vedan77 »

Hi,

I use a custom player teleport function which works fine, but as soon as I add:

- Brutal Doom
- Project Brutality
- a Visor mod (UDV or Neko)

...to my load order, it stops working. It does not matter if I use Thing_Move() or Teleport(), in both cases the player actor does not get ported.

I did not find anything on this and it would be a real shame if my latest map would not play along with mentioned mods...

How can this be fixed?
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Thing_Move() and Teleport() in Brutal Doom & PB

Post by wildweasel »

If you are modifying your player actor in any way to achieve the effect you're after, any mod that also replaces the player will fully replace whatever you've got going on.
vedan77
Posts: 20
Joined: Fri Aug 20, 2021 5:09 am

Re: Thing_Move() and Teleport() in Brutal Doom & PB

Post by vedan77 »

I do indeed assign a TID to the player actor, yes.

Alright, I just checked the new player TID changed by mods with ActivatorTID() and got 800.

Adjusted my scripts - now it works!

Thanks a lot dude :)
vedan77
Posts: 20
Joined: Fri Aug 20, 2021 5:09 am

Re: Thing_Move() and Teleport() in Brutal Doom & PB

Post by vedan77 »

UPDATE:

Since several mods change or add the player TID, I added a script to handle those eventualities:

Code: Select all

script 1 OPEN {
	mytid = ActivatorTID();
	Thing_ChangeTID(0, mytid);
}
This way, porting works in every combination of Brutal Doom / Project Brutality + NekosHud / UDV.
Post Reply

Return to “Scripting”