TF2 Nobuild Areas
Hey everybody!
After seeing requests and also having my own needs, I created this plugin. It allows you to add func_nobuild brushes everywhere on a map. This is useful with versus saxton hale maps if you don't want to struggle with decompiling maps and such. I put this plugin together with help from the [TF2] autokits plugin, which is based on DarthNinja's Auto Pumpkins.
This is also my first released plugin and I am sure the code could be more optimized.
Usage
To spawn a brush, use the command
sm_nobuild and then select "Create". After that you get some options on how the area should be configured.
If you want to delete a nobuild area you also use sm_nobuild and select "Delete Nearest Nobuild Area". It finds the nearest nobuild brush, that is in the range of 600 units.
You can view all the areas in the map by using the command
sm_shownobuild
The options you have when configuring an area:
Quote:
Size- 128 x 128 x 64
- 256 x 256 x 64
- 512 x 512 x 64
- 128 x 128 x 128
- 256 x 256 x 128
- 512 x 512 x 128
TeamBuildings to allow- Allow none
- Sentries
- Dispensers
- Teleporters
- Sentries and Dispensers
- Sentries and Teleporters
- Dispensers and Teleporters
|
Installation guide
Just download the smx and move it to the plugins folder.
The nobuilds you add gets saved in the local sqlite database.
Therefore, you have to add this to your databases.cfg
Code:
"nobuildareas"
{
"driver" "sqlite"
"host" "localhost"
"database" "TF2_Nobuildareas"
"user" "root"
"pass" ""
}
Changelog
Quote:
24-07-2017
1.00 Initial release
25-07-2017
1.01 Fixed some areas getting spawned with a vector origin that didn't match the database, which means those areas couldn't be deleted.
26-07-2017
1.02 Added beams on the edges of created areas and added the command !shownobuild to visually show all areas in a map.
28-07-2017
1.03 Added the feature to specify team and what buildings to allow
|
Improvements to be added- Move from database to cfg (Requested, but could be causing delays Idk)
- Getting rid of this message: Setting CBaseEntity to non-brush model
- Beams are not showing in mvm for some reason.