.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Game Scripting (AMX, Small, etc.) (http://forums.bots-united.com/forumdisplay.php?f=59)
-   -   Amxbot (http://forums.bots-united.com/showthread.php?t=3102)

T(+)rget 07-12-2004 14:43

Re: Amxbot
 
Can you give me more indepth info about illumination?

If you say bots mainly need this to not see players into the dark places can't this be easily fixed for normal players as you just check the traceline and the player id hit to check there illumination level instead?

I also see a potential flaw with this design unless you cater for nightvision? Also you mention about following a player, that would be a bug within the sound system as well since the bot should roughly know where the player sound has stopped?

I dunno about your gaming style but the big centerid (Enemy) gives away where players are anyhow :D

Pierre-Marie Baty 07-12-2004 15:15

Re: Amxbot
 
What I mean, is that if you call GetEntityIllum() on a player edict, it works. BUT, if you call GetEntityIllum() on a bot edict, it returns 0. This is why bot coders have to be cautious around this issue. If they want to retrieve a bot's illumination value, they must call GetEntityIllum() on another edict than the bot's own edict. This is why we make dummy entities follow bots around when they walk (since calling GetEntityIllum() on these entities do work).

Anyway, it was an old bug of the HL engine, but perhaps it's been fixed now by the Valve guys. I haven't checked. Can you confirm the behaviour I'm saying here, or does it work differently ?

T(+)rget 07-12-2004 15:18

Re: Amxbot
 
I can confirm 0 for Bots on CS v1.6

I was just trying to workout why you need to get the bots illumination whilst in dark places, obviously bot vs bot with a method which I mentioned would return 0 all the time.

sfx1999 08-12-2004 06:26

Re: Amxbot
 
Just curious, how is lightlevel stored in a map? I mean, with lightmaps and all.

That might be good for navmeshes.

Pierre-Marie Baty 08-12-2004 13:22

Re: Amxbot
 
That is for sure a good idea, unfortunately it is never "tied" to the faces. You can have a face split in both with one half illuminated and another one in the dark. That would be quite a big hassle to take that in account :(

T(+)rget 21-12-2004 01:19

Re: Amxbot
 
Ok tried different lightlevels from another 2 sources which is from Entvars and Usercmds both return 0 for BOTS :(

KWo 21-12-2004 08:57

Re: Amxbot
 
I know nothing about bot coding (and any C++ coding) and maybe I shouldn't post here and talking about something I know nothing, but maybe there is somewhere described the list of all HL functions not working for bots (but working correctly for human-players) and the list of all known workarounds made by bot coders to get their bots to work? I'm asking to prevent the situation the new bot coder is trying to open some door already opened by other. Since You guys are as "United" - maybe it's possible to put here some Your knowledge for other people? I'm thinking about something like the info in "wiki" or in some sticky thread like "What You have to know when You are trying to write Your bot for HL..."

stefanhendriks 21-12-2004 09:47

Re: Amxbot
 
i thought there was a way to create an entity (temp one) and give it no model. Then you change the position to the bots position and you can read the light info. There was something at the former botmans forums about that.

Pierre-Marie Baty 21-12-2004 21:52

Re: Amxbot
 
Yes, that's what I was doing too. You don't set it no model though, it must have a model for rendering illumination correctly. Instead you set it a model that fits inside the bot's model (so that nobody can see it). That's what I was doing and what I was telling T(+)rget to do but he doesn't like the fact of having to spawn and move another entity in the game (he thinks about lag issues). Personally I don't think the trouble caused is that big, but not everybody may agree.

sfx1999 21-12-2004 22:01

Re: Amxbot
 
I thought temorary entities were entities transmitted to the client and never seen again, like the gauss beam, or the lightning from Quake.


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

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