.:: 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
Bit stuck...
Old
  (#1)
andrewcaus
Member
 
Status: Offline
Posts: 15
Join Date: Jul 2005
Default Bit stuck... - 20-08-2005

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.
  
Reply With Quote
Re: Bit stuck...
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: Bit stuck... - 20-08-2005

Maybe in StartFrame(). But if you want to make a modding for CS better use metamod.
  
Reply With Quote
Re: Bit stuck...
Old
  (#3)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Bit stuck... - 21-08-2005

Quote:
Originally Posted by andrewcaus
Where do you call the void?
What the hell are you talking about ???



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Bit stuck...
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: Bit stuck... - 22-08-2005

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.

  
Reply With Quote
Re: Bit stuck...
Old
  (#5)
Rick
Council Member
 
Rick's Avatar
 
Status: Offline
Posts: 690
Join Date: Dec 2003
Location: Holland
Default Re: Bit stuck... - 22-08-2005

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.
  
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