.:: 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 ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Msec Value Help.....
Old
  (#1)
He@dShot
Member
 
He@dShot's Avatar
 
Status: Offline
Posts: 40
Join Date: Mar 2008
Location: Romania, Craiova
Warning Msec Value Help..... - 20-05-2008

I've looked trough other authors's msec value but I can't decide what msec value is the best...can anyone help ?
  
Reply With Quote
Re: Msec Value Help.....
Old
  (#2)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Msec Value Help..... - 20-05-2008

I recommend the gpGlobals->frametime * 1000.0f method.

Btw I'm going in turkey with my class for 5 days, I hope that there will be someone that will answer in this forums until I'm back...
  
Reply With Quote
Re: Msec Value Help.....
Old
  (#3)
He@dShot
Member
 
He@dShot's Avatar
 
Status: Offline
Posts: 40
Join Date: Mar 2008
Location: Romania, Craiova
Default Re: Msec Value Help..... - 20-05-2008

Nice, have fun in Turkey...! Just one question more... When I create my bot and I debug it it shows that his current Network message received is ScreenFade...Why is that ? Why doesn't he recieve VGUI net message directly ??
  
Reply With Quote
Re: Msec Value Help.....
Old
  (#4)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,620
Join Date: Jul 2004
Location: Bulgaria
Default Re: Msec Value Help..... - 20-05-2008

After some point of steam update the CS bots are unable to recieve VGUI messages correct, the solution is to use the classic text menus (old style), to do this when creating bot you must disable his vgui menus so the old style text one to be active, in the topic for "Creating bot entity" the code that I showed you do that in this line:
Code:
ENTITY_SET_KEYVALUE(pEdict, "_vgui_menus", "0");
Now you must look for the MessageId "ShowMenu" and to handle it.

P.S. Thanks for the wish, bye bye.
  
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 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com