View Single Post
Author Message
nergal
Veteran Member
Join Date: Apr 2012
Old 11-05-2014 , 10:31   [TF2] Armchair Generals
Reply With Quote #1

Wiktionary defines "armchair general" as an outspoken warmonger, and/or a self-appointed strategist, who normally lacks actual military experience, and probably has no intention to get any in the near future.

This plugin allows the Spectator class to be more interactive through the use of pre-made Annotations to command a team of their choice.

General-Spectators will get a nifty HUD that tells them what team they are leading, the class count of their team, and how many players are dead.

To Command your team, press RELOAD while as a General for a menu that'll pop up and simply look at the intended area whilst selecting what command to give to your team.

This plugin uses the Transitional Syntax+API.

CONFIGS CONVARS
PHP Code:
// This file was auto-generated by SourceMod (v1.7.0-dev+4925)
// ConVars for plugin "armchair-general.smx"


// what flag admins need to bypass the Generals limit
// -
// Default: "a"
sm_armgeneral_adminflagbypass "a"

// How long Annotations can 'live' for
// -
// Default: "8.0"
// Minimum: "0.100000"
// Maximum: "9990.000000"
sm_armgeneral_annotelife "8.0"

// How many Generals BLU Team can have
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "16.000000"
sm_armgeneral_blulimit "3"

// Enable the ArmChair General plugin
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_armgeneral_enabled "1"

// x coordinate for the General HUD
// -
// Default: "-0.05"
sm_armgeneral_hudx "-0.05"

// y coordinate for the General HUD
// -
// Default: "-1.0"
sm_armgeneral_hudy "-1.0"

// How many Generals RED Team can have
// -
// Default: "3"
// Minimum: "0.000000"
// Maximum: "16.000000"
sm_armgeneral_redlimit "3"

// Allows Generals to see other Generals annotations
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_armgeneral_seeallannotes "0" 


Changelog ---
Oct 24, 2015 - updated code to use a single Commander methodmap and added the ability for commanders to send custom messages instead of premade ones.

March 11, 2015 - improved code, added class specific filtering and added admin command for custom annotations. Added advertisement to alert players of this plugin's feature
Attached Images
File Type: jpg 2014-11-05_00001.jpg (92.9 KB, 1472 views)
Attached Files
File Type: smx armchair-generals.smx (19.6 KB, 469 views)
File Type: sp Get Plugin or Get Source (armchair-generals.sp - 467 views - 16.9 KB)
__________________

Last edited by nergal; 10-25-2015 at 00:38. Reason: update
nergal is offline