AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Building God Mode (https://forums.alliedmods.net/showthread.php?t=171518)

Tylerst 11-07-2011 04:13

[TF2] Building God Mode
 
1 Attachment(s)
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


ConkertheCat 11-07-2011 18:27

Re: [TF2] Building God Mode
 
^_^ thank you

DarthNinja 11-09-2011 00:53

Re: [TF2] Building God Mode
 
Nice and simple.
Approved.

Skyrider 11-09-2011 13:41

Re: [TF2] Building God Mode
 
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.

napalm00 11-09-2011 13:44

Re: [TF2] Building God Mode
 
Quote:

Originally Posted by Skyrider (Post 1593433)
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.

DarthNinja 11-09-2011 15:22

Re: [TF2] Building God Mode
 
  • 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.

Mr. Man 02-13-2012 22:05

Re: [TF2] Building God Mode
 
Is there an admin flag so players with permission can only give themselves building immunity?

Tylerst 02-14-2012 03:46

Re: [TF2] Building God Mode
 
Quote:

Originally Posted by Mr. Man (Post 1650117)
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...

Mr. Man 02-15-2012 17:32

Re: [TF2] Building God Mode
 
Quote:

Originally Posted by Tylerst (Post 1650190)
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!

C0nw0nk 05-21-2012 10:46

Re: [TF2] Building God Mode
 
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%


All times are GMT -4. The time now is 17:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.