ZScript or Decorate: Stop actor's bleeding

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
User avatar
Mere_Duke
Posts: 215
Joined: Sun Aug 28, 2016 3:35 pm
Location: Russia

ZScript or Decorate: Stop actor's bleeding

Post by Mere_Duke »

Hello guys!
A little question: How to stop a (player) actor from bleeding if it actually received 0 damage? Like when he protected by a PowerUp that reduces damage of the specific type to zero?
Is there any Decorate-based solution, since 99% of my code is in Decorate?
Or is there any way to extend Decorate-coded player actor via ZScript to get access to, say, SpawnBlood() function overriding?
Post Reply

Return to “Scripting”