Radius and Radius Damage Adjustment

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
HYDROSYNTH+077503
Posts: 15
Joined: Tue Aug 22, 2023 3:03 pm
Preferred Pronouns: He/Him
Graphics Processor: Not Listed

Radius and Radius Damage Adjustment

Post by HYDROSYNTH+077503 »

Hey Lads, could you tell me how to increase the Explosion Radius for the "Rocket" Ammo type?

I'm not satisfied with the Default damage radius. I want to become more REALISTIC. Like a normal-sized room of enemies would get HURT when the Rocket itself Explodes in one area of the room.

I just want to adjust the Radius and Radius Damage so that , Realistically, the Explosion itself is more destructive and Damaging to everything within the radius. Thanks for the feedback,Lads.
User avatar
SPZ1
Posts: 388
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois
Contact:

Re: Radius and Radius Damage Adjustment

Post by SPZ1 »

This should do it. It doubles the damage and radius of the rocket projectile.

Code: Select all

ACTOR BigRocket : Rocket replaces Rocket {
   ExplosionDamage 256
}
https://zdoom.org/wiki/Classes:Rocket
https://zdoom.org/wiki/A_Explode
HYDROSYNTH+077503
Posts: 15
Joined: Tue Aug 22, 2023 3:03 pm
Preferred Pronouns: He/Him
Graphics Processor: Not Listed

Re: Radius and Radius Damage Adjustment

Post by HYDROSYNTH+077503 »

Great! Thanks! One last thing I accidentally forgot to bring up, can I set the MAXIMUM amount of radius, and slightly deal lesser and lesser damage depending from where the enemy is at , wether they're closer or farther away from the center of the Explosion?
User avatar
SPZ1
Posts: 388
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois
Contact:

Re: Radius and Radius Damage Adjustment

Post by SPZ1 »

You just need to set the fulldamagedistance parameter
Post Reply

Return to “Scripting”