Raised This Month: $154 Target: $400
 38% 

[TF2] Building God Mode


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tylerst
Veteran Member
Join Date: Oct 2010
Plugin ID:
2641
Plugin Version:
1.1.0
Plugin Category:
Admin Commands
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    169 
    Plugin Description:
    Set god mode(invincibility) on a targets' buildings and make them immune to sappers.
    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 - 3345 views - 6.7 KB)

    Last edited by Tylerst; 06-18-2013 at 00:05. Reason: Update
    Tylerst is offline
    ConkertheCat
    Senior Member
    Join Date: Oct 2011
    Location: Internet
    Old 11-07-2011 , 18:27   Re: [TF2] Building God Mode
    Reply With Quote #2

    ^_^ thank you
    ConkertheCat is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-09-2011 , 00:53   Re: [TF2] Building God Mode
    Reply With Quote #3

    Nice and simple.
    Approved.
    __________________
    DarthNinja is offline
    Skyrider
    AMX Mod X Beta Tester
    Join Date: May 2005
    Location: Netherlands
    Old 11-09-2011 , 13:41   Re: [TF2] Building God Mode
    Reply With Quote #4

    Any different from this one?

    http://forums.alliedmods.net/showthread.php?p=1329948

    I assume the @blu / @red commands are not added in the link above. Seeing also that DarthNinja created the plugin as well.
    __________________

    Last edited by Skyrider; 11-09-2011 at 13:43.
    Skyrider is offline
    Send a message via AIM to Skyrider Send a message via MSN to Skyrider Send a message via Yahoo to Skyrider
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 11-09-2011 , 13:44   Re: [TF2] Building God Mode
    Reply With Quote #5

    Quote:
    Originally Posted by Skyrider View Post
    Any different from this one?

    http://forums.alliedmods.net/showthread.php?p=1329948

    I assume the @blu / @red commands are not added in the link above.
    That one prevents the buildings from being sapped, this plugin prevents the building from dying, being the "attacker" a sapper or a client.
    __________________
    napalm00 is offline
    DarthNinja
    SourceMod Plugin Approver
    Join Date: Mar 2009
    Location: PreThinkHook()
    Old 11-09-2011 , 15:22   Re: [TF2] Building God Mode
    Reply With Quote #6

    • My plugin makes buildings unsappable, though they can still be destroyed by shooting them.
    • This plugin gives buildings godmode so they can't be destroyed by anything.
    __________________
    DarthNinja is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 02-13-2012 , 22:05   Re: [TF2] Building God Mode
    Reply With Quote #7

    Is there an admin flag so players with permission can only give themselves building immunity?
    Mr. Man is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 02-14-2012 , 03:46   Re: [TF2] Building God Mode
    Reply With Quote #8

    Quote:
    Originally Posted by Mr. Man View Post
    Is there an admin flag so players with permission can only give themselves building immunity?
    There is now.

    You can now use the sm_bgod_multi override to change access for targetting.

    Examples:
    If you want users with the t flag to use it on themselves but let those with the f flag to target normally you would add these overrides:
    sm_bgod "t"
    sm_bgod_multi "f"

    or if you wanted everyone(even non-admins) to be able to use self bgod but admins with b to target others you would use set them like this:
    sm_bgod ""
    sm_bgod_multi "b"

    etc...
    Tylerst is offline
    Mr. Man
    Veteran Member
    Join Date: Mar 2011
    Location: Huh?
    Old 02-15-2012 , 17:32   Re: [TF2] Building God Mode
    Reply With Quote #9

    Quote:
    Originally Posted by Tylerst View Post
    There is now.

    You can now use the sm_bgod_multi override to change access for targetting.

    Examples:
    If you want users with the t flag to use it on themselves but let those with the f flag to target normally you would add these overrides:
    sm_bgod "t"
    sm_bgod_multi "f"

    or if you wanted everyone(even non-admins) to be able to use self bgod but admins with b to target others you would use set them like this:
    sm_bgod ""
    sm_bgod_multi "b"

    etc...
    I will try this solution in the admin_overrides.cfg later tonight. Thanks!
    Mr. Man is offline
    C0nw0nk
    Senior Member
    Join Date: May 2011
    Location: United Kingdom
    Old 05-21-2012 , 10:46   Re: [TF2] Building God Mode
    Reply With Quote #10

    This is a good plugin but it has a major flaw with spy sappers if you spam sapping a engineers building over and over it slowley takes down the buildings health eventualy destroying it.

    What would be good if like a infinite ammo plugin it also gives the buildings infinite health so it constantly resets the buildings health to 100%
    C0nw0nk is offline
    Send a message via MSN to C0nw0nk
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:38.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode