[Added] PreTravelled virtual

Moderator: GZDoom Developers

PreTravelled virtual

Postby Marisa Kirisame » Fri Oct 15, 2021 9:17 am

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

Pull request with more information and example here.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: PreTravelled virtual

Postby MartinHowe » Sat Oct 16, 2021 11:07 am

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?
User avatar
MartinHowe
In space, no-one can hear you KILL an ALIEN
 
Joined: 11 Aug 2003
Location: Waveney, United Kingdom

Re: PreTravelled virtual

Postby Gez » Sat Oct 16, 2021 1:05 pm

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.
Gez
 
 
 
Joined: 06 Jul 2007

Re: PreTravelled virtual

Postby Graf Zahl » Sat Oct 16, 2021 2:19 pm

Gotcha! :twisted:
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: PreTravelled virtual

Postby Marisa Kirisame » Sat Oct 16, 2021 2:48 pm

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
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: PreTravelled virtual

Postby MartinHowe » Sun Oct 17, 2021 1:57 am

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-)
User avatar
MartinHowe
In space, no-one can hear you KILL an ALIEN
 
Joined: 11 Aug 2003
Location: Waveney, United Kingdom


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests