.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Enhancement Workshop > Game Scripting (AMX, Small, etc.)
Game Scripting (AMX, Small, etc.) Where game engines and interpreters allow you to mess under the hood

Reply
 
Thread Tools
Re: Amxbot
Old
  (#11)
T(+)rget
AMX Dev Team
 
T(+)rget's Avatar
 
Status: Offline
Posts: 28
Join Date: Dec 2004
Location: UK
Default Re: Amxbot - 07-12-2004

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

Last edited by T(+)rget; 07-12-2004 at 15:49..
  
Reply With Quote
Re: Amxbot
Old
  (#12)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Amxbot - 07-12-2004

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 ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Amxbot
Old
  (#13)
T(+)rget
AMX Dev Team
 
T(+)rget's Avatar
 
Status: Offline
Posts: 28
Join Date: Dec 2004
Location: UK
Default Re: Amxbot - 07-12-2004

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.
  
Reply With Quote
Re: Amxbot
Old
  (#14)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: Amxbot - 08-12-2004

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

That might be good for navmeshes.


sfx1999.postcount++
  
Reply With Quote
Re: Amxbot
Old
  (#15)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Amxbot - 08-12-2004

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



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Amxbot
Old
  (#16)
T(+)rget
AMX Dev Team
 
T(+)rget's Avatar
 
Status: Offline
Posts: 28
Join Date: Dec 2004
Location: UK
Default Re: Amxbot - 21-12-2004

Ok tried different lightlevels from another 2 sources which is from Entvars and Usercmds both return 0 for BOTS
  
Reply With Quote
Re: Amxbot
Old
  (#17)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Amxbot - 21-12-2004

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..."
  
Reply With Quote
Re: Amxbot
Old
  (#18)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Amxbot - 21-12-2004

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.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Amxbot
Old
  (#19)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Amxbot - 21-12-2004

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.



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Amxbot
Old
  (#20)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: Amxbot - 21-12-2004

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


sfx1999.postcount++
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com