PreTravelled virtual

Moderator: GZDoom Developers

User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

PreTravelled virtual

Post by Marisa the Magician »

Allows players and items to perform special clean up before a level transition.

Pull request with more information and example here.
User avatar
MartinHowe
Posts: 2031
Joined: Mon Aug 11, 2003 1:50 pm
Location: Waveney, United Kingdom

Re: PreTravelled virtual

Post by MartinHowe »

While very pleased to see this, I suggested it a while back and it was 'no'd':
Graf Zahl wrote:As actor virtuals this is a clear 'no', this stuff makes more sense as an event.
Does anyone know what has changed that it's been added now?
Gez
 
 
Posts: 17840
Joined: Fri Jul 06, 2007 3:22 pm

Re: PreTravelled virtual

Post by Gez »

I suppose the biggest change was that here the implementation work was already done and all Graf had to do was click on one single button to merge.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49096
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: PreTravelled virtual

Post by Graf Zahl »

Gotcha! :twisted:
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Re: PreTravelled virtual

Post by Marisa the Magician »

I mean, it was dead simple (heh) to implement, and entirely on the zscript side too. Plus doing it right there puts less burden on the event handler and lets players/items clean their own messes.
User avatar
MartinHowe
Posts: 2031
Joined: Mon Aug 11, 2003 1:50 pm
Location: Waveney, United Kingdom

Re: PreTravelled virtual

Post by MartinHowe »

Well thanks, this will mean the cats of chaos code for following the player around during the game can be massively simplified. I'll have a look at the example and see how it works and can be used. 8-)

Return to “Closed Feature Suggestions [GZDoom]”