Bot characteristics

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Bot characteristics

Post by UglyFoot »

Hello, I'm trying to use bots as targets for a entityplus map. To do this I need the bots ignore the player and just move to the waypoints.

I tried creating a new bot and change the characteristics file but it does not work. The most important values I have changed are AGGRESSION and ALERTNESS, both set to 0.0, and then I changed others just to try but didn't work.

According to this guide with these two is enough but the truth is that the bot behaves like if I had not made ​​the changes. I checked all, with g_debugBotSpawns I see the personality is loaded, the level of difficulty is the one I modified (5) and matches with g_spSkill. I have even tested it in vq3 but the same happens, so I must be missing something very basic but I don't know what it is.

I've attached the characteristics file and the test map.
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Re: Bot characteristics

Post by UglyFoot »

I've been the last few days trying this and from what I see I wasn't doing anything wrong, it's just alertness and agression seem to have very little effect. Even setting all values ​​to 0.0 (or 0.1) I couldn't do what I wanted so I discarded this way.

Apparently there is a command for that called notarget but it doesn't actually work. I looked in the source code and saw that it isn't implemented, so I'll have to forget about this for now.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Bot characteristics

Post by Eraser »

I think I've solved your problem.
I've added an IGNORE_PLAYER spawnflag to the target_botspawn entity. Any bot spawned by a target_botspawn with this spawnflag will fully ignore the player, even when the bot is attacked by the player.
Additionally, I've implemented a use for the "notarget" console command. If you enter \notarget in the console, all bots in the game will ignore you.

If you want I can send you a build of the current state of the mod so you can play around with this new spawnflag.
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: Bot characteristics

Post by obsidian »

Eraser wrote:this spawnflag will fully ignore the player, even when the bot is attacked by the player.
Any possibility of having another spawnflag that causes the bot to only attack the player if the bot is attacked or if the bot sees the player? Would be useful for stealth based missions.
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Bot characteristics

Post by Eraser »

Errr, that is the default behavior of bots? I mean, a bot can't attack something he can't see :)
You can set up a bot patrol route with info_waypoint entities so I guess that is the desired effect, no?

Thing is though, I think bots are too aware of their surroundings to create any stealth gameplay in the sense of Splinter Cell or Thief. Also, there's no hiding in dark corners. Bots are equipped with infra red vision by default ;)
deqer
Posts: 298
Joined: Mon Dec 28, 2009 6:30 pm

Re: Bot characteristics

Post by deqer »

In combination with Obisidian's request, I'd also like a spawnflag for "START_WALK"

So, a bot that ignores player until attacked, but also starts in walk mode until attacked.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Bot characteristics

Post by Eraser »

Yeah that is on my todo list, but I'm having some difficulty finding how it works. It should be possible, considering that the Crash bot never runs on the lowest difficulty. It's got a high priority as far as I'm concerned.
User avatar
CZghost
Posts: 1943
Joined: Wed Jun 22, 2011 1:45 pm
Location: Czechia
Contact:

Re: Bot characteristics

Post by CZghost »

Eraser wrote:Bots are equipped with infra red vision by default
Bots attack the player entity they see. Bots do not see lightmap as they wouldn't navigate trough dark areas, they see only polygons and entities, such players are entities. If a bot sees a player entity, it will naturaly attack it when the bot has no special setting it won't see player...
If you modify the bot's code in the navigation section, it would be able to navigate as they see polygons AND lightmap so when the light goes under visibility value it would stop moving and attacking everyone he's in the dark place, but I'm not sure it's true at all or it's only a theory...

Maybe it should be able with some game core modifications, which requires compilation of new executable file...
For many people the bot code looks like traditional chinesse...
[ Linktree | Twitch | YouTube | Instagram | Websites ]
When you feel the worst, turn to the sun and all the shadows will fall behind you.” - John Lennon
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Re: Bot characteristics

Post by UglyFoot »

Wow, thank you Eraser, I thought this topic would be completely ignored.

Yes, I would like to try that spawnflag, can you upload the latest version to the homepage? if not you can just send it to my email, I'll send you a PM.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Bot characteristics

Post by Eraser »

UglyFoot, download the zip file linked below and extract it to your EntityPlus folder. It adds a pak1.pk3 file with new qvm files and it replaces the existing entities.def file.
Don't forget to remove the pak1.pk3 file when the next "official" release is out and you install that.

https://dl.dropboxusercontent.com/u/186 ... typlus.zip
UglyFoot
Posts: 139
Joined: Fri Jul 22, 2011 12:35 pm

Re: Bot characteristics

Post by UglyFoot »

Ok, I've downloaded it and I'll try it later, thank you.
deqer
Posts: 298
Joined: Mon Dec 28, 2009 6:30 pm

Re: Bot characteristics

Post by deqer »

Eraser wrote: but I'm having some difficulty finding how it works.
Perhaps you've already thought of this, but I would suggest scanning the source code for "+speed" console command and see what it's doing and if you can use that or copy from it.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Bot characteristics

Post by Eraser »

I succeeded in making the bots walk. The target_botspawn entity has two additional spawnflags: PATROL_WALK and ALWAYS_WALK. The PATROL_WALK spawnflag makes the bot walk while patrolling along info_waypoint entities, but it will run when attacking the player. The ALWAYS_WALK spawnflag forces the bot to always walk, even when attacking the player. ALWAYS_WALK overrides PATROL_WALK in case both spawnflags are set.
deqer
Posts: 298
Joined: Mon Dec 28, 2009 6:30 pm

Re: Bot characteristics

Post by deqer »

Coolbeans, dude. The feature WILL be used.

Unfortunately, I haven't had a chance to start mapping again yet. No free time, lately.
User avatar
Eraser
Posts: 19174
Joined: Fri Dec 01, 2000 8:00 am

Re: Bot characteristics

Post by Eraser »

I know the feeling :/ Real life often gets in the way.
Post Reply