[DECORATE] Hurting a player touching a monster.

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
User avatar
cyber-menace
Posts: 186
Joined: Thu Mar 18, 2004 12:05 pm
Location: N/A

[DECORATE] Hurting a player touching a monster.

Post by cyber-menace »

Is there anyway to have a monster damage the player if he touches it? Kinda like the Duke3d bosses. I need this to give my Mega Cyberdemon a form of defense if the player gets really close to him.
User avatar
jallamann
Posts: 2271
Joined: Mon May 24, 2004 8:25 am
Location: Ålesund, Norway
Contact:

Post by jallamann »

Who'd be stupid enough to get close to a friggen cyberdemon anyway?
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 »

Strife's spectres can do it so you may try to inherit from one of them. But don't use SKIP_SUPER to clear all properties. Redefine everything yourself.
User avatar
cyber-menace
Posts: 186
Joined: Thu Mar 18, 2004 12:05 pm
Location: N/A

Post by cyber-menace »

I don't use DECORATE very often so I may need a sample...

jallaman - CSonicGo was the one to discover you could chainsaw the big guy to death... the mega rockets sail right over his head.
User avatar
Ixnatifual
Posts: 2287
Joined: Fri Dec 12, 2003 6:44 pm
Contact:

Post by Ixnatifual »

I find the practice of touching monsters disgusting. I commend the idea to make doing hurt the player.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

What's worse is placing a start point right behind a cyberdemons ass. (Hell Revealed Map 18, don't stare at Titan, I know it's you.)
User avatar
Mr. Tee
Posts: 1111
Joined: Sun Feb 08, 2004 7:49 pm
Contact:

Post by Mr. Tee »

jallamann wrote:Who'd be stupid enough to get close to a friggen cyberdemon anyway?
jallaman's avatar wrote:Image
End discussion. :wink:
User avatar
Skunk
Posts: 1189
Joined: Tue Jan 18, 2005 1:04 am
Contact:

Post by Skunk »

TheDarkArchon wrote:What's worse is placing a start point right behind a cyberdemons ass. (Hell Revealed Map 18, don't stare at Titan, I know it's you.)
I was just looking thru the sprites today and I noticed... the guys at id gave the CD a very pronunced rectum...
User avatar
Mr. Tee
Posts: 1111
Joined: Sun Feb 08, 2004 7:49 pm
Contact:

Re: [DECORATE] Hurting a player touching a monster.

Post by Mr. Tee »

cyber-menace wrote:Is there anyway to have a monster damage the player if he touches it? Kinda like the Duke3d bosses. I need this to give my Mega Cyberdemon a form of defense if the player gets really close to him.
Perhaps you can give him a very quick melee attack that's like one frame long or something (you could even use a walking frame to make it completely unnoticeable).
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Or, since it's a cyberdemon which is immune to splash, make it have explosion damage which will "explode" when it's walking.

(N.B This is in no way inspired by Immoral Conduct. No way. :P)
User avatar
cyber-menace
Posts: 186
Joined: Thu Mar 18, 2004 12:05 pm
Location: N/A

Post by cyber-menace »

Okay, could you post a sample code please.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Code: Select all

}
...properties (Include EXPLOSIONDAMAGE and EXPLOSIONRADIUS)...
States
{
See:
CYBR A 3 A_Hoof
CYBR A 0 A_Explode
CYBR ABBC 3 A_Chase
CYBR C 0 A_Explode
CYBR C 3 A_Chase
CYBR D 3 A_Metal
CYBR D 3 A_Chase
Goto See
....Rest of states....
}
}
Everytime A_Explode is reached, the cyberdemon will cause radius damage to anything. (Except those with the NORADIUSDMG flag near it, which will include the Cyberdemon)
User avatar
cyber-menace
Posts: 186
Joined: Thu Mar 18, 2004 12:05 pm
Location: N/A

Post by cyber-menace »

(Warning, bad DECORATE joke ahead)


I SEE... I should try that out after work tomorrow.
Locked

Return to “Editing (Archive)”