UberGuy (FT)
02-10-2003, 02:30 PM
I've updated support.vl2 (scripts.tribalwar.com/uberguy/files/support/support.vl2) with a new utility script called flag_tracker.cs. Please note that if you grabbed the 02/09/03 release, please get the 02/10/03 version, as there was a bug in the 9th's release.
Flag tracker is a central point of information for all the information about the current state of the flag. Currently it supports only CTF, but I plan to quickly add support for TR2.
In CTF, you can query each team's flag status (At home, in field, or taken) and what player was responsible for the last state change (ie, who has the flag, or who dropped it).
It also provides callbacks for the following events: Flag taken from stand, flag dropped, flag returned, flag captured, and flag picked up midfield. While all of these callbacks except the midfield one were available in T2, they didn't have consistent data passed. Flag_tracker normalizes the data and passes it in a very simple data structure.
There were some additions to team_tracker.cs to support flag_tracker.cs. Nothing that was already there should have changed.
Finally, I've put out there a script called UberFlagSounds (scripts.tribalwar.com/uberguy/uberflagsounds.htm) that uses flag_tracker to provide unique sounds for all the flag status changes, and to make sure that the sounds are different for each team. Also midfield grabs now sound different from stand grabs. Note that this isn't a soundpack - it uses normal T2 sounds, though some are from other gametypes (Hunters and TR2).
This new support will also be used to add flag statistics to UberTracker.
Flag tracker is a central point of information for all the information about the current state of the flag. Currently it supports only CTF, but I plan to quickly add support for TR2.
In CTF, you can query each team's flag status (At home, in field, or taken) and what player was responsible for the last state change (ie, who has the flag, or who dropped it).
It also provides callbacks for the following events: Flag taken from stand, flag dropped, flag returned, flag captured, and flag picked up midfield. While all of these callbacks except the midfield one were available in T2, they didn't have consistent data passed. Flag_tracker normalizes the data and passes it in a very simple data structure.
There were some additions to team_tracker.cs to support flag_tracker.cs. Nothing that was already there should have changed.
Finally, I've put out there a script called UberFlagSounds (scripts.tribalwar.com/uberguy/uberflagsounds.htm) that uses flag_tracker to provide unique sounds for all the flag status changes, and to make sure that the sounds are different for each team. Also midfield grabs now sound different from stand grabs. Note that this isn't a soundpack - it uses normal T2 sounds, though some are from other gametypes (Hunters and TR2).
This new support will also be used to add flag statistics to UberTracker.