Killing Type Check - Brutality

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

Killing Type Check - Brutality

Post by Collegia Titanica »

Second ACS question.

I wish to build a system that keeps track on HOW you kill demons. Basically

If {Player kills imp by freezedeath = x points, headshot (BD) = xx points, flame, barrel, fatality, fists, chainsaw etc ....}


I also plan to scale it up for higher tier demons so each of their special death sequences are worth more points.


How do I measure the way the player kills an enemy and how many of them too ?
User avatar
Endie
Posts: 227
Joined: Thu Mar 16, 2017 7:34 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Somewhere in the void

Re: Killing Type Check - Brutality

Post by Endie »

Try using custom damage types, with those you can set up Pain Types depending of the damage type, and the Death states too.

Custom damage types, pain types and death states

so on you can use A_GiveToTarget these "points". (there's also a A_GiveInventory parameter that allow you to give it to a specific actor, tho, but now i'm not sure of how should you use it)

EDIT: also, it's a decorate thing, i didn't read your thread before posting, anyway i hope it still useful in some way for ya
Post Reply

Return to “Scripting”