A_Resurrect(Children/Parent/Siblings, state, chance)

Moderator: GZDoom Developers

User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

A_Resurrect(Children/Parent/Siblings, state, chance)

Post by Amuscaria »

Same as title. Is this possible?
Last edited by Amuscaria on Sun Jun 21, 2009 8:29 am, edited 2 times in total.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: A_Raise(Children/Parent/Siblings, state, chance)

Post by HotWax »

The state parameter is not because one actor cannot affect another's states, as I recall. Selectively raising actors may be possible.
User avatar
printz
Posts: 2649
Joined: Thu Oct 26, 2006 12:08 pm
Location: Bucharest, Romania
Contact:

Re: A_Raise(Children/Parent/Siblings, state, chance)

Post by printz »

Eriance wrote:Same as title
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?

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?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: A_Raise(Children/Parent/Siblings, state, chance)

Post by HotWax »

I was just assuming he meant a new version of [wiki=A_VileChase]this function[/wiki].
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: A_Raise(Children/Parent/Siblings, state, chance)

Post by Amuscaria »

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.
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Re: A_Raise(Children/Parent/Siblings, state, chance)

Post by Ghastly »

Eriance wrote:A_Ressurect
A_Resurrect.* :p

Seconded! This could come in very handy indeed for bosses.
User avatar
.+:icytux:+.
Posts: 2661
Joined: Thu May 17, 2007 1:53 am
Location: Finland

Re: A_Raise(Children/Parent/Siblings, state, chance)

Post by .+:icytux:+. »

Ghastly_dragon wrote:
Eriance wrote:A_Ressurect
A_Resurrect.* :p

Seconded! This could come in very handy indeed for bosses.
yes indeed. like the stone throwing guy in batmandoom. he could not be used outside his arena tho :P
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: A_Raise(Children/Parent/Siblings, state, chance)

Post by Snarboo »

.+:icytux:+. wrote:yes indeed. like the stone throwing guy in batmandoom. he could not be used outside his arena tho :P
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.

The final boss in ZanZan worked similarly, only with the items he resurrected actually being monsters.
User avatar
.+:icytux:+.
Posts: 2661
Joined: Thu May 17, 2007 1:53 am
Location: Finland

Re: A_Raise(Children/Parent/Siblings, state, chance)

Post by .+:icytux:+. »

Snarboo wrote:
.+:icytux:+. wrote:yes indeed. like the stone throwing guy in batmandoom. he could not be used outside his arena tho :P
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.
yea this is exactly what i meant. and yes, thats how he works :P
CO2
Posts: 42
Joined: Tue Jul 29, 2008 9:24 am

Re: A_Resurrect(Children/Parent/Siblings, state, chance)

Post by CO2 »

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.
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.
User avatar
Rachael
Posts: 13968
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: A_Resurrect(Children/Parent/Siblings, state, chance)

Post by Rachael »

This is a

Code: Select all

 patch. It would be much better if you made an attachment, instead.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: A_Resurrect(Children/Parent/Siblings, state, chance)

Post by Xaser »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_Resurrect(Children/Parent/Siblings, state, chance)

Post by Graf Zahl »

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!
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: A_Resurrect(Children/Parent/Siblings, state, chance)

Post by Amuscaria »

Mega-win! :O
User avatar
Ichor
Posts: 1784
Joined: Wed Jul 23, 2003 9:22 pm

Re: A_Resurrect(Children/Parent/Siblings, state, chance)

Post by Ichor »

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?
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”