[No] A_Resurrect & ResurrectActor

Moderator: GZDoom Developers

A_Resurrect & ResurrectActor

Postby AnotherLurker » Fri Dec 21, 2018 5:20 pm

DECORATE version - A_Resurrect
ACS version - ResurrectActor

Resurrect the calling actor. This function would be meant for players, for monsters, A_Respawn already exists.

There could be optional parameters for things such as enabling/disabling telefog, resetting/keeping stats, or being combined
with A_Respawn's ability to teleport the actor to their spawn point/playerstart, but such parameters are entirely optional since
a person can simply add those in after the fact when using said function with a state or script.

The code responsible for instantly reviving a player does exist within the console command "Resurrect". Implementing this code in the form of a function
would successfully allow a player actor to be resurrected without the use of a work-around.
AnotherLurker
Banned User
 
Joined: 24 May 2017
Discord: Squishybrick#0187

Re: A_Resurrect & ResurrectActor

Postby Rachael » Fri Dec 21, 2018 5:58 pm

As long as it is done right, it might be doable, but I would trust Graf's opinion over my own in this matter.

Nevertheless, the engine does allow for player respawning internally, and does so through the G_DoReborn() function. That might be the best possible vector to go about this.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: A_Resurrect & ResurrectActor

Postby Blue Shadow » Fri Dec 21, 2018 9:44 pm

Just to point it out; what about Resurrect()? It's already available in ZScript.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: A_Resurrect & ResurrectActor

Postby Arctangent » Fri Dec 21, 2018 10:18 pm

Blue Shadow wrote:Just to point it out; what about Resurrect()? It's already available in ZScript.

Huh. Had no idea that resurrection triggered RESPAWN scripts.
User avatar
Arctangent
squawky
 
Joined: 06 Nov 2014
Discord: SquawkyAtan#2371

Re: A_Resurrect & ResurrectActor

Postby Rachael » Fri Dec 21, 2018 11:27 pm

Huh. I did not know about that. Even further proven by the exported native: https://github.com/coelckers/gzdoom/blo ... r.cpp#L698

I'd still like to wait for Graf before I feel comfortable doing anything with this thread, though - I have a feeling he knows more about this particular subject than I do.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle

Re: A_Resurrect & ResurrectActor

Postby Graf Zahl » Sat Dec 22, 2018 1:49 am

Most of what is requested here already exists in the form of Thing_Raise / Actor.Revive for monsters and PlayerInfo.Resurrect for players.
But it makes zero sense to create a function that can do either - especially for ACS. And if it is really needed in ZScript it can be built from the existing functionality already so I really see no point adding more redundancy here. Never forget that anything that gets in will forever have to stay in,

And reading the other thread which got locked, let me just add: We are not here to jump through your hoops. If you cannot figure out how to program what you need yourself, you can ask another modder for help. And if you request a new core feature, please make sure that it actually provides something new that is of real use. What I see here is just an attempt to shortcut your work.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests