.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Bit stuck... (http://forums.bots-united.com/showthread.php?t=4372)

andrewcaus 20-08-2005 10:43

Bit stuck...
 
Ok, downloaded the template that someone, forget who, put up, where it just had the template with the bot code removed. I made a new cpp file, made a void with some simple stuff that changes CS. Now, I ran it and nothing happened, and then I remembered I hadn't called it.

Where do you call the void? Like what file, cause so much code it's confusing, and I don't really know the HL engine well at all.

The Storm 20-08-2005 13:41

Re: Bit stuck...
 
Maybe in StartFrame(). But if you want to make a modding for CS better use metamod.

Pierre-Marie Baty 21-08-2005 15:44

Re: Bit stuck...
 
Quote:

Originally Posted by andrewcaus
Where do you call the void?

What the hell are you talking about ???:(

The Storm 22-08-2005 10:05

Re: Bit stuck...
 
Quote:

Originally Posted by Pierre-Marie Baty
What the hell are you talking about ???:(

I think that he use the General HL Hook DLL Template that Whislter have made.
"
A stripped version of botman's HPB-Bot Template which doesn't contain any bot code. This is provided for developer who wants to write a non-bot intercept DLL for a HL MOD."
So I think that this guy here is created a new function() and he want to call it. SO if I remeber correct he must call this in StartFrame() and now this new function() will be called every single frame from the game.


Rick 22-08-2005 12:09

Re: Bit stuck...
 
I assume 'the void' means 'the function' :)
So you made a cool function that change some basic game rules? If you call this function in StartFrame() it will be executed every frame in HL.


All times are GMT +2. The time now is 10:33.

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