header image
Home arrow VICE Scoreboards
VICE Scoreboards PDF Print E-mail
Written by VICE Admin   
Apr 02, 2009 at 02:37 AM

The Observer script is designed to be used in devices like scoreboards or referee HUDs, passively listening to the combat events and reporting when a player joins combat, changes team, or gets killed by another player.  The observer then reports these changes via link messages.

By tracking the link messages listed below, one could devise a scoreboard, integrate VICE scoring into an RP system, and more.

 Link Messages


 integer

 string

 key

 Description

vice_on 

"vice ctrl"

""

Sent by a control script to toggle the observer script on or off.  vice_on=0 closes the listen socket and makes the observer inactive; any other integer enables the listener.  Note that a "seated" link message isn't necessary for the observer script, because it's not associated with any particular avatar in combat.

team_number

"join"

gunner_id

Sent by the observer script to inform that a player with key gunner_id has joined the game, and is on team team_number.

 team_number

"exit" 

gunner_id 

Sent by the observer script to inform that a player with key gunner_id has exited the game, and was on team team_number 

 team_number

"team" 

gunner_id 

Sent by the observer script to inform that a player with key gunner_id switched teams to join team team_number

 13

victim_id

gunner_id 

Sent by the observer script to inform that a player with key victim_id has been killed by a player with key attacker_id, and that this is a non-friendly-fire kill or suicide (suicide if victim_id==attacker_id).

 -13

victim_id

gunner_id

Sent by the observer script to inform that a player with key victim_id has been killed by a player with key attacker_id, and that this is a friendly-fire kill (the victim and attacker were on the same nonzero team).

Last Updated ( Apr 02, 2009 at 09:47 PM )
Login Form
Username

Password

Remember me
Password Reminder
No account yet? Create one