A_Resurrect(Children/Parent/Siblings, state, chance)
Moderator: GZDoom Developers
A_Resurrect(Children/Parent/Siblings, state, chance)
Same as title. Is this possible?
Last edited by Amuscaria on Sun Jun 21, 2009 8:29 am, edited 2 times in total.
Re: A_Raise(Children/Parent/Siblings, state, chance)
The state parameter is not because one actor cannot affect another's states, as I recall. Selectively raising actors may be possible.
Re: A_Raise(Children/Parent/Siblings, state, chance)
Please elaborate. A_Raise is a weapon function for now, triggered continuously when selected, to appear on screen. But what are the children, parents and siblings? Or also state or chance? What are they for?Eriance wrote:Same as title
EDIT: I suspect it's something that makes a summoner brings all (or part) of his creations back to life... Or a submonster (like nonmecha hitler or nonmounted dsparil) that brings his former self back to glory, while himself still alive. Or a monster that makes another monster, co-guardian, by remote, back to life. Am I correct?
Re: A_Raise(Children/Parent/Siblings, state, chance)
I was just assuming he meant a new version of [wiki=A_VileChase]this function[/wiki].
Re: A_Raise(Children/Parent/Siblings, state, chance)
Oops, i forgot A_Raise was for weapons. I mean more like A_Ressurect, where a tagged that is either a master, servant, or subbling can be raised by calling this action from another related actor. The State parameter isn't that important, i just through i throw it in there. It would be similar to A_DamageChildren and A_KillChildren. But just done with a single action, instead of 3.
Re: A_Raise(Children/Parent/Siblings, state, chance)
A_Resurrect.*Eriance wrote:A_Ressurect
Seconded! This could come in very handy indeed for bosses.
- .+:icytux:+.
- Posts: 2661
- Joined: Thu May 17, 2007 1:53 am
- Location: Finland
Re: A_Raise(Children/Parent/Siblings, state, chance)
yes indeed. like the stone throwing guy in batmandoom. he could not be used outside his arena thoGhastly_dragon wrote:A_Resurrect.*Eriance wrote:A_Ressurect
Seconded! This could come in very handy indeed for bosses.
Re: A_Raise(Children/Parent/Siblings, state, chance)
Killer Croc actually used some dehacked trickery and probably could be used in a new arena if everything was setup properly. Basically, Killer Croc worked like an archvile and would try and resurrect the stones on the ground, but as soon as he did, the stone would be removed and Killer Croc would jump to his projectile state..+:icytux:+. wrote:yes indeed. like the stone throwing guy in batmandoom. he could not be used outside his arena tho :P
The final boss in ZanZan worked similarly, only with the items he resurrected actually being monsters.
- .+:icytux:+.
- Posts: 2661
- Joined: Thu May 17, 2007 1:53 am
- Location: Finland
Re: A_Raise(Children/Parent/Siblings, state, chance)
yea this is exactly what i meant. and yes, thats how he worksSnarboo wrote:Killer Croc actually used some dehacked trickery and probably could be used in a new arena if everything was setup properly. Basically, Killer Croc worked like an archvile and would try and resurrect the stones on the ground, but as soon as he did, the stone would be removed and Killer Croc would jump to his projectile state..+:icytux:+. wrote:yes indeed. like the stone throwing guy in batmandoom. he could not be used outside his arena tho
Re: A_Resurrect(Children/Parent/Siblings, state, chance)
Well, I was able to get a working A_RaiseMaster/Children/Siblings, but I copied over a piece of code from another file (specifically the DoThingRaise function) to do it.
Edit: Yeah ok, I attached it.
Edit: Yeah ok, I attached it.
- Attachments
-
- master-child.txt
- (4.38 KiB) Downloaded 19 times
Last edited by CO2 on Sat Jul 11, 2009 10:07 pm, edited 1 time in total.
Re: A_Resurrect(Children/Parent/Siblings, state, chance)
This is a
Code: Select all
patch. It would be much better if you made an attachment, instead.Re: A_Resurrect(Children/Parent/Siblings, state, chance)
Just to answer "why?" in advance, putting patches in
Code: Select all
tags completely messes up the spacing when attempting to apply them. As-is, the devs would have to re-do the tabs by hand, which likely isn't very fun.- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: A_Resurrect(Children/Parent/Siblings, state, chance)
Added. One note though: If you want to use a static function from another file the proper way is not to duplicate it!
Code duplication is always bad. Remove the static from the declaration and use the original instead!
Code duplication is always bad. Remove the static from the declaration and use the original instead!
Re: A_Resurrect(Children/Parent/Siblings, state, chance)
Can a player use this on a monster? For instance, you've got a weapon or something and you want to revive that imp over there. Could this do that, or is it specifically for parent/children situations?
