2016-07-27

Undo revision 10186 by Scardybob (talk)

← Older revision

Revision as of 20:33, 27 July 2016

Line 1:

Line 1:

:''Refer back to [[Game Events (Source)]] for more events.''

:''Refer back to [[Game Events (Source)]] for more events.''



===
switching_to_new_map
===

+

===
player_death
===

{{qnotice|}}<br>

{{qnotice|}}<br>



{{begin-hl2msg|
switching_to_new_map
|string}}

+

{{begin-hl2msg|
player_death
|string
}}



{{hl2msg|string|
mapname
|name
of the map to switch
}}

+

{{hl2msg|short|userid|user ID who died}}

+

{{hl2msg|short|attacker|user ID who killed
}}

+

{{hl2msg|string|
weapon
|
weapon
name
killed used}}

+

{{hl2msg|short|weaponid|weapon id}}

+

{{hl2msg|long|damagebits|bits}}

+

{{hl2msg|long|customkill|custom bits}}

+

{{hl2msg|short|priority|
}}

{{end-hl2msg}}

{{end-hl2msg}}



+

===
player_hurt
===



===
point_captured
===

+

{{qnotice|}}<br>



{{qnotice|
Called when a point is capture
}}<br>

+

{{begin-hl2msg|
player_hurt
|string}}



{{begin-hl2msg|
point_captured
|string}}

+

{{hl2msg|
short
|
userid
|
user ID who was hurt
}}



{{hl2msg|
bool
|
team
|
the team that captured the point
}}

+

{{hl2msg|
local|attacker|user id who attacked (
short
)}}



{{hl2msg|short|
location
|the
location of the point
}}

+

{{hl2msg
|
local
|
health|remaining health points (short)}}

+

{{hl2msg|local|weapon|weapon name attacker used, if not
the
world (string)}}

+

{{hl2msg|short|dmg_health|damage done to health}}

+

{{hl2msg|local|hitgroup|hitgroup that was damaged (byte)}}

+

{{hl2msg|local|type|damage type (long)
}}

{{end-hl2msg}}

{{end-hl2msg}}



+

===
player_changeclass
===



===
point_neutral
===

+

{{qnotice|Called when a
player changes class
}}<br>



{{qnotice|Called when a
point becomes neutral
}}<br>

+

{{begin-hl2msg|
player_changeclass
|string}}



{{begin-hl2msg|
point_neutral
|string}}

+

{{hl2msg|
short|userid|}}



{{hl2msg|
bool
|
team
|
the team that neutralized the point
}}

+

{{hl2msg|short
|
class
|}}



{{hl2msg|short|
location
|
the location of the point
}}

+

{{hl2msg|short|
subclass
|}}

{{end-hl2msg}}

{{end-hl2msg}}



+

===
spec_target_updated
===



===
player_death
===

+

{{qnotice|}}<br>



{{qnotice|
Called when a player dies
}}<br>

+

{{begin-hl2msg|
spec_target_updated
|string}}



{{begin-hl2msg|
player_death
|string}}

+

{{hl2msg|
None
|
None
|}}



{{hl2msg|
short|userid|user ID of the player who died}}

+



{{hl2msg|short|attacker|user ID of the player who killed}}

+



{{hl2msg|byte|hide|team to hide the kill message from}}

+



{{hl2msg|string
|
weapon
|
name of the weapon used to kill the player
}}

+

{{end-hl2msg}}

{{end-hl2msg}}



+

===
achievement_earned
===



===
game_end ===

+



{{qnotice|Called when the game ends}}<br>

+



{{begin-hl2msg|game_end|string}}

+



{{hl2msg|bool|team|team who won}}

+



{{hl2msg|short|entity|the entity players spectate at the end of the round}}

+



{{end-hl2msg}}

+



+



=== voice_command
===

+

{{qnotice|}}<br>

{{qnotice|}}<br>



{{begin-hl2msg|
voice_command
|string}}

+

{{begin-hl2msg|
achievement_earned
|string}}



{{hl2msg|
bool
|
team
|
which team the message is for
}}

+

{{hl2msg|
short
|
player
|}}



{{hl2msg|short|
command|what message to play}}

+

{{hl2msg|short|
achievement
|}}



{{hl2msg|byte|sub
|
sub identifier for some messages
}}

+

{{end-hl2msg}}

{{end-hl2msg}}



+

===
player_spawned_at_tgate
===



===
commander_alert
===

+

{{qnotice|}}<br>

{{qnotice|}}<br>



{{begin-hl2msg|
commander_alert
|string}}

+

{{begin-hl2msg|
player_spawned_at_tgate
|string}}



{{hl2msg|
bool
|team|
which
team the
message
is for}}

+

{{hl2msg|
short|userid|}}



{{hl2msg|short|
command
|
what message to play
}}

+

{{end-hl2msg}}



{{hl2msg|
float
|
coord_x
|
x coordinate
}}

+

=== structure_death ===



{{hl2msg|
float
|
coord_y
|
y coordinate
}}

+

{{qnotice|fired when we sell a structure}}<br>



{{hl2msg|
float
|
coord_z
|
z coordinate
}}

+

{{begin-hl2msg|structure_death|string}}

+

{{hl2msg|short|type|type of structure sold}}

+

{{hl2msg|short
|team|
the
team the
structure belonged to}}

+

{{hl2msg|short|entindex|The entidx of the structure}}

+

{{hl2msg|short|attacker|userid of attacking player}}

+

{{hl2msg|local|weapon|weapon name the attacker used (string)}}

+

{{end-hl2msg}}

+

=== structure_damage_sparse ===

+

{{qnotice|
is
only fired
for
every 100hp taken. no spamz here}}<br>

+

{{begin-hl2msg|structure_damage_sparse|string
}}

+

{{hl2msg|short|
entindex
|
entity index of structure being damaged
}}

+

{{hl2msg|
short
|
ownerteam
|
team that owns the structure - Todo: optimize this out!
}}

+

{{hl2msg|
bool
|
bunker
|
was it the bunker?
}}

+

{{hl2msg|
local|userid|user id that damaged the structure}}

+

{{hl2msg|bool
|
nosound
|}}

{{end-hl2msg}}

{{end-hl2msg}}



+

===
structure_sold
===



===
commander_vote_time
===

+

{{qnotice|
fired
when
we sell a structure
}}<br>



{{qnotice|
called
when
the commander vote begins
}}<br>

+

{{begin-hl2msg|
structure_sold
|string}}



{{begin-hl2msg|
commander_vote_time
|string}}

+

{{hl2msg|short|
type
|
type of structure sold
}}



{{hl2msg|short|
time
|
time left in the vote
}}

+

{{hl2msg|
short
|
ownerteam
|
the team the structure belonged
to}}



{{hl2msg|
bool
|
commander_exists
|
allows us
to
use this even for warmup time on commander-less maps
}}

+

{{end-hl2msg}}

{{end-hl2msg}}



+

===
structure_fully_auto_repaired
===



===
commander_tactic_time
===

+

{{qnotice|
fired
when a
damaged structure gets healed to 100% hp using auto repair
}}<br>



{{qnotice|
called
when
the tactics time for
a
commander begins
}}<br>

+

{{begin-hl2msg|
structure_fully_auto_repaired
|string}}



{{begin-hl2msg|
commander_tactic_time
|string}}

+

{{hl2msg|short|
type
|
type of structure repaired
}}



{{hl2msg|short|
time
|
the tactic time left
}}

+

{{hl2msg|short|
entindex
|
entity index of repaired structure}}



{{hl2msg|short|
panel
|
which tactics panel is currently being viewed
}}

+

{{hl2msg|short|ownerteam|team that the structure belongs to
}}

{{end-hl2msg}}

{{end-hl2msg}}



+

===
structure_fully_man_repaired
===



===
commander_end_tactical_discussion
===

+

{{qnotice|
fired
when
a damaged structure gets healed
to
100% hp by supports
}}<br>



{{qnotice|
called
when
an elected commander wishes
to
end the tactic time
}}<br>

+

{{begin-hl2msg|
structure_fully_man_repaired
|string}}



{{begin-hl2msg|
commander_end_tactical_discussion
|string}}

+

{{hl2msg|short|
type|type of structure repaired}}



{{hl2msg|short|
team
|
which
team
would like
to
end tactics time
}}

+

{{hl2msg|short|entindex|entity index of repaired structure}}

+

{{hl2msg|short|ownerteam
|team
that the structure belongs
to
}}

+

{{hl2msg|local|userid|user id that repaired the sturcture
}}

{{end-hl2msg}}

{{end-hl2msg}}



=== structure_built ===

=== structure_built ===

{{qnotice|structure fully built. fired client-side. commander only. same team.}}<br>

{{qnotice|structure fully built. fired client-side. commander only. same team.}}<br>

Show more