Projectile detonation height compared to actor's height

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
Collegia Titanica
Posts: 83
Joined: Thu Jan 25, 2018 1:37 pm

Projectile detonation height compared to actor's height

Post by Collegia Titanica »

I'm essentially looking to replace the headshot system with something different.

The plan: When projectile hits victim in SpecialMissileHit, compare it's destruction height to the total height of the actor.
If totalheight - desheight is small, then it's a headshot.

DesHeight would have to only count from the actor's bottom to their total height.Not it's total Z world height.
Post Reply

Return to “Scripting”