Coding bots for call of duty

No There was no compile error but! when I went to add bots they didn't come in???

Oh yer thanks for helping me again SFR :) much appreciated
 
edit:

LOL.. well I just wrote a post saying sorry... wish I could have helped.. but hell yeah.. cool!

Glad it worked!


Well everyone got a glimpse at software testing LOL


start out with bulky, faulty code.. and work your way down to something simple that works!
 
SFR said:
edit:

LOL.. well I just wrote a post saying sorry... wish I could have helped.. but hell yeah.. cool!

Glad it worked!


Well everyone got a glimpse at software testing LOL


start out with bulky, faulty code.. and work your way down to something simple that works!

LOL yer, now all I have to do is make them move (instead of back and fourth firing straight forward) but that means I have to find a file were the bots are made BUT I THINK IT"S IN A DLL thats were I dont think I can go :(
 
if you find the dll you can email it to me ... I might be able to edit it.
 
SFR said:
if you find the dll you can email it to me ... I might be able to edit it.

Thanks i'll be sure to do that :cool:

What program opens .dll's I mean of course you can open it in c++ but when I did you couldn't edit anything.....theres also :rolleyes: .....notepad
 
ZER0X said:
Thanks i'll be sure to do that :cool:

What program opens .dll's I mean of course you can open it in c++ but when I did you couldn't edit anything.....theres also :rolleyes: .....notepad

Well I have an express (beta version) of Visual Studio 5.0 and the full version of Visual Studio .Net 2003 ... I can create DLL's so I should be able to edit them as well...
 
I don't think it's in a .dll I need to find were the bots are scripted to eg (Move shoot etc)so I can edit that It's somewere within the .pk3 files (the files we went through) If I could find it I'd send it to ya to edit.......:rolleyes:

I'm hungry anyway time for a late tea :P
 
ZER0X said:
Sorry for bringing this backup but people have been sending me emails about these bots....how to code them...so I put together a little site

www.coddumbbot.tk


Why you sorry? lol

I had fun figuring it out! ... if you ever have any more code you want to change you know where to find me :D
 
addBotClients()
{
wait 5;

for(;;)
{
if(getCvarInt("scr_numbots") > 0)
break;
wait 1;
}

iNumBots = getCvarInt("scr_numbots");
for(i = 0; i < iNumBots; i++)
{
ent = addtestclient();
wait 0.5;

if(isPlayer(ent))
{
if(i & 1)
{
weapons[0] = "mp40_mp";
weapons[1] = "mp44_mp";
weapons[2] = "kar98k_mp";
weapons[3] = "kar98k_sniper_mp";
ent notify("menuresponse", game["menu_team"], "axis");
wait 0.5;
ent notify("menuresponse", game["menu_weapon_axis"], weapons[randomInt(4)]);
goprone;wait 2;+gostand
}
else
{
weapons[0] = "bar_mp";
weapons[1] = "thompson_mp";
weapons[2] = "m1garand_mp";
weapons[3] = "m1carbine_mp";
weapons[4] = "springfield_mp";
ent notify("menuresponse", game["menu_team"], "allies");
wait 0.5;
ent notify("menuresponse", game["menu_weapon_allies"], weapons[randomInt(5)]);
goprone;wait 2;+gostand
}
}
}
}

Ok there's the code, what I want is for them to change there weapon like the next weapon....

In one of the config files it has: "bind MWHEELDOWN "weapnext" perhaps you can combine that into the above code (Not including the "bind MWHEELDOWN" just "weapnext")

Well SFR you like coding...there you go :P it actually is kinda fun to learn code.
 
ZER0X said:
Ok there's the code, what I want is for them to change there weapon like the next weapon....

In one of the config files it has: "bind MWHEELDOWN "weapnext" perhaps you can combine that into the above code (Not including the "bind MWHEELDOWN" just "weapnext")


hmmm... I am not quite sure what you want done..

Here is what I think I know: right now when you create/add a BOT it randomly chooses the weopon... thats what we created... instead of randomly choosing the weopon.. do you want to CHOOSE which weopon to give the bot?
 
I need them to switch weapons while there actaully in the game.

When you play you get Grenades, a hand gun and the main gun (the gun that you choose) so say randomly it will change to the handgun, then grenades you know etc etc
 
Back
Top