Radiation [SUBMISSION]
- Blue Shadow
- Administrator
- Posts: 1129
No. For each call of A_Explode, all eligible actors for damaging in radius are damaged once. So that's not actually a problem.HexenMapper wrote: Another problem I foresee with a radius attack, is that if 2 players are close, 2 radius attacks will be performed, and both will take double damage.
That has the same inherent problem as the melee attack method; only one actor would be damaged, which is the target.Could work, and should be able to use something like A_GiveToTarget instead of having to worry about different types of attack.
Please Log in or Create an account to join the conversation.
- MagicWazard
- Moderator
- Posts: 808
Please Log in or Create an account to join the conversation.
- HexenMapper
- Topic Author
- Dark Imp
- Posts: 12
So I think A_RadiusGive might be my best bet, question is: which action function should I use for the item to damage the person who has the item?
Something like
Actor LOWRADS
{
States
{
Spawn: (Would I use a spawn state?)
TNT1 A 30 (ACTION FUNCTION TO HARM WHOEVER HAS IT)
}
}
Cheers for the help, its been a while since I've had time to work on this
Please Log in or Create an account to join the conversation.
- HexenMapper
- Topic Author
- Dark Imp
- Posts: 12
The only problem is getting the obituary right (and I still have some tweaking to get the damage and timing feeling right)
No matter what I try the obituary seems to be "player killed themselves" instead of the obituary I want.
Here's the current progress, and a test map:
http://www.m*diafire.com/file/kvv1r2jel2jpu1h/RADIATION_8.wad
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
- Posts: 1129
Create a MAPINFO lump and put the RADS damage type's definition in it (remove the one that you have in DECORATE):
[strike]As a side note: I think your code needs optimization or something. Using GZDoom 3.0, I experienced two moments of slowdown/lag, one when I got in range of the radiations and another when I got damaged by said radiations.[/strike]
Edit: Nevermind the lag issue above. It turned out it's just the sounds being loaded for the first time.
Please Log in or Create an account to join the conversation.
- HexenMapper
- Topic Author
- Dark Imp
- Posts: 12
Please Log in or Create an account to join the conversation.
- HexenMapper
- Topic Author
- Dark Imp
- Posts: 12
I think its pretty much finished! ('final' .zip file is attached)
Please Log in or Create an account to join the conversation.
- Blue Shadow
- Administrator
- Posts: 1129
Please Log in or Create an account to join the conversation.
- HexenMapper
- Topic Author
- Dark Imp
- Posts: 12
Please Log in or Create an account to join the conversation.
- MagicWazard
- Moderator
- Posts: 808
Please Log in or Create an account to join the conversation.