[No] AAPTR_MINION

Moderator: GZDoom Developers

AAPTR_MINION

Postby amv2k9 » Sat Sep 28, 2013 11:47 am

The companion to AAPTR_MASTER, allowing action functions such as A_GiveInventory when called by a master, to access its 'children'.
User avatar
amv2k9
That Strife Guy
 
Joined: 10 Jan 2010
Location: Southern California

Re: AAPTR_MINION

Postby Graf Zahl » Sun Sep 29, 2013 1:11 pm

So, which 'minion'? Sorry, but since there is no guarantee what actor might get picked, this is mostly useless.
The AAPTR_ feature tracks specific pointers in the Actor structure and this has no corresponding element.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: AAPTR_MINION

Postby Ethril » Fri Oct 11, 2013 1:39 am

(shouldn't it be AAPTR_CHILDREN?)
I would've guessed it to mean ALL OF THEM "everything that refers to the calling actor as master"
You could do some cool stuff with that... e.g. a boss, in its pain state, gives its spawns an item that triggers them to teleport randomly around it as a shield, or one of its attacks signaling them to self-destruct, or something.

I mean, we have A_Damage/Kill/Raise/RemoveChildren, so there's apparently some way for an actor to tell which actors are its "children" and then do something to them.
(similarly, AAPTR_SIBLING would look for anything with the same master)
User avatar
Ethril
F1
 
Joined: 16 Nov 2008
Location: Guidance Gate

Re: AAPTR_MINION

Postby edward850 » Fri Oct 11, 2013 1:47 am

Ethril wrote:I mean, we have A_Damage/Kill/Raise/RemoveChildren, so there's apparently some way for an actor to tell which actors are its "children" and then do something to them.

Graf Zahl wrote:The AAPTR_ feature tracks specific pointers in the Actor structure and this has no corresponding element.

The functions you listed aren't pointers. APPTR_ obviously is a pointer. So no, it doesn't work.
User avatar
edward850
[netcode intensifies]
 
Joined: 20 Jul 2005
Location: New Zealand

Re: AAPTR_MINION

Postby Snarboo » Sun Oct 13, 2013 2:50 pm

In that case, A_GiveToChildren or A_CheckChildInventory might be the better suggestion. Is that even doable?
User avatar
Snarboo
Bacon doesn't know it's not dogs
 
Joined: 29 Nov 2005

Re: AAPTR_MINION

Postby Graf Zahl » Sun Oct 13, 2013 3:38 pm

A_GiveToChildren should be doable.
A_CheckChildInventory has the same problem as the original suggestion. Which child?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: AAPTR_MINION

Postby Snarboo » Sun Oct 13, 2013 11:54 pm

Graf Zahl wrote:A_CheckChildInventory has the same problem as the original suggestion. Which child?
The only way I think this could work is all or nothing, and that's not very useful when you potentially have a hundred actors to keep track of.

Would there be a way to check to see if at least one child has an item?
User avatar
Snarboo
Bacon doesn't know it's not dogs
 
Joined: 29 Nov 2005

Re: AAPTR_MINION

Postby Graf Zahl » Mon Oct 14, 2013 1:04 am

Of course, but such a function still would be rather useless. We are entering WFDS territory here.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: AAPTR_MINION

Postby AlphaEnt » Mon Oct 14, 2013 1:18 am

Snarboo wrote:
Graf Zahl wrote:A_CheckChildInventory has the same problem as the original suggestion. Which child?
The only way I think this could work is all or nothing, and that's not very useful when you potentially have a hundred actors to keep track of.

Would there be a way to check to see if at least one child has an item?

What about:
A_CheckChildInventory ("specific child type", "specific inventory", inventory amount, "state")

btw, i've never used a children at all, so maybe i've said nosense.

I've just related A_CheckChildInventory with A_CheckInventory.

Btw, sorry for my english, GZ =P
User avatar
AlphaEnt
A demon dressed like a human.
 
Joined: 13 Mar 2009
Location: Lost in Buenos Aires, Argentina I think...
Discord: Alphaent (Blorc)#5141

Re: AAPTR_MINION

Postby amv2k9 » Mon Oct 14, 2013 3:01 pm

Graf Zahl wrote:A_GiveToChildren should be doable
This is basically what I was interested in doing in the first place; parent actors giving stuff to child actors.
User avatar
amv2k9
That Strife Guy
 
Joined: 10 Jan 2010
Location: Southern California


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest