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

[TF2] Building Hacks (0.4) - Build in respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 09-05-2009 , 15:16   [TF2] Building Hacks (0.4) - Build in respawn
Reply With Quote #1

Straight forward extension that lets engineers build in the respawn area. There is full control over which buildings are allowed through a convar.

To install, copy over the sourcemod folder from the appropriate release:
Latest version
Source code

Usage:
The default settings of this extension block only exits from being built in respawn. Modify the convar: building_enabled - (def. 14) to change that. Each building has a corresponding number. Add up all the numbers for all the buildings you want to allow to determine the value:

Code:
Dispenser - 2
Sentry gun - 4
Teleporter Entrance - 8
Teleporter Exit - 16
For example, if I wanted only dispensers and entrances to be built in spawn, the value would be 10. ( 2 + 8 )

By default, players can only build in their own team's respawn room. To bypass this, set the cvar building_teamcheck to 0.

Both windows and linux are supported now! As updates roll around, I'll try to keep this working, hope you guys enjoy.

Change log:
Code:
0.4 - Steampipe update
    - Added team check and cvar building_teamcheck
0.3 - Fixed sentries being destructed when entering func_respawnroom 
    - Updated gamedata for 9/7 update
0.2.9 - Updated gamedata for 5/18 update
0.2.9 - Updated gamedata in the latest release | Added linux binary against the new libs | Fixed warning
0.2.9 - Fixed bug that prevented teleporter exits from being built
0.2.8 - Fixes for the 119th update / Changed binary name
0.2.7 - Added much better building checking
0.2.6 - Fixed capability issues with SDKTools
        Improved building matching 
0.2.5 - Added more unique building checks
0.2.4 - TF2 Update: 2/3/10 (Windows only)
0.2.3 - TF2 Update: 1/28/10 (Windows only)
0.2.2 - TF2 Update: 1/27/10 (Windows only)
0.2.1 - Fixed a bug
0.2 - Added support for windows; Added support to restrict buildings
0.1 - Initial Release
Credits:
pRED* for his detour class

Last edited by pheadxdll; 04-30-2013 at 22:02.
pheadxdll is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-05-2009 , 15:47   Re: [EXTENSION] Teleport (0.1) - Build teleporters in spawn
Reply With Quote #2

Quote:
Originally Posted by pheadxdll View Post
CFuncRespawnRoom :: PointIsWithin(Vector const&)
\x8B\x2A\x2A\x2A\xD9\x00\x8B\x2A\x2A\x2A\xD8\ x22\xD9\x59\x10\xD9\x40\x04
CTeamplayRoundBasedRules :: SetInWaitingForPlayers(bool)

\x56\x8B\xF1\xE8\x2A\x2A\x2A\x2A\x84\xC0\x0F\ x2A\x2A\x2A\x2A\x2A\xA1
I'm pretty sure the PointIsWithin one is correct, but there's a chance I might have done it wrong. The SetInWaitingForPlayers one should work just fine.
bl4nk is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 09-05-2009 , 16:31   Re: [EXTENSION] Teleport (0.1) - Build teleporters in spawn
Reply With Quote #3

Alright, I've added them. I can't try them myself until later. Windows users are welcome to tell us whether they work or not.
pheadxdll is offline
Chris-_-
SourceMod Donor
Join Date: Oct 2008
Old 09-05-2009 , 18:46   Re: [EXTENSION] Teleport (0.1) - Build teleporters in spawn
Reply With Quote #4

Cool
Chris-_- is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 09-06-2009 , 16:37   Re: [EXTENSION] Teleport (0.1) - Build teleporters in spawn
Reply With Quote #5

Seems to be crashing on my windows server. Can you double check those sigs?

If I have it autoload it crashes on startup. If I load it after the server has started, it crashes when I spawn/join a team. Makes me think it could be something other than the sigs.

I've taken down the windows package until I can get it working. Linux version works fine, in case anyone was wondering..

Last edited by pheadxdll; 09-06-2009 at 16:47.
pheadxdll is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 01-26-2010 , 20:50   Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
Reply With Quote #6

Bump! Extension has been totally re-written so that you can now select which buildings are allowed and so windows support was possible. I've confirmed that it works on both linux and windows.

Edit: Fixed a bug, so download 0.2.1 if you touched this within the last couple of hours.

Last edited by pheadxdll; 01-26-2010 at 23:29.
pheadxdll is offline
MisterNine
Member
Join Date: Jan 2010
Old 01-27-2010 , 00:20   Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
Reply With Quote #7

Exceptional work! Very much appreciated.

Last edited by MisterNine; 01-27-2010 at 04:57.
MisterNine is offline
MisterNine
Member
Join Date: Jan 2010
Old 01-27-2010 , 22:00   Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
Reply With Quote #8

As of today's update, this extension no longer works on my windows server. Is it functioning under Linux?
MisterNine is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 01-27-2010 , 23:56   Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
Reply With Quote #9

That was fast. Looks like the update broke windows, but not linux. I've updated the 0.2.2 build to work with windows. Should be working again.
pheadxdll is offline
MisterNine
Member
Join Date: Jan 2010
Old 01-28-2010 , 01:38   Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
Reply With Quote #10

Works perfectly again. Many thanks!
MisterNine is offline
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 05:57.


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