.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Making your bots fire at my stuff in CS (http://forums.bots-united.com/showthread.php?t=2866)

Johnny got his gun 26-10-2004 22:32

Making your bots fire at my stuff in CS
 
Hello everyone

I'm making some weird stuff for CS, I'm with the AMX Mod X community. What I'm asking is if there is a general way your bots use for considering if something is an enemy, and so, is worth shooting at.

My latest project is stealing the sentry gun idea from TFC and putting them in CS. It works and all and I can also fake so that all your bots create sentry guns also, both randomly around map and when they touch func_bomb_targets and stuff like that.

So as you might understand, everything is great, except that the bots of course don't know that sentries are dangerous and if not avoided, at least should be shot at and hopefully destroyed. So I guess what I'm trying to do is fake it to make your bots believe that my sentry guns are enemy players.

Anyone have any ideas? Please don't say it's impossible, like target entities must be in range 1-32 or stuff like that... :|

I currently use Realbot on my test server, I guess it's a ~6 month old WIP version.

stefanhendriks 26-10-2004 23:07

Re: Making your bots fire at my stuff in CS
 
why dont you edit the realbot source? You can make them fire those guns then.

Huntkillaz 26-10-2004 23:13

Re: Making your bots fire at my stuff in CS
 
but doesnt he want it so any cs bot can shoot it, pretty much?

Pierre-Marie Baty 27-10-2004 01:23

Re: Making your bots fire at my stuff in CS
 
It will be very difficult to do so, I even think it's impossible. Most bots only look for enemies in the entity range 1 - 32.

Johnny got his gun 27-10-2004 07:24

Re: Making your bots fire at my stuff in CS
 
Ah ok yes I wanted any bot to be able to do this with only some "cheating" on my side, but I guess I got the answer I didn't want.

However these sentries are created as func_breakable:s (although later renamed to my custom "sentry"). Some bots fire at func_breakable:s, don't they, like windows and boxes around map. Realbots however Ive seen only fire at them when they are really close enough and I don't think I ever saw them fire at my stuff. Maybe because their classnames are changed?

Hmm I think editing Realbot's source would have to be another later project for me. It would be nice though if there were some kind of unified interface to bots in general, like a scripting engine for them so they can be controlled by 3rd parties without actually modifying their sources.

Pierre-Marie Baty 27-10-2004 13:17

Re: Making your bots fire at my stuff in CS
 
We hear you. I just wish I had more time, and other coders too, to push the United Bot forward. We're waiting for the HL2 SDK. When it'll be out, I'll get in touch with botman to know how he sees things.


All times are GMT +2. The time now is 10:10.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.