Welcome to Hajas M0D1F1C4T10N5.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features.

By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features.

Registration is fast, simple, and absolutely free, so please, join our community today!

Status : Bots to Frontlines

Call of Duty 4 : Modern Warfare Realism & Gameplay Mod

Status : Bots to Frontlines

Postby Hajas » Fri Nov 04, 2016 1:23 pm

The #1 request in the last 5 years is to add Bots to Frontlines, and seams we will FINALLY have not only Bots, but the BEST Bots to COD4 to date, will be almost so good like the ones I did to Black Frontlines (Black Ops).

Well, but why it's soo difficult to add Bots to Frontlines when several mods added PEZBots into them ages ago? Even other Frontlines versions have Bots like [email protected] Frontlines, Star Wars Frontlines and Black Frontlines, so why not to COD4?

First something you need to know is that ALL of these other mods with PEZBots around have SEVERAL limitations, like very few maps compatible, few mods have more others less, but all of them have even few of the original maps unplayable.

The most compatible mod is the last original version of PEZBot, but even this version which is the only one which support all original maps have few annoying limitations like only be able to play 2-4 maps in a row and specially the amount of waypoints loaded to be able to play with Bots. Without a waypoint to a map, this map is unplayable.

Ok, your rotation is short and you don't play many maps so you will never notice that, that's why the other versions of Frontlines have Bots, they have limited maps and gameplay, like any of the mods that you used to play with PEZBots until now.

The main problem is that Frontlines is HUGE, soooo big and vast that if you sum ALL mods available to COD4 into one, they will still be even 10% of Frontlines is.

So the magic question is how to add Bots to Frontlines without limit the vast options of the mod? Or at least limit as minimum as possible without really hurt the gameplay?

But now you are wondering what the hell Frontlines have that make this so difficult?

Here few of them:

. War Server, without be able to change many maps without crash like the other mods, then is not possible to play a War with Bots since after 4 maps the server is gone.

. In Frontlines we have 50 gametypes, and summing all the variations like Airborne Mode, Help-Mode, Weapons Modes, etc... and with everything Random, this easily pass than 480.000 combinations. Of course I would not need to code to every of them but to around 200.000, which still a lot.... To get worst the gametypes are a lot more complex and request a lot more intelligence to play which will require alot more code to many of them. PEZBots are coded relative to gametypes, and is not viable to work like that with these numbers. When only very few mods around have more than 10 gametypes you can have a better idea of the size difference.

. Frontlines have several Officers and VIPs in their gametypes with different and special behavior, so Bots must be coded to each one of them, to let them think and decided what to do, what not to do and when, not only the movement.

. Frontlines is based in huge numbers of variations with more than 200 maps in rotations. Depending of the size of your mod, is not possible to load even 50 maps waypoints, in Frontlines this number is even shorter with not more of 20 maps loaded.

. Xmodels limit of 1000 is a pain in the *** in COD4 moding, this is the main cause that many maps doesn't work with several mods which have lots of new Xmodels like Weapons for exemple, and that's why Frontlines doesn't have lots of new weapons to be able to play in almost every map around and not limited to just a few. All the Bots animations are inside Weapons Xmodels that need to be loaded into your mod to have the right animations, so with them several maps will simply stop to work.

. Code Limits are something that I don't believe any mod ever get closer to them, so it's unkown to most of the modders, but in Frontlines it's a real issue since the R3L04D days because the huge amount of code to create this very huge mod. For exemple the limit of 30 gametypes, which is in fact 29, because if we put 30 the last one all the dvars and strings will not work anymore. So to cross all those code limits Frontlines was almost re-written with a very big structure change, to make available room to code like reach 50 gametypes.

. Size Limits it's another weird thing, seams it's allocated just 4mb of memory to put a mod in the game, which of course is enough to all the small mods around, but not to Frontlines. Inside this allocated memory probably have something pre-allocated space to some core to make the mod live, so we have in fact less than 4mb available. So each line of code written in Frontlines in the last 5 years, a line of code with at least the same size must be out, or the game will crash.

. Aside all these, still have the other limits like Materials (images), Dvars, Localized Strings, etc, etc, etc...

Soooooo, now you have a idea why it's so difficult add anything to Frontlines since R3L04D, and specially bots.

Well, after all that exposed how the hell I'm still bringing new stuff to Frontlines and now bots?

Let me explain you in parts...

. Code & Size Limits : There's no solution, I need to open space to every new thing added, doing that without remove any feature from Frontlines it's a hell, but at least in the original code have few functions and code parts that can be deleted or re-written in better ways, even old Frontlines code was re-written, so with that I'm getting new free space to work.

. WayPoints : Since there's no way to avoid the Code/Size limits, I was forced to create a new way to store the WayPoints, Load the WayPoints and of course, convert your original WayPoints to the Frontlines version or we will need to create new waypoints to every map around, which will be alone a huge project. Using a recursive system there's a minimum size of code to control the WPs, and they will not be of course stored inside the mod code, so the Code/Size Limits will not be affected.

. AI x Gametypes x Maps x VIPs : The original PEZBot AI is not viable because is based on gametypes, so I'm writing a new one based more in the intelligence of the bot as a real player, like I did to Black Frontlines, so they will think with the options available to them at a respective moment, and not to a gametype, with that the size of code will be a lot smaller, and will work to any gametype available, so not need to code over 200.000 of gametypes options.

. War Server : I discover a good way to REALLY remove bots before change the map, so they will not crash after few maps loaded. It's already working but sometimes I'm getting crashes, I'm working of it to try to solve it, and I'm also working to find a even better way to do that, which I know I'm very close. In the last alternative, I can use the shutdown system per map that I used in [email protected] Frontlines, so save the War after each map, and load them back in the next one with the server already online, so still possible to play a War with bots, so why not a full campaign?

. Xmodel Limits : This is another thing that is not possible to avoid because it's a engine limit sadly, so there's 2 options, remove the bot anims then will look like floating around until they start the combat, exactly like I did at Star Wars Frontlines, or add the anims anyway and several maps will not work anymore.

Since both ways will please part of Frontlines fans, I'll simply release both of them. The first to be released in the Multiplayer version like I always did since 2008, and this version will have bots to play with your friends oline when have short numbers of players, will not be the best looking bots because the lack of animations but they will work better than any bot released before to COD4. Then I'll release a Frontlines COOP version, which will be the SAME MP version but with the bots animations and because that, several maps will not work anymore. So the COOP version will be more used to play alone or with just few friends. And of course, the COOP Missions promised back in 2011 when R3L04D was released, which were released only at Black Frontlines will be available for the first time to COD4, and will be around 50 Missions available to be able to play in any map compatible for the respective version. YES! COOP Missions will be available to BOTH versions.

Now you ask when all this will be released? I really hope that before Christmas. :wink:

Hope everyone like to play Frontlines Forever like I do! :mrgreen:www.mods.hajas.org
User avatar
Site Admin
Posts: 641
Joined: Mon Apr 07, 2008 3:43 pm
Location: Rio de Janeiro, Brasil

Re: Status : Bots to Frontlines

Postby Hajas » Fri Dec 09, 2016 8:45 am

Here the current status of development:

Frontlines Bots DONE:

. Convertion of ANY original PEZBot WayPoints to Frontlines WayPoints
. Automatic number of Bots
. Combat Mode
. Squad Mode
. Coop Mode

Frontlines Bots can already:

. Follow paths
. Combat
. Search and Capture Flags
. Search and Capture HQs
. Search and Pickup Suitcases
. Search and Pickup Documents
. Search and Go to Extraction Points
. Plant and Disarm Bombs (1-4 targets)
. Play all Weapons Modes incluiding Cyborg Mode
. Play as a Paratrooper at any Airborne Mode
. Fire with RPGs (also against Choppers)
. Fire with Frags
. Fire with Grenade Launcher
. Fixed original bug to fall below map/areas
. Play as Chopper's Gunner
. Able to patrol the map instead of goes direct to enemie's positions
. Fire Stun Grenades
. Fire Smoke Grenades
. Special Behaviors as Officers relative to Gametype

Working on...

. Better AI to avoid every bot do the same over and over
. Fixing several errors/bugs from original PezBOT
(fall under the map/get stuck/etc)


. Search and Pickup fallen Flags
. Search and Return Objects (as CTF for exemple)
. Search and Use Terminals
. Better and Complete Paths (Waypoints)
. Map's Spots for use as defense positions
. Map's Limits (x+,x-,y+,y-,z) to avoid bots outside playable area (common with Airborne)
. Option to generate Paths/Waypoints automatically
. Anims Version
. Coop Missions (Tweaks to make MP act as a SP Missions)
. COD4X Version
. Call of Duty Rio

Gametypes Status

K Ready to Play
W Working on it
X Not working yet


Deathmatch (free for all) K
Team Deathmatch (TDM) K
Domination K
Headquarters K
Sabotage K
Search & Destroy K


Airborne X
AirFight K
Assassin X
Assault K
Battlefront K
Capture The Flag X
Chopper K
Commander K
Countdown X
Demolition K
Docs X
Escape X
Escort X
Evac X
Exterminate K
Flags K
Hack X
Hill K
Invasion X
Nuke X
Mission K
Objective K
Officers K
Overcome K
Pilot X
Reinforcements K
Rescue X
Resist K
Savage X
Snipers K
Strike K
Support W
Surrender K
Survivors X
Swarm X
Spy X
Tags W
Targets K
Unity K
Uprising X
Virus X
Waves K
Wrath X
Hajas Mods | www.mods.hajas.org
User avatar
Site Admin
Posts: 641
Joined: Mon Apr 07, 2008 3:43 pm
Location: Rio de Janeiro, Brasil

Re: Status : Bots to Frontlines

Postby Hajas » Tue Jan 24, 2017 8:07 am

Full test... Enjoy!

Hajas Mods | www.mods.hajas.org
User avatar
Site Admin
Posts: 641
Joined: Mon Apr 07, 2008 3:43 pm
Location: Rio de Janeiro, Brasil

Re: Status : Bots to Frontlines

Postby Hajas » Wed Feb 01, 2017 10:31 am

COOP Test #1 was a HUGE success! :D

Hajas Mods | www.mods.hajas.org
User avatar
Site Admin
Posts: 641
Joined: Mon Apr 07, 2008 3:43 pm
Location: Rio de Janeiro, Brasil

Re: Status : Bots to Frontlines

Postby Hajas » Tue Mar 14, 2017 11:55 pm

Mission is working GREAT! MP and COOP! Here a fantastic coop match! :D

Hajas Mods | www.mods.hajas.org
User avatar
Site Admin
Posts: 641
Joined: Mon Apr 07, 2008 3:43 pm
Location: Rio de Janeiro, Brasil

Return to COD4 Frontlines

Who is online

Users browsing this forum: No registered users and 0 guests