![]() |
Desperate Help !!! :))
My bots don't receive any net messages except ScreenFade...I did everything correctly...I even set the "_vgui_menus" 0...Can anyone show me some examples on how to implement correctly MessageBegin function ????:cursing:
|
Re: Desperate Help !!! :))
http://filebase.bots-united.com/inde...on=file&id=380
Look into dll.cpp, engine.cpp, bot_client.cpp. |
Re: Desperate Help !!! :))
There is bot examples for CS from where you can see how they are getting the messages. If you still can't do it show us how actually you are hooking the functions and parsing the messages.
|
Re: Desperate Help !!! :))
1 Attachment(s)
Here's my project Storm...take a look at it if you may...and pls don't laugh at it..:D There is only 1 cpp file...it includes all that I implemented so far...
|
Re: Desperate Help !!! :))
Oh, putting everything in one is really bad idea. :)
This night my time (GMT+2) I will have some free time and I will play with your code to find the problem, deal ? :P |
Re: Desperate Help !!! :))
Of course...and pls if you can and won't fall asleep...:D pls comment it k ???
|
Re: Desperate Help !!! :))
Ok, the problem is that you are not calling RunPlayerMove() each frame in StartFrame() function (that you haven't hooked) for each bot. Because I see that the "ShowMenu" is called for me but not for the bot the problem can be only that. :)
As soon as the bot is putted in to the server with ClientPutInServer() you must begin to call the RunPlayerMove() function. |
Re: Desperate Help !!! :))
Please, fell free to modify it as you will...add your name to the project...I won't have time right now to thinker it...I have exams coming up in my art class :) and I have to draw,draw,draw...! HLSDK is such a headaque
|
Re: Desperate Help !!! :))
1 Attachment(s)
From that I saw you have been using metamod 1.17 headers, the current metamod is 1.19 and dunno what version of the SDK, probably the original from the installer witch is out of date. I putted in to the archive the latest HLSDK and Metamod headers and I modified your project file to work with them, I modified some parts of the source and I putted comments, just look for "The Storm" without the quotes, your RunPlayerMove() function is not calling because the check in StartFrame() that loops around all bots fails, you must see whats wrong there, I can't easy go up with so messy code. :}
Find the structure with the engine function tables like the DLL_FUNCTIONS structure and put there your hook functions that you want to call because now the MessageBegin() will not be called because I deleted this lines so you to be able to fix it up. So After all the main problem is that the loop in StartFrame() that search for bots and call RunPlayerMove() for them is failing. :) I recommend downloading Metamod from http://metamod-p.sf.net/ and to create new project with the "stub" plugin example and make it clean this time. :) |
Re: Desperate Help !!! :))
I don't think it's necessary to use the latest Metamod/HLSDK headers as they are backward compatiable.
Using the latest headers will only do 2 things: 1) give you access to the latest HLSDK functions (which are mostly unnecessary for bots) and 2) make the plugin incompatiable with older versions of Metamod. |
All times are GMT +2. The time now is 23:04. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.