Weapon fire on empty
From EventScripts Community Encyclopedia
|
[edit] Descriptionweapon_fire_on_empty executes EVERY TIME A PLAYER ATTEMPTS TO FIRE A WEAPON THAT HAS NO AMMO - (not for hand-thrown grenades) [edit] VariablesVariables Specific to weapon_fire_on_empty That Are Expanded: event_var(userid)
The userid of the player that attempted to fire the empty weapon
event_var(weapon)
The name of the weapon that the player attempted to fire
event_var(es_username)
The name of the person that attempted to fire the empty weapon
event_var(es_steamid)
The steamid of the person that attempted to fire the empty weapon
event_var(es_userteam)
The team # of the person that attempted to fire the empty weapon
event_var(es_userhealth)
The health of the person that attempted to fire the empty weapon
event_var(es_userarmor)
The armor of the person that attempted to fire the empty weapon
event_var(es_userdeaths)
The number of deaths of the person that attempted to fire the empty weapon
event_var(es_userkills)
The number of kills of the person that attempted to fire the empty weapon
event_var(es_userweapon)
The name of the weapon that player attempted to fire
[edit] Examples// replace ammo when no more left
event weapon_fire_on_empty
{
es ma_give_ammo event_var(userid) 0 1 100 1
es ma_give_ammo event_var(userid) 1 1 100 1
}
|
|
