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

From AlliedModders Wiki
Jump to: navigation, search
Line 11: Line 11:
 
{{hl2msg|bool|grail|Death counted toward grail score}}
 
{{hl2msg|bool|grail|Death counted toward grail score}}
 
{{hl2msg|bool|suiassist|Suicide assist}}
 
{{hl2msg|bool|suiassist|Suicide assist}}
{{end-hl2msg}}
 
 
=== round_end ===
 
{{qnotice|When round ends}}
 
{{begin-hl2msg|round_end|string}}
 
{{hl2msg|short|winner}}
 
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
Line 174: Line 168:
 
{{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}}
 +
 +
=== chest_capture ===
 +
{{begin-hl2msg|chest_capture}}
 +
{{hl2msg|short|userid|}}
 +
{{hl2msg|short|chestid|}}
 +
{{end-hl2msg}}
 +
 +
=== chest_respawn ===
 +
{{begin-hl2msg|chest_respawn}}
 +
{{hl2msg|short|chestid|}}
 +
{{end-hl2msg}}
 +
 +
=== chest_special ===
 +
{{qnotice|Occurs when player uses special while carrying a chest}}
 +
{{begin-hl2msg|chest_special}}
 +
{{hl2msg|short|userid|}}
 +
{{hl2msg|short|chestid|}}
 +
{{end-hl2msg}}
 +
 +
=== grail_pickup ===
 +
{{begin-hl2msg|grail_pickup}}
 +
{{hl2msg|short|userid|}}
 +
{{hl2msg|short|victim|}}
 +
{{hl2msg|short|assistid|}}
 +
{{end-hl2msg}}
 +
 +
=== grail_drop ===
 +
{{qnotice|Not fired when a grail carrier dies}}
 +
{{begin-hl2msg|grail_drop}}
 +
{{hl2msg|short|userid|}}
 +
{{end-hl2msg}}
 +
 +
=== grail_grace ===
 +
{{begin-hl2msg|grail_grace}}
 +
{{hl2msg|short|userid|Player that is getting grace points}}
 +
{{end-hl2msg}}
 +
 +
=== round_end ===
 +
{{begin-hl2msg|round_end|string}}
 +
{{hl2msg|short|winner|}}
 +
{{end-hl2msg}}
 +
 +
=== gamemode_suddendeath_begin ===
 +
{{qnotice|Fired when Sudden Death begins in Last Team Standing game mode}}
 +
{{begin-hl2msg|gamemode_suddendeath_begin}}
 +
{{hl2msg|short|plpirate|Number of pirates left alive}}
 +
{{hl2msg|short|plviking|Number of vikings left alive}}
 +
{{hl2msg|short|plknight|Number of knights left alive}}
 +
{{end-hl2msg}}
 +
 +
=== gamemode_roundrestart ===
 +
{{begin-hl2msg|gamemode_roundrestart}}
 +
{{end-hl2msg}}
 +
 +
=== gamemode_firstround_wait_begin ===
 +
{{begin-hl2msg|gamemode_firstround_wait_begin}}
 +
{{end-hl2msg}}
 +
 +
=== gamemode_firstround_wait_end ===
 +
{{begin-hl2msg|gamemode_firstround_wait_end}}
 +
{{hl2msg|short|plpirate|Number of pirates}}
 +
{{hl2msg|short|plviking|Number of vikings}}
 +
{{hl2msg|short|plknight|Number of knights}}
 +
{{end-hl2msg}}
 +
 +
=== gamemode_territory_capture ===
 +
{{begin-hl2msg|gamemode_territory_capture}}
 +
{{hl2msg|string|userids|List of players that participated in the capture}}
 +
{{hl2msg|short|team|}}
 +
{{hl2msg|short|tindex|Territory that was captured}}
 +
{{end-hl2msg}}
 +
 +
=== gamemode_territory_guard ===
 +
{{begin-hl2msg|gamemode_territory_guard}}
 +
{{hl2msg|short|userid|}}
 +
{{end-hl2msg}}
 +
 +
=== gamemode_territory_contested ===
 +
{{begin-hl2msg|gamemode_territory_contested}}
 +
{{hl2msg|bool|pirates|}}
 +
{{hl2msg|bool|vikings|}}
 +
{{hl2msg|bool|knights|}}
 +
{{end-hl2msg}}
 +
 +
=== game_end ===
 +
{{begin-hl2msg|game_end}}
 +
{{end-hl2msg}}
 +
 +
=== update_mvp_panel ===
 +
{{begin-hl2msg|update_mvp_panel}}
 +
{{hl2msg|short|winner|}}
 +
{{hl2msg|short|pid_1|}}
 +
{{hl2msg|short|pid_2|}}
 +
{{hl2msg|short|pid_3|}}
 +
{{hl2msg|short|pscore_1|}}
 +
{{hl2msg|short|pscore_2|}}
 +
{{hl2msg|short|pscore_3|}}
 +
{{hl2msg|float|pdmg_1|}}
 +
{{hl2msg|float|pdmg_2|}}
 +
{{hl2msg|float|pdmg_3|}}
 +
{{end-hl2msg}}
 +
 +
=== spec_target_updated ===
 +
{{begin-hl2msg|spec_target_updated }}
 +
{{end-hl2msg}}
 +
 +
=== achievement_earned ===
 +
{{begin-hl2msg|achievement_earned}}
 +
{{hl2msg|byte|player|entindex of the player}}
 +
{{hl2msg|short|achievement|Achievement ID}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}

Revision as of 14:56, 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


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)


chest_capture

Name: chest_capture
Structure:
short userid
short chestid


chest_respawn

Name: chest_respawn
Structure:
short chestid


chest_special

Note: Occurs when player uses special while carrying a chest

Name: chest_special
Structure:
short userid
short chestid


grail_pickup

Name: grail_pickup
Structure:
short userid
short victim
short assistid


grail_drop

Note: Not fired when a grail carrier dies

Name: grail_drop
Structure:
short userid


grail_grace

Name: grail_grace
Structure:
short userid Player that is getting grace points


round_end

Name: round_end
Structure:
short winner


gamemode_suddendeath_begin

Note: Fired when Sudden Death begins in Last Team Standing game mode

Name: gamemode_suddendeath_begin
Structure:
short plpirate Number of pirates left alive
short plviking Number of vikings left alive
short plknight Number of knights left alive


gamemode_roundrestart

Name: gamemode_roundrestart
Structure:


gamemode_firstround_wait_begin

Name: gamemode_firstround_wait_begin
Structure:


gamemode_firstround_wait_end

Name: gamemode_firstround_wait_end
Structure:
short plpirate Number of pirates
short plviking Number of vikings
short plknight Number of knights


gamemode_territory_capture

Name: gamemode_territory_capture
Structure:
string userids List of players that participated in the capture
short team
short tindex Territory that was captured


gamemode_territory_guard

Name: gamemode_territory_guard
Structure:
short userid


gamemode_territory_contested

Name: gamemode_territory_contested
Structure:
bool pirates
bool vikings
bool knights


game_end

Name: game_end
Structure:


update_mvp_panel

Name: update_mvp_panel
Structure:
short winner
short pid_1
short pid_2
short pid_3
short pscore_1
short pscore_2
short pscore_3
float pdmg_1
float pdmg_2
float pdmg_3


spec_target_updated

Name: spec_target_updated
Structure:


achievement_earned

Name: achievement_earned
Structure:
byte player entindex of the player
short achievement Achievement ID