Forum
CS2D Scripts Hit hook issueHit hook issue
8 Antworten 1
the original damage that will be caused is a parameter of the hit hook (hpdmg)! so you can use that value. downside: this already calculates how much armor weakens the damage. you might want that to happen but maybe you don't want armors to have any effect in your script.
in the latter case you can use the weapon parameter and the itemtype command with parameter "dmg" to get the damage of that weapon. downside there: only works properly with the primary attack damage (ignoring zoomed damage and stuff).
DC hat geschrieben
in the latter case you can use the weapon parameter and the itemtype command with parameter "dmg" to get the damage of that weapon. downside there: only works properly with the primary attack damage (ignoring zoomed damage and stuff).
But the damage caused by explosions / buildings / entities, they don't appear in this function so they should be registered in a table when you can't get the damage through this command.
I'll add an additional parameter which contains the damage without armor calculations.
1