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.
melee damage effect on your view
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.
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.
- DOOMERO-21
- Posts: 1423
- Joined: Wed Jan 02, 2008 10:02 pm
- Location: Chile
- Da Spadger
- Posts: 438
- Joined: Thu Jan 05, 2006 10:12 am
Re: melee damage effect on your view
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!
"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!
- DOOMERO-21
- Posts: 1423
- Joined: Wed Jan 02, 2008 10:02 pm
- Location: Chile
Re: melee damage effect on your view
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.
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.
- Da Spadger
- Posts: 438
- Joined: Thu Jan 05, 2006 10:12 am
Re: melee damage effect on your view
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.