Raised This Month: $51 Target: $400
 12% 

[TF2] Building God Mode


Post New Thread Reply   
 
Thread Tools Display Modes
K o T
Senior Member
Join Date: Jan 2011
Old 06-10-2013 , 23:40   Re: [TF2] Building God Mode
Reply With Quote #21

it is possible to make that all or administrations it was given without any teams
K o T is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 06-18-2013 , 00:10   Re: [TF2] Building God Mode
Reply With Quote #22

Updated to 1.1.0
- Changed verison cvar to only use notify flag
- Updated Command code to use a switch and optimized a few sections
- Moved setting bgod into a stock to remove repeating code
- Added cvar sm_bgod_auto to allow setting bgod automatically on players, can use override sm_bgod_autoflag to restrict to certain admin flags

Warning: Changed file name to BuildingGodMode.sp
Make sure you remove the previous versions first(TF2 Building God Mode.so)

Quote:
Originally Posted by K o T View Post
it is possible to make that all or administrations it was given without any teams
Using the new sm_bgod_auto cvar and override you can do this. Just set sm_bgod_auto to 1 and add an override to sm_bgod_autoflag with whatever flag you want to have access to it.

Last edited by Tylerst; 06-18-2013 at 00:10.
Tylerst is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 06-18-2013 , 09:52   Re: [TF2] Building God Mode
Reply With Quote #23

will this plugin work on multiple dispensers and sentries or just ones built directly By an engie, incase your wondering what i mean by multiple dispensers and sentries, I mean ones spawned by this: http://forums.alliedmods.net/showthread.php?t=190908
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB
Scipizoa is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 06-18-2013 , 11:07   Re: [TF2] Building God Mode
Reply With Quote #24

Quote:
Originally Posted by Scipizoa View Post
will this plugin work on multiple dispensers and sentries or just ones built directly By an engie, incase your wondering what i mean by multiple dispensers and sentries, I mean ones spawned by this: http://forums.alliedmods.net/showthread.php?t=190908
Yes, it loops through every entity and finds every building belonging to the client using m_hBuilder. I glanced at the code for the linked plugin and it does set m_hBuilder, so there should be no problems.

Last edited by Tylerst; 06-18-2013 at 11:07.
Tylerst is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 06-18-2013 , 13:57   Re: [TF2] Building God Mode
Reply With Quote #25

The Building Spawner plugin does not fire the "player_builtobject" event.

This means that buildings spawned with that plugin will NOT receive the Godmode provided by this plugin, unless the Godmode is activated after the building is spawned. If you have bgod enabled when spawning a building, you must deactivate and reactivate bgod to give that new building Godmode.

Last edited by ddhoward; 06-18-2013 at 14:00.
ddhoward is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 06-18-2013 , 14:25   Re: [TF2] Building God Mode
Reply With Quote #26

yea thats why when I asked i was asking if this update corrected that somehow[i.e does a check on each spawned building] because the previous update ignored any additional building spawned
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB
Scipizoa is offline
Tylerst
Veteran Member
Join Date: Oct 2010
Old 06-18-2013 , 19:38   Re: [TF2] Building God Mode
Reply With Quote #27

Ah I see, not much I can do about that on my end then. The only real ways to fix it within this plugin would be to check for the buildings constantly, which would be a massive and unnecessary increase in the processing, or completely rewrite it to use SDKHooks OnEntityCreated, but that'd be a bit much for an edge case.

The best and most optimal way would be to just edit the building spawner plugin to fire a player_builtobject event when it creates a building.

Last edited by Tylerst; 06-18-2013 at 19:47.
Tylerst is offline
Scipizoa
Senior Member
Join Date: Aug 2012
Location: ask me
Old 06-18-2013 , 20:00   Re: [TF2] Building God Mode
Reply With Quote #28

Oh well i guess ill have to wait for that lol
__________________

ZaBaGaBe Gaming Community: http://steamcommunity.com/groups/ZBGB
Scipizoa is offline
K o T
Senior Member
Join Date: Jan 2011
Old 06-25-2013 , 18:46   Re: [TF2] Building God Mode
Reply With Quote #29

Tylerst Well thanks ))
K o T is offline
K o T
Senior Member
Join Date: Jan 2011
Old 06-27-2013 , 14:37   Re: [TF2] Building God Mode
Reply With Quote #30

I use it on Mann vs. Machine
you could make only for the defined team please ;)

Last edited by K o T; 06-27-2013 at 14:37.
K o T is offline
Reply



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 09:14.


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