melee damage effect on your view

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
DOOMERO-21
Posts: 1423
Joined: Wed Jan 02, 2008 10:02 pm
Location: Chile

melee damage effect on your view

Post by DOOMERO-21 »

well i like to make a similar effect like doom3, when a monsters attack you so close to you, example imp
when the imp attacks you with its claws, appears bloodied marks on your view.
User avatar
Da Spadger
Posts: 438
Joined: Thu Jan 05, 2006 10:12 am

Re: melee damage effect on your view

Post by Da Spadger »

I'm pretty sure you'll need to use ACS and custom damage types.

"Impclaw" damage triggers a special pain state (Pain.Impclaw would be the required name, iirc) that starts a script with HudMessage. The script shows the claw marks picture and then fades it out.

Have fun!
User avatar
DOOMERO-21
Posts: 1423
Joined: Wed Jan 02, 2008 10:02 pm
Location: Chile

Re: melee damage effect on your view

Post by DOOMERO-21 »

i know that but the problem is:
when the imp atatck you and you recive the damage the script need to be activated, but if you evade the attack ? like revenant puch sound only is factible if you recive the damage, this thing need to be the same.
User avatar
Da Spadger
Posts: 438
Joined: Thu Jan 05, 2006 10:12 am

Re: melee damage effect on your view

Post by Da Spadger »

Getting hit by the imp up close causes ImpClaw damage, (Custom damage type.) which makes the player go into the state Pain.Impclaw, which triggers the script.
Locked

Return to “Editing (Archive)”