Custom Pain elemental atack

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
CacoDemonz
Posts: 17
Joined: Thu Jun 22, 2006 2:32 pm

Custom Pain elemental atack

Post by CacoDemonz »

There is a way to make pain elemental shoots a different kind of monster?.
I tried this:

PAIN F 5 bright A_CustomMissile("smallcaco", 35, 0, 0)

but when he shoots the small caco (my monster) it just spawn in front of the pain elemental and 1/2 second later, the small caco dies:

I know i can replace the lost soul whit any monster, but since ZDooM 2.1.3 crash alot of times, all my stuff its made for the ver 2.1.1




Offtopic:
O also, can anyone giveme a link where i can find info about making my custom HuD and, its possible put the doomguy´s face in my custom hud?
User avatar
Krillancello
Posts: 309
Joined: Sat Nov 27, 2004 12:39 am
Location: Teh Intarwebivurs

Post by Krillancello »

I know that you can do a bit of a 'hack-job' for a static HUD. There was a discussion about this my first time here (I've left and returned a couple times).
User avatar
Phobus
Posts: 5984
Joined: Thu May 05, 2005 10:56 am
Location: London
Contact:

Post by Phobus »

IIRC you can use A_PainAttack and just change the thing spawned, though it gets fired out like a lost soul, I think.
User avatar
Enjay
 
 
Posts: 27266
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

I think the Wiki makes it pretty clear

http://www.zdoom.org/wiki/index.php?title=A_PainAttack
CacoDemonz
Posts: 17
Joined: Thu Jun 22, 2006 2:32 pm

Post by CacoDemonz »

Thank you very much!
Also thanks for the info about the hud, ill check it later
Attachments
DOOM0015.png
DOOM0015.png (95.84 KiB) Viewed 502 times
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

Is there any reason A_PainAttack wasn't made generic like A_CustomMissile?
Because it would be handy if you could set angles, height and pitch for the monsters it shoots.

Out of curiosity I made a mancubus use A_DualPainAttack, but the Lost Souls appear too far on either side of it. Being able to change the angles to something other than +45/-45 would have been useful.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Psycho Siggi wrote:Is there any reason A_PainAttack wasn't made generic like A_CustomMissile?

One word: Dehacked. The code has to remain compatible with being used without parameters.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

So something like A_CustomPainAttack would be possible?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

I am a little reluctant to randomly add new code pointers. IMO that should be the job of Doomscript (or whatever it is being called.)

The only problem is that it probably won't come any time soon.
User avatar
Siggi
Posts: 3288
Joined: Sun Oct 03, 2004 8:57 am
Preferred Pronouns: They/Them
Location: South Africa

Post by Siggi »

I knew there was a reason a more expandable version had not been created when it was obvious someone had gone to the effort of making A_PainAttack a little more customizable.
Locked

Return to “Editing (Archive)”