Difference between revisions of "Pirates, Vikings, Knights II Events"

From AlliedModders Wiki
Jump to: navigation, search
Line 157: Line 157:
 
{{begin-hl2msg|item_pickup}}
 
{{begin-hl2msg|item_pickup}}
 
{{hl2msg|short|userid|}}
 
{{hl2msg|short|userid|}}
{{hl2msg|short|type|Type of pickup; 0 = Food, 1 = Armor, 2 = Ranged Ammo}}
+
{{hl2msg|short|type|Type of pickup; 0 - Food, 1 - Armor, 2 - Ranged Ammo}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
Line 164: Line 164:
 
{{hl2msg|short|userid|}}
 
{{hl2msg|short|userid|}}
 
{{hl2msg|short|chestid|}}
 
{{hl2msg|short|chestid|}}
{{hl2msg|byte|last_owner|Last team that controlled it; 1 = None, 2 = Pirates, 3 = Vikings, 4 = Knights}}
+
{{hl2msg|byte|last_owner|Last team that controlled it; 1 - None, 2 - Pirates, 3 - Vikings, 4 - Knights}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
Line 172: Line 172:
 
{{hl2msg|short|chestid|}}
 
{{hl2msg|short|chestid|}}
 
{{hl2msg|short|oldid|Chests get a new index every time that they are dropped}}
 
{{hl2msg|short|oldid|Chests get a new index every time that they are dropped}}
{{hl2msg|byte|last_owner|Last team that controlled it; 1 = None, 2 = Pirates, 3 = Vikings, 4 = Knights}}
+
{{hl2msg|byte|last_owner|Last team that controlled it; 1 - None, 2 - Pirates, 3 - Vikings, 4 - Knights}}
 
{{hl2msg|short|bashid|userid of player that bashed the carrier to drop it (if any)}}
 
{{hl2msg|short|bashid|userid of player that bashed the carrier to drop it (if any)}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}

Revision as of 13:43, 23 March 2010

Refer back to Game Events (Source) for more events.

player_death

Note: When player dies

Name: player_death
Structure:
short userid
short attacker
short assistid
string weapon
bool special Death by special
bool grail Death counted toward grail score
bool suiassist Suicide assist


round_end

Note: When round ends

Name: round_end
Structure:
short winner {{{3}}}


player_changeteam

Name: player_changeteam
Structure:
short userid
short oldteam
short newteam


player_changeclass

Name: player_changeclass
Structure:
short userid
short old_class
short new_class


player_spawn

Name: player_spawn
Structure:
short userid


player_objective

Note: Occurs when player completes an objective

Name: player_objective
Structure:
short userid
string groupids List of userids for players doing objective
short assistid Assistant (0 means unused)
short enemyid Possible enemy (0 means unused)
string extra String of extra data placed in #EXTRA# section of score string
string text Text to append to userid's name (#I# is userid, #ASSIST# is assistid, #ENEMY# is enemyid)


player_points

Note: Occurs when player gains points

Name: player_points
Structure:
short userid
float points Number of points gained
short sid Score ID


player_stats_updated

Name: player_stats_updated
Structure:
bool forceupload


player_nemesis

Name: player_nemesis
Structure:
short userid Player who caused the nemesis
short victim Victim of the nemesis


player_revenge

Name: player_revenge
Structure:
short userid Player who achieved revenge
short victim Player who was the nemesis


npc_death

Note: Occurs when an npc dies (e.g. parrot)

Name: npc_death
Structure:
short userid userid of the NPC/parrot owner
short attacker userid that killed the NPC
string weapon
bool special
string type Classname of the npc entity (npc_parrot/npc_vulture)


player_hurt

Note: Occurs when a player takes damage

Name: player_hurt
Structure:
short userid
short health
short priority
short attacker


player_special

Note: Occurs when a player uses a special

Name: player_special
Structure:
short userid


player_throw_explosive

Name: player_throw_explosive
Structure:
short userid
string weapon


player_bomb_explode

Name: player_bomb_explode
Structure:
short userid
string victims List of userids hit by explosive
string weapon
float damage Total damage done


player_melee_swing

Name: player_melee_swing
Structure:
short userid
string victims List of userids hit by swing
string weapon
short atkdir Direction of attack
float damage Total damage
float hitper Percentage of swing arc that hit targets


player_ranged_impact

Note: Occurs on ranged weapon impact. Also occurs on keg impact and chest impact (thrownkeg and chest respectively)

Name: player_ranged_impact
Structure:
short userid
short victim
string weapon
float damage Damage dealt (0 if missed or blocked)


player_ranged_impale

Note: Occurs when a player is impaled to a surface by a projectile Note: A player_ranged_impact event just prior to this event with a matching victim will give complete information

Name: player_ranged_impale
Structure:
short victim


projectile_bounce

Note: Listen for a player_ranged_impact event immediately after this one, with matching userid, for complete impact information

Name: projectile_bounce
Structure:
short userid
string weapon


player_healtheffect

Name: player_healtheffect
Structure:
short userid
float health
float duration
short type


item_pickup

Name: item_pickup
Structure:
short userid
short type Type of pickup; 0 - Food, 1 - Armor, 2 - Ranged Ammo


chest_pickup

Name: chest_pickup
Structure:
short userid
short chestid
byte last_owner Last team that controlled it; 1 - None, 2 - Pirates, 3 - Vikings, 4 - Knights


chest_drop

Name: chest_drop
Structure:
short userid
short chestid
short oldid Chests get a new index every time that they are dropped
byte last_owner Last team that controlled it; 1 - None, 2 - Pirates, 3 - Vikings, 4 - Knights
short bashid userid of player that bashed the carrier to drop it (if any)