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

From AlliedModders Wiki
Jump to: navigation, search
(Filled out all of the PVK2 events)
(Trinket changes, 2.4)
 
Line 190: Line 190:
 
=== grail_pickup ===
 
=== grail_pickup ===
 
{{begin-hl2msg|grail_pickup}}
 
{{begin-hl2msg|grail_pickup}}
{{hl2msg|short|userid|}}
+
{{hl2msg|short|team|Team whose trinket was picked up}}
{{hl2msg|short|victim|}}
+
{{hl2msg|short|userid|user ID of player who picked up trinket}}
{{hl2msg|short|assistid|}}
+
{{hl2msg|short|victim|user ID of player who was killed to get trinket, otherwise 0}}
 +
{{hl2msg|short|assistid|user ID of player who assisted in killing the victim if was a non-kill pickup will always be 0}}
 +
{{hl2msg|bool|initial|true on round start}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
 
=== grail_drop ===
 
=== grail_drop ===
{{qnotice|Not fired when a grail carrier dies}}
+
{{qnotice|Not fired when a grail carrier dies (and attacker receives grail, see grail_pickup instead)}}
 
{{begin-hl2msg|grail_drop}}
 
{{begin-hl2msg|grail_drop}}
 
{{hl2msg|short|userid|}}
 
{{hl2msg|short|userid|}}
 +
{{hl2msg|short|team|}}
 +
{{hl2msg|short|killerid|}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  
Line 204: Line 208:
 
{{begin-hl2msg|grail_grace}}
 
{{begin-hl2msg|grail_grace}}
 
{{hl2msg|short|userid|Player that is getting grace points}}
 
{{hl2msg|short|userid|Player that is getting grace points}}
 +
{{end-hl2msg}}
 +
 +
=== grail_despawn ===
 +
{{begin-hl2msg|grail_despawn}}
 +
{{hl2msg|short|team|Team whose trinket despawned}}
 +
{{end-hl2msg}}
 +
 +
=== trinket_heal===
 +
{{begin-hl2msg|grail_despawn}}
 +
{{hl2msg|short|team|Team whose trinket this is}}
 +
{{hl2msg|short|amount|Total amount healed to teammates by the trinket}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}
  

Latest revision as of 17:21, 24 January 2012

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 team Team whose trinket was picked up
short userid user ID of player who picked up trinket
short victim user ID of player who was killed to get trinket, otherwise 0
short assistid user ID of player who assisted in killing the victim if was a non-kill pickup will always be 0
bool initial true on round start


grail_drop

Note: Not fired when a grail carrier dies (and attacker receives grail, see grail_pickup instead)

Name: grail_drop
Structure:
short userid
short team
short killerid


grail_grace

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


grail_despawn

Name: grail_despawn
Structure:
short team Team whose trinket despawned


trinket_heal

Name: grail_despawn
Structure:
short team Team whose trinket this is
short amount Total amount healed to teammates by the trinket


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


achievement_event_almost

Name: achievement_event_almost
Structure:
string achivement_name
short my_val
short req_val


achievement_event

Name: achievement_event
Structure:
string achivement_name
short cur_val
short max_val