.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Msec Value Help..... (http://forums.bots-united.com/showthread.php?t=6787)

He@dShot 20-05-2008 19:07

Msec Value Help.....
 
I've looked trough other authors's msec value but I can't decide what msec value is the best...can anyone help ?

The Storm 20-05-2008 20:55

Re: Msec Value Help.....
 
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...

He@dShot 20-05-2008 21:34

Re: Msec Value Help.....
 
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 ??

The Storm 20-05-2008 22:03

Re: Msec Value Help.....
 
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. :)


All times are GMT +2. The time now is 21:01.

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