![]() |
Tell HPB_Bot no grenades (in TFC)?
Is there any way to configure HPB_Bot's to NOT use grenades at all?
|
Re: Tell HPB_Bot no grenades (in TFC)?
1 Attachment(s)
I setup various grenade-suppression scripts on my TFC server, only to find that while it prevented players from having/using grenades, the bots still did. I'm my case I'm using BotMan's old "HPB-Bot" bot's. Don't know if that's an issue with other bots (like Fox-Box) or not.
So, I had to come up with an alternate method. Having some HL & TFC mapping experience, I new there was a "func_nogrenades" entity that mappers can use to create an invisible field which prevents grenades from exploding and doing any damage. This is typically used in respawn rooms and resupply rooms to prevent them from being continuously spammed - particularly on friendly-fire servers. There is also a "func_nobuild" entity that is used to prevent Engineers from building sentries and dispensers in undesirable places as well. Anyway, for years I've used an old BotMan mod called "Stripper2" on my HL server to strip-out some weapons at run-time - effectively preventing them from spawning without having to modify the BSP map file itself. Well, "Stripper2" can also spawn entities into a game a run-time. So, I've created Stripper2 configuration files for each default TFC map (and a custom map that I run) to essentially spawn a func_nogrenades entity over the entire playable area of the map. I wasn't sure how the game engine would react to a func_nogrenades entity (or any other entity for that matter) that used the entire possible world coordinates. So when I created these configuration files, I made sure they only covered the space in the coordinate system that each map actually uses. Doing that was a bit of a challenge. I had to use a utility out there called BSP2Map to essentially dump the map's source-code (in .MAP format) to a file, open it in Hammer (the old formerly-WorldCraft version, not the Source engine version), create the "brush-based entity" that covered the entire usable area, etc. I never saved anything back into the BSP file itself, just used the data from it as a reference to get the size and position of the func_nogrenades entity right. Then exported to .MAP from Hammer a resultant .MAP file, containing only the func_nogrenades brush-based entity. Then I had to translate those coordinates into the format that Stripper2 wanted in it's configuration file. Of course, that process was repeated for each map because they each use different areas of the "world" coordinates. As an example, here's the Stripper2 configuration information for 2Fort: Code:
[strip] I've packaged-up the Stripper2 configurations files and such and posted them on the web for anyone interested. The file is available at the URL listed below: http://www.ladt.us/files/TFCNoGrenades.ZIP References: Stripper2: http://hpb-bot.bots-united.com/stripper2.html HPB-Bot: http://hpb-bot.bots-united.com |
All times are GMT +2. The time now is 09:41. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.