View Single Post
Author Message
Tylerst
Veteran Member
Join Date: Oct 2010
Old 11-07-2011 , 04:13   [TF2] Building God Mode
Reply With Quote #1

TF2 Building God Mode

Description: Set god mode(invincibility) on a targets' buildings and make them immune to sappers.

Cvars(default values shown):
sm_bgod_version "1.1.0"

sm_bgod_chat "1" - Enable/Disable Showing BGod changes in chat
sm_bgod_log "1" - Enable/Disable Logging BGod changes
sm_bgod_auto "0" - Set Building God Mode on clients automatically. Set override for sm_bgod_autoflag to only allow clients with specific admin flags

Commands:
sm_bgod "target" "1/0" - Default Slay Flag Can type !bgod or /bgod in chat to quickly enable/disable on yourself


Overrides
"sm_bgod_multi" to set an admin flag to allow/disallow targetting other players
"sm_bgod_autoflag" to set an admin flag to control who gets bgod with cvar sm_bgod_auto enabled


Examples:
sm_bgod @me 1 //Enable building god for yourself
sm_bgod @red 1 //Enable building god on red team
sm_bgod @all 1 //Enable building god on everyone
sm_bgod @!me 0 //Disable building god on everyone but yourself


Changelog:
Code:
Version 1.0.0 - November 7, 2011
* Initial Release

Version 1.0.1 - November 7, 2011
* Fixed sapper not being removed if sapping when bgod is activated

Version 1.0.2 - February 14, 2012
* Can now type !bgod or /bgod to toggle on self
* Added override sm_bgod_multi to allow/disallow targetting to a different flag than the command
* Removed tf2 and tf2_stocks includes since they weren't needed

Version 1.0.3 - November 3, 2012
* Added immunity to Red Tape Recorder
* Sapper removal is now instant(No sentry downtime)

Version 1.1.0 - June 17, 2013
Note: File name changed to BuildingGodMode.sp Make sure you remove previous versions(TF2 Building God Mode.sp)
* Changed flags of version cvar to notify only
* Rewrote the command section to use a switch and a few other code optimizations
* Moved setting bgod to it's own stock for less repeat code
* Added cvar sm_bgod_auto to allow for setting bgod automatically on players with override sm_bgod_autoflag to allow for only players with certain admin flags
Attached Files
File Type: sp Get Plugin or Get Source (BuildingGodMode.sp - 6192 views - 6.7 KB)

Last edited by Tylerst; 06-18-2013 at 00:05. Reason: Update
Tylerst is offline