Raised This Month: $ Target: $400
 0% 

[INFO]: EventScripts, EVENTS and VARIABLES THEY CAN EXPAND


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
XE_ManUp
Senior Member
Join Date: Mar 2005
Location: Charlotte, NC
Old 06-16-2005 , 00:13   [INFO]: EventScripts, EVENTS and VARIABLES THEY CAN EXPAND
Reply With Quote #1

THIS THREAD IS FOR INFORMATION ONLY!!!

ALL SUPPORT AND NEW UPDATES FOR THIS THREAD HAVE MOVED TO THE LINK BELOW!!!


http://www.mattie.info/cs/forums/viewtopic.php?t=50


The Most Common Game Events and What Variables Can Be Used By EventScripts:
Quote:
player_activate:
Quote:
  • 1. executes ONCE PER MAP - (when a player first connects per map)
    2. executes on EVERY PLAYER - (when they first connect per map)
Quote:
  • event_var(userid)
    • The userid of the person that was activated
    event_var(es_username)
    • The name of the person that was activated
    event_var(es_steamid)
    • The steamid of the person that was activated
player_spawn:
Quote:
  • 1. executes ONCE PER ROUND - (before the round starts prior to freeze time ending)
    2. executes on EVERY PLAYER - (before the round starts prior to freeze time ending)
Quote:
  • event_var(userid)
    • The userid of the person that was spawned
    event_var(es_username)
    • The name of the person that was spawned
    event_var(es_steamid)
    • The steamid of the person that was spawned
    event_var(es_userteam)
    • The team # of the person that was spawned
    event_var(es_userhealth)
    • The health of the person that was spawned
    event_var(es_userarmor)
    • The armor of the person that was spawned
    event_var(es_userdeaths)
    • The number of deaths of the person that was spawned
    event_var(es_userkills)
    • The number of kills of the person that was spawned
round_start:
Quote:
  • 1. executes EVERY TIME A ROUND STARTS - (after freeze time ends)
    2. does not execute on ANY PLAYERS - (gives no information that is player-specific)
Quote:
Variables Specific to round_start That Are Expanded:
Quote:
  • event_var(timelimit)
    • The round time limit (in seconds)
    event_var(fraglimit)
    • The frag limit (in seconds)
    event_var(objective)
    • The round's objective (message)
player_hurt:
Quote:
  • 1. executes EVERY TIME A PLAYER IS HURT
    2. executes on EVERY PLAYER THAT IS HURT
Quote:
Variables Specific to player_hurt That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that was attacked (the victim)
    event_var(attacker)
    • The userid of the attacker
    event_var(weapon)
    • The weapon name the attacker used to hurt the player
    event_var(headshot)
    • If the damage was the result of a headshot
    event_var(health)
    • The remaining health of the victim
    event_var(dmg_health)
    • How much damage was done to the victim (per hit)
    event_var(armor)
    • The remaining armor value of the victim after being damaged
    event_var(dmg_armor)
    • How much damage was done to the armor of the victim (per hit)
    event_var(hitgroup)
    • Which limb was damaged on the victim
Variables Specific to the "victim":
Quote:
  • event_var(es_username)
    • The name of the person that was attacked
    event_var(es_steamid)
    • The steamid of the person that was attacked
    event_var(es_userteam)
    • The team # of the person that was attacked
    event_var(es_userhealth)
    • The health of the person that was attacked
    event_var(es_userarmor)
    • The armor of the person that was attacked
    event_var(es_userdeaths)
    • The number of deaths of the person that was attacked
    event_var(es_userkills)
    • The number of kills of the person that was attacked
    event_var(es_userweapon)
    • The name of the victim's weapon
    event_var(es_userdead)
    • "0" if the victim is alive and "1" if the victim is dead
Variables Specific to the "attacker":
Quote:
  • event_var(es_attackername)
    • The name of the person that attacked the victim
    event_var(es_attackersteamid)
    • The steamid of the person that was attacked
    event_var(es_userteam)
    • The team # of the person that was attacked
    event_var(es_attackerhealth)
    • The health of the person that was attacked
    event_var(es_attackerarmor)
    • The armor of the person that was attacked
    event_var(es_attackerdeaths)
    • The number of deaths of the person that was attacked
    event_var(es_attackerkills)
    • The number of kills of the person that was attacked
    event_var(es_attackerweapon)
    • The name of the attacker's weapon
    event_var(es_attackerdead)
    • "0" if the attacker is alive and "1" if the attacker is dead
player_death:
Quote:
  • 1. executes EVERY TIME A PLAYER DIES
    2. executes on EVERY PLAYER THAT DIES
Quote:
Variables Specific to player_death That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that was attacked (the victim)
    event_var(attacker)
    • The userid of the attacker
    event_var(weapon)
    • The weapon name the attacker used to kill the player
    event_var(headshot)
    • If the kill was the result of a headshot
Variables Specific to the "victim":
Quote:
  • event_var(es_username)
    • The name of the person that was killed
    event_var(es_steamid)
    • The steamid of the person that was killed
    event_var(es_userteam)
    • The team # of the person that was killed
    event_var(es_userhealth)
    • The health of the person that was killed
    event_var(es_userarmor)
    • The armor of the person that was killed
    event_var(es_userdeaths)
    • The number of deaths of the person that was killed
    event_var(es_userkills)
    • The number of kills of the person that was killed
    event_var(es_userweapon)
    • The name of the victim's weapon
    event_var(es_userdead)
    • "0" if the victim is alive and "1" if the victim is dead
Variables Specific to the "attacker":
Quote:
  • event_var(es_attackername)
    • The name of the person that attacked the victim
    event_var(es_attackersteamid)
    • The steamid of the attacker
    event_var(es_attackerteam)
    • The team # of the attacker
    event_var(es_attackerhealth)
    • The health of the attacker
    event_var(es_attackerarmor)
    • The armor of the attacker
    event_var(es_attackerdeaths)
    • The number of deaths of the attacker
    event_var(es_attackerkills)
    • The number of kills of the attacker
    event_var(es_attackerweapon)
    • The name of the attacker's weapon
    event_var(es_attackerdead)
    • "0" if the attacker is alive and "1" if the attacker is dead
round_end:
Quote:
  • 1. executes EVERY TIME A ROUND ENDS - (after objective completed/all players dead)
    2. does not execute on ANY PLAYERS - (gives no information that is player-specific)
Quote:
Variables Specific to round_end That Are Expanded:
Quote:
  • event_var(winner)
    • The winner of the round (either "#ROUND_DRAW" , "#Game_Commencing" , "#Terrorists_Win" , or "#CTs_Win")
    event_var(reason)
    • The reason why the winner won
    event_var(message)
    • The end of round message
Game Type/Game Scenario Events:

HOSTAGE EVENTS:
Quote:
hostage_follows:
Quote:
  • 1. executes EVERY TIME A PLAYER TELLS A HOSTAGE TO FOLLOW
    2. executes on EVERY PLAYER THAT TELLS A HOSTAGE TO FOLLOW
Quote:
Variables Specific to hostage_follows That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that is escorting hostages
    event_var(hostage)
    • The hostage number assigned to the hostage as specified by Valve
Variables Specific to the Player Escorting Hostages:
Quote:
  • event_var(es_username)
    • The name of the person that is escorting hostages
    event_var(es_steamid)
    • The steamid of the person that is escorting hostages
    event_var(es_userteam)
    • The team # of the person that is escorting hostages
    event_var(es_userhealth)
    • The health of the person that is escorting hostages
    event_var(es_userarmor)
    • The armor of the person that is escorting hostages
    event_var(es_userdeaths)
    • The number of deaths of the person that is escorting hostages
    event_var(es_userkills)
    • The number of kills of the person that is escorting hostages
    event_var(es_userweapon)
    • The name of the player's weapon that is escorting hostages
hostage_stops_following:
Quote:
  • 1. executes EVERY TIME A HOSTAGE STOPS FOLLOWING A PLAYER - (either the player that is escorting the hostage is killed or the player tells the hostage not to follow)
Quote:
Variables Specific to hostage_stops_following That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that was escorting hostages
    event_var(hostage)
    • The hostage number assigned to the hostage as specified by Valve
Variables Specific to the Player That Was Escorting Hostages:
Quote:
  • event_var(es_username)
    • The name of the person that was escorting hostages
    event_var(es_steamid)
    • The steamid of the person that was escorting hostages
    event_var(es_userteam)
    • The team # of the person that was escorting hostages
    event_var(es_userhealth)
    • The health of the person that was escorting hostages
    event_var(es_userarmor)
    • The armor of the person that was escorting hostages
    event_var(es_userdeaths)
    • The number of deaths of the person that was escorting hostages
    event_var(es_userkills)
    • The number of kills of the person that was escorting hostages
    event_var(es_userweapon)
    • The name of the player's weapon that was escorting hostages
hostage_rescued:
Quote:
  • executes EVERY TIME A HOSTAGE IS RESCUED - (once per each hostage)
Quote:
Variables Specific to hostage_rescued That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that rescued a hostage
    event_var(hostage)
    • The hostage number assigned to the hostage as specified by Valve
    event_var(site)
    • The Valve-assigned numeric value of the rescue site the hostage was rescued at
Variables Specific to the Player That Rescued a Hostage:
Quote:
  • event_var(es_username)
    • The name of the person that rescued a hostage
    event_var(es_steamid)
    • The steamid of the person that rescued a hostage
    event_var(es_userteam)
    • The team # of the person that rescued a hostage
    event_var(es_userhealth)
    • The health of the person that rescued a hostage
    event_var(es_userarmor)
    • The armor of the person that rescued a hostage
    event_var(es_userdeaths)
    • The number of deaths of the person that rescued a hostage
    event_var(es_userkills)
    • The number of kills of the person that rescued a hostage
    event_var(es_userweapon)
    • The name of the player's weapon that rescued a hostage
hostage_rescued_all:
Quote:
  • executes WHEN ALL HOSTAGES HAVE BEEN RESCUED
Quote:
NO VARIABLES ARE EXPANDED FOR THIS EVENT!!!
hostage_hurt:
Quote:
  • 1. executes EVERY TIME A PLAYER HURTS A HOSTAGE
    2. executes on EVERY PLAYER THAT HURTS A HOSTAGE
Quote:
Variables Specific to hostage_hurt That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that hurt the hostage
    event_var(hostage)
    • The hostage number assigned to the hostage as specified by Valve
Variables Specific to the Player That Hurt the Hostage:
Quote:
  • event_var(es_username)
    • The name of the person that hurt the hostage
    event_var(es_steamid)
    • The steamid of the person that hurt the hostage
    event_var(es_userteam)
    • The team # of the person that hurt the hostage
    event_var(es_userhealth)
    • The health of the person that hurt the hostage
    event_var(es_userarmor)
    • The armor of the person that hurt the hostage
    event_var(es_userdeaths)
    • The number of deaths of the person that hurt the hostage
    event_var(es_userkills)
    • The number of kills of the person that hurt the hostage
    event_var(es_userweapon)
    • The name of the player's weapon that hurt the hostage
hostage_killed:
Quote:
  • 1. executes EVERY TIME A PLAYER KILLS A HOSTAGE - (once per hostage)
    2. executes on EVERY PLAYER THAT KILLS A HOSTAGE - (once per hostage)
Quote:
Variables Specific to hostage_killed That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that killed the hostage
    event_var(hostage)
    • The hostage number assigned to the hostage as specified by Valve
Variables Specific to the Player That Killed the Hostage:
Quote:
  • event_var(es_username)
    • The name of the person that killed the hostage
    event_var(es_steamid)
    • The steamid of the person that killed the hostage
    event_var(es_userteam)
    • The team # of the person that killed the hostage
    event_var(es_userhealth)
    • The health of the person that killed the hostage
    event_var(es_userarmor)
    • The armor of the person that killed the hostage
    event_var(es_userdeaths)
    • The number of deaths of the person that killed the hostage
    event_var(es_userkills)
    • The number of kills of the person that killed the hostage
    event_var(es_userweapon)
    • The name of the player's weapon that killed the hostage
BOMB EVENTS:
Quote:
bomb_beginplant:
Quote:
  • 1. executes EVERY TIME A PLAYER STARTS TO PLANT THE BOMB - (bomb not activated)
    2. executes on EVERY PLAYER THAT BEGINS TO PLANT THE BOMB - (bomb not activated)
Quote:
Variables Specific to bomb_beginplant That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that is attempting to plant
    event_var(site)
    • The Valve-assigned site number assigned to the bomb site the player is attempting to plant at
Variables Specific to the Player That Is Attempting to Plant the Bomb:
Quote:
  • event_var(es_username)
    • The name of the person that is attempting to plant
    event_var(es_steamid)
    • The steamid of the person that is attempting to plant
    event_var(es_userteam)
    • The team # of the person that is attempting to plant
    event_var(es_userhealth)
    • The health of the person that is attempting to plant
    event_var(es_userarmor)
    • The armor of the person that is attempting to plant
    event_var(es_userdeaths)
    • The number of deaths of the person that is attempting to plant
    event_var(es_userkills)
    • The number of kills of the person that is attempting to plant
    event_var(es_userweapon)
    • The name of the player's weapon that is attempting to plant
bomb_abortplant:
Quote:
  • 1. executes EVERY TIME A PLAYER STOPS IN THE MIDDLE OF PLANTING THE BOMB - (bomb not activated)
    2. executes on EVERY PLAYER THAT STOPS PLANTING THE BOMB - (bomb not activated)
Quote:
Variables Specific to bomb_abortplant That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that stopped planting
    event_var(site)
    • The Valve-assigned site number assigned to the bomb site the player stopped planting at
Variables Specific to the Player That Stopped Planting the Bomb:
Quote:
  • event_var(es_username)
    • The name of the person that stopped planting
    event_var(es_steamid)
    • The steamid of the person that stopped planting
    event_var(es_userteam)
    • The team # of the person that stopped planting
    event_var(es_userhealth)
    • The health of the person that stopped planting
    event_var(es_userarmor)
    • The armor of the person that stopped planting
    event_var(es_userdeaths)
    • The number of deaths of the person that stopped planting
    event_var(es_userkills)
    • The number of kills of the person that stopped planting
    event_var(es_userweapon)
    • The name of the player's weapon that stopped planting
bomb_planted:
Quote:
  • 1. executes EVERY TIME A PLAYER SUCCESSFULLY PLANTS THE BOMB
    2. executes on EVERY PLAYER THAT PLANTS THE BOMB
Quote:
Variables Specific to bomb_planted That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that planted the bomb
    event_var(site)
    • The Valve-assigned site number assigned to the bomb site the player planted at
    event_var(posx)
    • The "X" position on the map where the bomb was planted
    event_var(posy)
    • The "Y" position on the map where the bomb was planted
Variables Specific to the Player That Planted the Bomb:
Quote:
  • event_var(es_username)
    • The name of the person that planted the bomb
    event_var(es_steamid)
    • The steamid of the person that planted the bomb
    event_var(es_userteam)
    • The team # of the person that planted the bomb
    event_var(es_userhealth)
    • The health of the person that planted the bomb
    event_var(es_userarmor)
    • The armor of the person that planted the bomb
    event_var(es_userdeaths)
    • The number of deaths of the person that planted the bomb
    event_var(es_userkills)
    • The number of kills of the person that planted the bomb
    event_var(es_userweapon)
    • The name of the player's weapon that planted the bomb
bomb_begindefuse:
Quote:
  • 1. executes EVERY TIME A PLAYER ATTEMPTS TO DEFUSE THE BOMB - (bomb still active)
    2. executes on the PLAYER THAT ATTEMPTS TO DEFUSE THE BOMB - (bomb still active)
Quote:
Variables Specific to bomb_begindefuse That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that is attempting to defuse the bomb
    event_var(haskit)
    • Whether or not the player attempting to defuse the bomb has a defusal kit
Variables Specific to the Player That Is Attempting to Defuse the Bomb:
Quote:
  • event_var(es_username)
    • The name of the person that is attempting to defuse the bomb
    event_var(es_steamid)
    • The steamid of the person that is attempting to defuse the bomb
    event_var(es_userteam)
    • The team # of the person that is attempting to defuse the bomb
    event_var(es_userhealth)
    • The health of the person that is attempting to defuse the bomb
    event_var(es_userarmor)
    • The armor of the person that is attempting to defuse the bomb
    event_var(es_userdeaths)
    • The number of deaths of the person that is attempting to defuse the bomb
    event_var(es_userkills)
    • The number of kills of the person that is attempting to defuse the bomb
    event_var(es_userweapon)
    • The name of the player's weapon that is attempting to defuse the bomb
bomb_abortdefuse:
Quote:
  • 1. executes EVERY TIME A PLAYER STOPS DEFUSING THE BOMB - (bomb still active)
    2. executes on the PLAYER THAT STOPS DEFUSING THE BOMB - (bomb still active)
Quote:
Variables Specific to bomb_abortdefuse That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that stopped defusing the bomb
Variables Specific to the Player That Stopped Defusing the Bomb:
Quote:
  • event_var(es_username)
    • The name of the person that stopped defusing the bomb
    event_var(es_steamid)
    • The steamid of the person that stopped defusing the bomb
    event_var(es_userteam)
    • The team # of the person that stopped defusing the bomb
    event_var(es_userhealth)
    • The health of the person that stopped defusing the bomb
    event_var(es_userarmor)
    • The armor of the person that stopped defusing the bomb
    event_var(es_userdeaths)
    • The number of deaths of the person that stopped defusing the bomb
    event_var(es_userkills)
    • The number of kills of the person that stopped defusing the bomb
    event_var(es_userweapon)
    • The name of the player's weapon that stopped defusing the bomb
bomb_defused:
Quote:
  • 1. executes EVERY TIME A PLAYER SUCESSFULLY DEFUSES THE BOMB - (bomb deactivated)
    2. executes on the PLAYER THAT SUCESSFULLY DEFUSES THE BOMB - (bomb deactivated)
Quote:
Variables Specific to bomb_defused That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that defused the bomb
    event_var(site)
    • The Valve-assigned site number assigned to the bomb site the player defused at
Variables Specific to the Player That Defused the Bomb:
Quote:
  • event_var(es_username)
    • The name of the person that defused the bomb
    event_var(es_steamid)
    • The steamid of the person that defused the bomb
    event_var(es_userteam)
    • The team # of the person that defused the bomb
    event_var(es_userhealth)
    • The health of the person that defused the bomb
    event_var(es_userarmor)
    • The armor of the person that defused the bomb
    event_var(es_userdeaths)
    • The number of deaths of the person that defused the bomb
    event_var(es_userkills)
    • The number of kills of the person that defused the bomb
    event_var(es_userweapon)
    • The name of the player's weapon that defused the bomb
bomb_exploded:
Quote:
  • executes EVERY TIME THE BOMB EXPLODES
Quote:
Variables Specific to bomb_exploded That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that planted the bomb
    event_var(site)
    • The Valve-assigned site number assigned to the bomb site the player planted at
Variables Specific to the Player That Planted the Bomb and Caused the Explosion:
Quote:
  • event_var(es_username)
    • The name of the person that planted the bomb that exploded
    event_var(es_steamid)
    • The steamid of the person that planted the bomb that exploded
    event_var(es_userteam)
    • The team # of the person that planted the bomb that exploded
    event_var(es_userhealth)
    • The health of the person that planted the bomb that exploded
    event_var(es_userarmor)
    • The armor of the person that planted the bomb that exploded
    event_var(es_userdeaths)
    • The number of deaths of the person that planted the bomb that exploded
    event_var(es_userkills)
    • The number of kills of the person that planted the bomb that exploded
    event_var(es_userweapon)
    • The name of the player's weapon that planted the bomb that exploded
bomb_dropped:
Quote:
  • 1. executes EVERY TIME A PLAYER DROPS THE BOMB
    2. executes on EACH PLAYER THAT DROPS THE BOMB
Quote:
Variables Specific to bomb_dropped That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that dropped the bomb
Variables Specific to the Player That Dropped the Bomb:
Quote:
  • event_var(es_username)
    • The name of the person that dropped the bomb
    event_var(es_steamid)
    • The steamid of the person that dropped the bomb
    event_var(es_userteam)
    • The team # of the person that dropped the bomb
    event_var(es_userhealth)
    • The health of the person that dropped the bomb
    event_var(es_userarmor)
    • The armor of the person that dropped the bomb
    event_var(es_userdeaths)
    • The number of deaths of the person that dropped the bomb
    event_var(es_userkills)
    • The number of kills of the person that dropped the bomb
    event_var(es_userweapon)
    • The name of the player's weapon that dropped the bomb
bomb_pickup:
Quote:
  • 1. executes EVERY TIME A PLAYER PICKS UP THE BOMB - (or starts with it)
    2. executes on EVERY PLAYER THAT PICKS UP THE BOMB - (or starts with it)
Quote:
Variables Specific to bomb_pickup That Are Expanded:
Quote:
  • event_var(userid)
    • The userid of the person that picked up the bomb
Variables Specific to the Player That Picked Up the Bomb:
Quote:
  • event_var(es_username)
    • The name of the person that picked up the bomb
    event_var(es_steamid)
    • The steamid of the person that picked up the bomb
    event_var(es_userteam)
    • The team # of the person that picked up the bomb
    event_var(es_userhealth)
    • The health of the person that picked up the bomb
    event_var(es_userarmor)
    • The armor of the person that picked up the bomb
    event_var(es_userdeaths)
    • The number of deaths of the person that picked up the bomb
    event_var(es_userkills)
    • The number of kills of the person that picked up the bomb
    event_var(es_userweapon)
    • The name of the player's weapon that picked up the bomb
bomb_beep:
Quote:
  • 1. executes EVERY TIME THE BOMB BEEPS - (once per second until the bomb explodes)
Quote:
Variables Specific to bomb_beep That Are Expanded:
Quote:
  • event_var(entindex)
    • The Valve-assigned entity index of the bomb (useless for EventScripts)
XE_ManUp is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode