Pirates, Vikings, Knights II Events

From AlliedModders Wiki
Revision as of 13:56, 23 March 2010 by MadKat (talk | contribs)
Jump to: navigation, search
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