Bullet impact

From EventScripts Community Encyclopedia

Description

bullet_impact executes EVERY TIME A BULLET HITS A SURFACE

The coordinates are where the bullet hit decal would be placed; if the bullet goes through an entity, this event is fired multiple times for a single bullet, once for each surface it hits.

Variables

Variables Specific to bullet_impact That Are Expanded:

     event_var(userid)
           The userid of the player that fired the weapon
     event_var(x)
           The "x" coordinate of the map where the bullet hit
     event_var(y)
           The "y" coordinate of the map where the bullet hit
     event_var(z)
           The "z" coordinate of the map where the bullet hit


Variables Specific to the Player That Fired the Weapon:

     event_var(es_username)
           The name of the player that fired the weapon
     event_var(es_steamid)
           The steamid of the player that fired the weapon
     event_var(es_userteam)
           The team # of the player that fired the weapon
     event_var(es_userhealth)
           The health of the player that fired the weapon
     event_var(es_userarmor)
           The armor of the player that fired the weapon
     event_var(es_userdeaths)
           The number of deaths of the player that fired the weapon
     event_var(es_userkills)
           The number of kills of the player that fired the weapon
     event_var(es_userweapon)
           The name of the weapon that player fired
blog comments powered by Disqus