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

Results 1 to 1 of 1

Threaded View

  1. #1
    Registered User
    Join Date
    Oct 2017
    Posts
    1

    Question Quake 3-like hit sounds? Hook of when player did damage to an entity?

    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.
    Last edited by gangan; 14-10-2017 at 08:54 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •