.:: 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 ::. > Cyborg Factory > RealBot > The RealBot 'Source'
The RealBot 'Source' Discuss things about the source code. You can here point out bugs, share ideas and code. Assign to become an 'official team member' and so on!

Reply
 
Thread Tools
Problem with RealBot and CSBot:
Old
  (#1)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Problem with RealBot and CSBot: - 21-09-2004

It seems that realbot still uses model detection to determine enemies...
This is a bad idea if realbot is to be compatible with czero. first off, there are 5 skins in czero. Support needs to be added for Spetsnaz and Militia models. As a temporary fix, for offline play only:
Alter your BotProfile.db to not allow any bots to choose the #5 skin.
For On-line play: no fix....
CZ TOD custom missions:
You CAN kick csbot and substitute realbot but if the mission pack uses 50+ custom skins, you'll have BIG problems!

Is there an easier way that could be used to detect enemies?
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Problem with RealBot and CSBot: - 22-09-2004

int UTIL_GetTeam(edict_t *pEntity)
{
union
{
short s;
char c[2];
} t;

char *p = g_engfuncs.pfnInfoKeyValue(g_engfuncs.pfnGetInfoKe yBuffer(pEntity), "model");
t.c[0] = p[0];
t.c[1] = p[1];

if (t.s == (('e' << 8 ) + 't') || // TError
t.s == (('e' << 8 ) + 'l') || // LEet
t.s == (('r' << 8 ) + 'a') || // ARctic
t.s == (('u' << 8 ) + 'g') || // GUerilla
t.s == (('i' << 8 ) + 'm')) // MIlitia
return TEAM_TERRORIST;

return TEAM_CT; // URban, GSg9, SAs, GIgn, VIp, SPetsnaz
}

^-- very 1337 one

also this may be the only way to detect teams if you don't have the source code to the MOD

edit: [ code ] tag doesn't work correctly in this forum ??????

Last edited by Whistler; 22-09-2004 at 09:16..
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#3)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: Problem with RealBot and CSBot: - 22-09-2004

Hopefully someone with some coding knowledge can apply this in a future release...
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#4)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Problem with RealBot and CSBot: - 22-09-2004

then this should be in the 'source' forum...


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#5)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: Problem with RealBot and CSBot: - 22-09-2004

Quote:
...also this may be the only way to detect teams if you don't have the source code to the MOD...
I got to thinking about this some more and csbot, which originally was a hook.dll, detects teams by other means, no matter what the model names are that are being used. Maybe something to do with the spawn entities? I don't know, I don't code, I just know there's a better way to detect teams out there...
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#6)
frashman
Member
 
Status: Offline
Posts: 36
Join Date: Jun 2004
Location: Germany
Default Re: Problem with RealBot and CSBot: - 03-10-2004

don't understand the choherences ...


MfG Frashman

Last edited by frashman; 03-10-2004 at 13:15..
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#7)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Problem with RealBot and CSBot: - 03-10-2004

csbot is NOT a "hook dll". The warez version of "ZBot" is actually the cracked version of czero 1.0 mp.dll.
You can overwrite your original mp.dll with the warez "ZBot" and you'll find your CS will still work.
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#8)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: Problem with RealBot and CSBot: - 05-10-2004

I thought Z-Bot was the leaked beta version of the CSBot... which was tested on cstrike not czero... I just assumed that it would have been a hook dll, I never got to beta test the bot...
The current CSBot is embedded in the czero mp.dll
I guess the beta bot was embedded in a beta mp.dll?
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#9)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Problem with RealBot and CSBot: - 05-10-2004

Quote:
Originally Posted by Whistler
also this may be the only way to detect teams if you don't have the source code to the MOD
well I know it cannot be the only way to detect teams because of chickenmod and some other mod which changes the players models..
more than likely the team data is stored in the private data...
if only someone had time to figure out all the offsets to all the saved stuff in the CS player private data...
  
Reply With Quote
Re: Problem with RealBot and CSBot:
Old
  (#10)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Problem with RealBot and CSBot: - 05-10-2004

the offset is likely to change when CS is updated so that may be not a good idea
  
Reply With Quote
Reply


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

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 - 2025, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com