PDA

View Full Version : help with player_shield_blocked


rthompson
01-17-2012, 12:33
http://wiki.alliedmods.net/Team_Fortress_2_Events

information of player_shiled_blocked seems to be wrong.
can someone tell me the true structure of this event?
cus wiki has wrong information(same information with player_jarated_fade)
player_jarated_fade

Note: sent when a player is jarated, only to the two players involved

Name: player_jarated_fade Structure: byte thrower_entindex entindex of the player who threw the jarate byte victim_entindex entindex of the player receiving it

player_shield_blocked

Note: sent when a player is jarated, only to the two players involved

Name: player_shield_blocked Structure: byte attacker_entindex entindex of the player who threw the jarate byte blocker_entindex entindex of the player receiving it

Powerlord
01-17-2012, 14:39
These events are documented in orangebox/tf/resource/modevents.res:
"player_jarated_fade" // sent when a player is jarated
, only to the two players involved
{
"thrower_entindex" "byte" // entindex of the playe
r who threw the jarate
"victim_entindex" "byte" // entindex of the playe
r receiving it
}
"player_shield_blocked" // sent when a player is jarated
, only to the two players involved
{
"attacker_entindex" "byte" // entindex of the playe
r who threw the jarate
"blocker_entindex" "byte" // entindex of the playe
r receiving it
}As you can see, the comments even in the game files are wrong.

By the way, as far as I can tell, events are broadcast to all players, so "only to the two players involved" is always going to be wrong. In theory, the server can choose not to send them to users and only use it for its own logging purposes...