A_VileChase("State", friend)

Moderator: GZDoom Developers

Post Reply
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

A_VileChase("State", friend)

Post by Cutmanmike »

Since we're going to have custom states sooner or later, would it be possible to add two paramaters to Vilechase or a similar codepointer?

The first one would be the state it revies with. With it you could create such things as Corpse explosion, or turn corpses into other things such as mana (if it was going to be a hexen/heretic like game).

The second would simply define if you wanted it to be revived as a friend or not.
User avatar
Anakin S.
Posts: 1067
Joined: Fri Nov 28, 2003 9:39 pm
Location: A long time ago in a galaxy far, far away...

Post by Anakin S. »

The state it revives monsters with is Heal. Whether or not it's revived as a friend depends on the archvile's friendliness setting.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Anakin: I think cutty wants the state parameter to define what state the resurrectee goes into.
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

TDA is correct
User avatar
Jimmy
 
 
Posts: 4726
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

Post by Jimmy »

You can always set a goto parameter in the Raise state.

Code: Select all

Raise:
  SARG A 0
  Goto Pain
User avatar
Cutmanmike
Posts: 11353
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

Yes, but you may want different "Archvile" or weapons to ressurect monsters in different ways.

Example, You have a weapon which turns corpses into some form of Health but you have archviles in your map. Like I said this would require custom states.

Edit: I just noticed that the Friendly paramater isn't even needed, since you can use A_ChangeFlag
User avatar
Osiris Kalev
Posts: 290
Joined: Sun Aug 20, 2006 11:06 pm
Location: Australia, Elsewhere Within
Contact:

Post by Osiris Kalev »

Sorry for a most horrible bump, but has this actually been implemented? It doesn't seem to work.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Sure it has. But this was after 2.1.7.
User avatar
Osiris Kalev
Posts: 290
Joined: Sun Aug 20, 2006 11:06 pm
Location: Australia, Elsewhere Within
Contact:

Post by Osiris Kalev »

I tried using it with the SVN and GZDoom 1.0.24, but it gave me this:

You cannot pass parameters to '('

The line I used was: PLAY AAAAAAAAAAAAAAA 8 A_VileChase("ConvertS", 0)

Anything wrong with this line?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49234
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Ugh. Sorry, I apparently misread something. I thought this was about the A_Chase state thing. I have no idea why this was moved to 'closed suggestions'.
User avatar
Osiris Kalev
Posts: 290
Joined: Sun Aug 20, 2006 11:06 pm
Location: Australia, Elsewhere Within
Contact:

Post by Osiris Kalev »

Ah ok. Thanks Graf.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”