View Full Version : Quake 3-like hit sounds? Hook of when player did damage to an entity?

14-10-2017, 12:56 AM
EDIT: The Quake 3 hit sound is one that plays when the player inflicted damage to the enemy, reinforcing the sense of hitting something.

(I'm new to AS and programming in general please be gentle.;))

So, I looked into the API and found no way of finding out whether an entity inflicted damage to another entity.
The methods seem to favor the attacked, not the attacker.

One work-around I thought of would be to override CBasePlayer Think() and apply checks for pev.frags there.
But that would require a custom player class.
By the way, if possible, how do I replace all players with a custom player class?

Suggestions? Thanks!

EDIT2: Sorry I was being stupid. PlayerPostThink hook was right there for use.