Team Fortress 2/plugin objectives
From Task Force Ranger
Contents |
Team Fortress 2: Objectives Plugin
Description
The Objectives plugin, written in Python using Eventscripts, allows each team to vote on a Team Leader. The Team Leader can place objective markers (colored smoke) anywhere on the map and manage players through an easy menu. This script is designed to mimic the objective markers that can be set by Commanders in the Battlefield series.
Commands
Type $obj in general chat while you are a Team Leader to access the main Objectives menu. You can automate this by typing bind <key> "say $obj" in your console (~ key), then pressing <key>.
To access the Objectives compass as any player, type bind <key> +obj_compass in your console (~ key), where <key> is the key you want to bind. To display the compass, simply hold down <key>, and the compass will show around your feet, with laser arrows pointing towards objectives you are assigned to. Release <key> to make the compass go away.
Console Commands
obj [add|del|move] [objective_name]
Example binds:
bind KP_END "obj add Attack"
bind KP_DOWNARROW "obj move Attack"
bind KP_PGDN "obj del Attack"
HUD
As Team Leader, Objectives will display a list of all current objectives for your team in the center-bottom of your screen, along with all players assigned to each objective and the color of the objective marker.
As a player, Objectives will display a list of all objective you are assigned to, and the players in each objective.
Team Leader Menu
Menu options are selected by pressing number keys 0-9 on your keyboard. Press 0 at any time to close the menu.
Add Objective
This menu is for adding new objectives.
Objective Name
After selecting the objective name, the objective will be created wherever your character is looking.
Manage Players
This menu is for adding and removing players from objectives.
Select Player
Select a player to add/remove.
Add/Remove player from
After selecting an objective, the plugin adds the player to the objective. If the player is already in the objective, they are removed from that objective.
Resign
Select your replacement
This will bring up another menu that allows you to select any player on your team to become the Team Leader.
Let your team vote
This starts the Team Leader vote.
Code
Contact Acid to obtain the source code for this plugin, or to report bugs.
