Get Damage via ACS?

Discuss all aspects related to modding Zandronum here.
Post Reply
false_chicken
 
Posts: 36
Joined: Sat Aug 09, 2014 10:47 pm

Get Damage via ACS?

#1

Post by false_chicken » Fri Dec 26, 2014 1:31 am

Hello. I am currently making a shooting range type map and I was wondering if there was any way to get the damage done to an actor via ACS? (Like right after shooting them report the damage done). Thanks!

Watermelon
Zandrone
Posts: 1244
Joined: Thu Jun 28, 2012 9:07 pm
Location: Rwanda

RE: Get Damage via ACS?

#2

Post by Watermelon » Fri Dec 26, 2014 3:20 am

I think you'd have to store the health when the player spawns in an array somewhere, and then run an ACS script every time the player enters the pain state and then compare that damage to the previous health (and then set the health from that same script).

false_chicken
 
Posts: 36
Joined: Sat Aug 09, 2014 10:47 pm

RE: Get Damage via ACS?

#3

Post by false_chicken » Fri Dec 26, 2014 3:29 am

Thats what I was thinking. I was hoping there was a clean function I could use but I suppose that would have to do. Thanks!

Post Reply