PeZBOT is a multiplayer bot-mod for Call of Duty 4 and World at War. The aim of the mod is to introduce relatively life-like A.I. to local multiplayer games so those who choose not to go online or prefer to practice against bots before doing so, can. This mod is no longer in development but feel free to download the source code, create your own version and share it in the forums.

Description

The source code for PeZBOT 011p (CoD4) and 005p (WaW).

Preview
PeZBOT Source Code
Post comment Comments
Guest
Guest - - 689,343 comments

Thank you for making pezbots open source :)

Reply Good karma Bad karma+6 votes
Guest
Guest - - 689,343 comments

good men!!!

Reply Good karma Bad karma+3 votes
juanfernandezferrero
juanfernandezferrero - - 1 comments

how can I Instal? Thx

Reply Good karma Bad karma+2 votes
Olku_
Olku_ - - 2,074 comments

You can't install source code, duh.

Reply Good karma Bad karma+2 votes
Guest
Guest - - 689,343 comments

does this work on mac?

Reply Good karma Bad karma+1 vote
ATB Creator
ATB - - 86 comments Reply Good karma+1 vote
dennistoruan
dennistoruan - - 5 comments

Hello i have a little problem about the bots.When i play Search and destroy,Sabotage and Team death match the bots walk's scale become quicker (it's not walking but like teleporting to move).Is this the bugs or mod limitation ?

Reply Good karma Bad karma+1 vote
ATB Creator
ATB - - 86 comments

The fix to this bug was posted a while back (page 7 I think), but here it is:

To fix the teleporting, open the svr\PeZBOT.gsc in a text editor (http://www.pnotepad.org/) and cut this (lines numbers 1804-1824):

if (getdvar("svr_pezbots_playstyle") == "2")
{
if(randomInt(3) != 0)
{
self.botCrouchObj = 500;
self.botwalkspeed = 6.0;
self.botRunDist = 600;
}
else
{
self.botCrouchObj = 1200;
self.botwalkspeed = 5.5;
self.botRunDist = 2000;
}
}
else
{
self.botCrouchObj = level.botCrouchObj;
self.botwalkspeed = level.botwalkspeed;
self.botRunDist = level.botRunDist;
}

and paste it below this line (before cut 2506, after cut 2485):

self.iShouldCrouch = randomIntRange(0,2);

That should fix it...

Reply Good karma+4 votes
alencore
alencore - - 445 comments

Nice seems working no teleporting crap so far.

Reply Good karma Bad karma+1 vote
reflash
reflash - - 1 comments

i'm really surprised how well those bots work. But unfortunatly i ran into some issues. I edited the code as stated above but i seem to be unable to compile them (i never did this before...). I tried to change the batfile but i guess i need a programm called linker.exe or sth. Would you please tell me how to do that?

Thanks in advance!

Reply Good karma Bad karma+2 votes
TheEngiGuy
TheEngiGuy - - 19 comments

I'm a total noob when it comes to modding so I don't know how to compile this and make it a mod; can someone give me the compiled Pezbot mod with this fix? Thanks

Reply Good karma Bad karma+1 vote
ATB Creator
ATB - - 86 comments

Hi,

If you're not into modifying the mod then these source files are not what you should be bothering with. Instead you should have downloaded the normal files (here: Moddb.com )and made the edit on that. The edit is in the pezbot.iwd which is basacally a .zip file so no need to compile anything, just open the zip and edit.

Anyway, since I'm here, here is the standard 011p download with the edit above added: Mega.nz

Reply Good karma+3 votes
BF2all
BF2all - - 1,144 comments

Works conveniently, tank you.
Do you also have any solution for "PeZBOT 002p for Galactic Warfare"
since TestClient() is much different?

Reply Good karma Bad karma+1 vote
i_pk_pjers_i
i_pk_pjers_i - - 4 comments

I ended up compiling a new mod.ff (managing to get it to compile on Windows 10 was a bit interesting but not too bad) before I realized that the mod.ff file doesn't need editing, just pezbot.iwd needs editing. Oops.

I went ahead and renamed your zip to PeZBOT 012p since it's the closest we'll get to 012p, added a changelog mentioning the teleporting bug fix, and mirrored it to a different website: Mediafire.com

All credits go to ATB and Lord_Gannondorf.

Reply Good karma Bad karma+1 vote
ATB Creator
ATB - - 86 comments

Hi,

I've never tried compiling on Windows 10, but I'm sure you enjoyed every head-scratching minute :D Made super sweet when you figure out you didn't need to do it in the first place, lol (been there, done that) :D

Thanks for going to the trouble of uploading it to a more user-friendly download site (not a big fan of Mega myself these days).

Have fun! :)

Reply Good karma+1 vote
Guest
Guest - - 689,343 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 689,343 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 689,343 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 689,343 comments

Hi guys ... Is there any other versions of pezbot with quicker and harder bots ?

Reply Good karma Bad karma0 votes
SlothGodJeff
SlothGodJeff - - 32 comments

Not that I know of. Giving them human behavior is impossible, due to the engine.

Reply Good karma Bad karma+1 vote
loar25
loar25 - - 5 comments

Cod2 Final Killcam

Reply Good karma Bad karma+1 vote
Guest
Guest - - 689,343 comments

This comment is currently awaiting admin approval, join now to view.

Frigilux
Frigilux - - 15 comments

Could you do CoD2 bots?

Reply Good karma Bad karma+1 vote
Gunscrusader
Gunscrusader - - 4 comments

Uhm it doesn't look like the WAW bots source code contain the main scripts. Just the animations. Can somebody please reupload the files?

Reply Good karma Bad karma+1 vote
ATB Creator
ATB - - 86 comments

Hi,

It must be about a decade ago since I last looked at that mod (2011?. The mod has LOTS of issues, mostly things that couldn't be resolved since our request for some source files from the creators of 'Galactic Warfare' went unanswered.

I'm not sure what your particular problem is, but I imagine it's something that cannot be resolved without those aforementioned source files. The mod available hooked into the GW mod as best it could, but without the original weapon files, which assign the animations, there wasn't much more we could do at the time.

Such a shame they didn't release the source...

Was it the animations you were referring to?

Reply Good karma+1 vote
R0ADKILL
R0ADKILL - - 1,174 comments

Can anyone extract Model Selector mod from the source code to be used in vanilla.
It allows your to change class character model so it doesn't depend on weapon you are carrying.

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: