AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [TF2] Building Hacks (0.4) - Build in respawn (https://forums.alliedmods.net/showthread.php?t=102731)

pheadxdll 09-05-2009 14:16

[TF2] Building Hacks (0.4) - Build in respawn
 
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! :up: 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

bl4nk 09-05-2009 14:47

Re: [EXTENSION] Teleport (0.1) - Build teleporters in spawn
 
Quote:

Originally Posted by pheadxdll (Post 923948)
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.

pheadxdll 09-05-2009 15:31

Re: [EXTENSION] Teleport (0.1) - Build teleporters in spawn
 
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.

Chris-_- 09-05-2009 17:46

Re: [EXTENSION] Teleport (0.1) - Build teleporters in spawn
 
Cool

pheadxdll 09-06-2009 15:37

Re: [EXTENSION] Teleport (0.1) - Build teleporters in spawn
 
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..

pheadxdll 01-26-2010 19:50

Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
 
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. :up:

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

MisterNine 01-26-2010 23:20

Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
 
Exceptional work! Very much appreciated.

MisterNine 01-27-2010 21:00

Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
 
As of today's update, this extension no longer works on my windows server. Is it functioning under Linux?

pheadxdll 01-27-2010 22:56

Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
 
That was fast. :P 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.

MisterNine 01-28-2010 00:38

Re: [EXTENSION] [TF2] Building Hacks (0.2) - Build in respawn
 
Works perfectly again. Many thanks!


All times are GMT -4. The time now is 05:44.

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