COD4 | Frontlines


Hajas Spawn Protection



Frontlines come with a new and smart spawn protection to avoid the deliberate killing in the first seconds of a round, which is happening in all Call Of Duty 4 : Modern Warfare servers around the world.

Check the video that shows with details how Hajas Spawn Protection works.

Basically will protect the players for 10 (configurable) seconds ONLY against Nades (Granade Launcher inclued), Rockets and AirStrikes.

This also inclued any second wave damage caused by them like Car and Barrel explosions. So any kind of bullets, claymores, knifes, etc... will kill as the original game. Hajas Spawn Protection can be activated in ANY gametype, inclued the original ones.

There's a var in the frontlines.cfg file that you set the seconds that each player will be protected by Hajas Spawn Protection after spawn, the default is:

set hajas_spawnprotection 10

If different than 0 activates the Hajas Spawn Protection to all gametypes and maps from the server, so if you want to turn off is just set to 0.

Sometimes 10 seconds will not be enough since Airstrikes last for almost 10 seconds. If in the middle of an airstrike the Hajas Spawn Protection expires the player will die, so if this is happening just increase this value a little more as your wish.

Hajas Invert Sides

Frontlines come with a simple but great feature that will change all the default maps or any other map ever made for Call Of Duty 4 : Modern Warfare

With this var on ( 0=OFF / 1=ON ) will invert the sides between Attackers/Defenders to any Frontlines gametypes then you will simply double your map options with just one flag.

NO! This is not like original roundswitch! This will make the Attackers strike from the original defense position, when the Defenders will make their defenses in the original attack spawn. With that you change completely the gameplay and tactics in the each map, then make you play across parts of the map that you never passed before, see everything from a different perspective... then will pratically double the quantity of maps on the server.

But even if you set this off, you can also change the sides automatically with the respective gametype roundswitchspawn vars, with the same behavior of the original roundswitch.

Yes! you can use roundswitchspawn and roundswitch together in your server, just make sure to they not change at the same time, or in the end will not change anything.

The Hajas Invert Sides is inside the frontlines.cfg file as:

set hajas_invertsides 1 (1=On / 2=Off)

the roundswitchspawn are relative to their gametype, so we have 2 right now:

set scr_front_roundswitchspawn 2
set scr_commander_roundswitchspawn 2

Both came set as default to 2 rounds, this means that in each 2 rounds the sides will be changed. To turn off just set this var to 0.

In the future I'm planning to make this feature available to Search & Destroy gametype if be possible move the objectives by script.

Hajas Duel

Since the age of Medal Of Honor Spearhead people like to watch a bash fight between the last two players alive on the server, so with just a var set will remove all the weapons of the 2 last players, so they will only have a knife to kill each other, or aside the knife a pistol. This will be configurated and of course can be turned off.

Exemple: set hajas_duel 1

here your options:

0 = Off
1 = On with Knife Only
2 = On with Pistol + Knife

Then we have more 2 options to add a random adrenaline music to all players while they watch the duel, and also a field to set a duel message to be showed to all players. Both players which are fighting the duel will have a full radar of the battlefield to find each other more easily.

Gametypes with Duel enabled at Frontlines:
Battlefront, Commander and Search & Destroy.

This feature is more inclined to fun public servers only.

Hajas Weapons

With this var you can create sub-gametypes into all available gametypes, just setting specific rules to which weapons the players can use ingame.

Weapons List
Bash Mode Pistol Mode Rifle Mode Sniper Mode Cop Mode Quake Mode
Knife Only All Pistols G3
M14
M40A3
M21
Dragunov
R700
Barrett.50
W1200
M1014
RPG Only
Options List
0 = Normal Mode
1 = Bash Mode (Knife Only)
2 = Pistol Mode (Pistol + Knife)
3 = Rifle Mode (Rifle + Pistol + Knife)
4 = Sniper Mode (Sniper + Pistol + Knife)
5 = Cop Mode (Shotgun + Pistol + Knife)
6 = Quake Mode (Rocket + Knife) *
* in Quake Mode pistols are not available and have infinite ammo!

You can set if the Mode will have sidearm or not, and also add/remove night vision.

Aside all these options, you can create a list of the modes that you want on your server, and make they be choosen by luck, so you will have a random rotation of Weapons Modes at your server.

And I will give you even more, you still can use their camos of your Custom Classes, you can even import the look of your Weapon to the respective Weapon Mode, and all that is 100% automatic!

And you also can set a Weapon Mode to be the base of your server, this means will be always that Weapon Mode then SOMETIMES you gonna have at your server one of the variations that you added to the list.

For exemple : you want a server based on all weapons (0) and want to have sometimes the Rifle (3) and Cop Mode (5) in your rotation, so you must config like this:

set hajas_weapons_list "0, 3, 5"
set hajas_weapons_random 1
set hajas_weapons_default 0

To this work, the hajas_weapons_default must have a Weapon Mode which is also at hajas_weapons_list, if not will not create a based mode to the server, then all the modes will be chosen in the same probability to happen. If you want that but also all the modes, is just set hajas_weapons_default with a number of a non existing mode, like 9 for exemple.

Hajas Drop

This feature I created because also the Medal Of Honor's days, where you can get the weapon which the enemy is carrying when you kill him, I don't think is fair he have an RPG and when you kill him the weapon simply disappear without giving you anything.

But since in COD4 we have a lot more options, I did an upgrade in these rules... so now when you kill an enemy planting a Claymore she will not disappear like before, you gonna be able to get the Claymore and plant against your enemy. The same with C4. Of course you will be able to use anything the enemy was carrying when they died, even an RPG.

And yes, you can get the Granade Launcher from the floor and use it against the enemy! No more limitations.

To use all that, is just set this var to 1 like this:

set hajas_drop 1

And of course, in MOHAA days you can drop your weapon to give to your teamate, so now you can also do it in Frontlines. All that you need to do is hit and HOLE the use key for while then the selected weapon will be dropped. Yes! you can drop you Claymores or the C4 if you want to...

To use this feature, is just set this var to 1 like this:

set hajas_drop_weap 1

Hajas Anti-Camping

For years I look for an Anti-Camping system that really works and not sound stupid. Any Anti-Camping works great with basic gametypes like DM or TDM which don't have the need of much brain to work, but when you go to play something a little more complex, the Anti-Camping become an annoying problem instead of really help flow the gameplay on the servers, and in almost cases he is always turn it off.

Well, I thought a lot about how to do that without been stupid like almost all Anti-Camping systems that I know, and also to work in any gametype with a good intelligence to make this playable. And all that I can say is that I finally did what I ever wanted to exist in an Anti-Camping system, and it's here at Frontlines.

Hajas Anti-Camping First you aside turn on/off you can also set how your Anti-Camping will work, in a more relax way or very hard to force the players be in constant movement in the map. You can set the Radius of the area which the Anti-Camping will cover to force the player move out, this also is relative to vertical distance, so moving alternating from 1st and 2nd floor at a small house will still make you sound like a camper, or move and comeback to the same place, will not be easy to cheat this Anti-Camping system.

Aside that, you gonna set the delay of the tests been made, there's not a kind of timelimit to camping like almost Anti-Camping systems around, is based on the area, and not the spot... so if you set this to 10 seconds, after first 10 seconds in the same area nothing will happen, but if he still at that area after the next 10 seconds, the player will receive the 1st Warning... after more 10 the last warning... and after more 10 the player will be shot to death for treason.

All that is controlled by smart way relative to which gametype he is playing, and which side of the battlefield he is, and all that also relative to that exact moment in the game....

This means that you will be able to camp in the right moments to each specific gametype, and not allowed in all the other moments. Like for exemple in a Search & Destroy match, you can camp if you are at defender team, while the attackers can't camp anywhere... but this will be inverted if the attackers plant the bomb, so the defensors will need to rush to disarm the bomb while the attackers are now allowed to camp. And goes on to each moment to each gametype...

Aside that, you also can set the messages you want to send to the campers to move.

Hajas Random Gametypes

This is a great feature to make your map rotations almost infinite. You just set a list of gametypes that you want on your server, then will be pick up one of them to each map randomly. So you will always have different rotations in your server, probably the most long rotations ever...

Then now you can also add more maps to your rotation, since you don't need to waste space writing every gametype to each map, which is really annoying and with that limitation of chars to 1000, you will be able to add at least the double of number of the maps at your server if you use this feature.

And yes, you can override the random rotation if you want, no problem. For exemple you want to have only these 3 gametypes at your server : Search & Destroy, Battlefront and Commander. So set like this

set hajas_gametypes_list "sd, front, commander"

But you want to play Deathmatch only at the map Shipment, and no other gametype aside Deathmatch in this map. So in you maprotation you just need to do like was before, for exemple:

"map mp_crossfire gametype dm map mp_shipment map mp_strike map mp_bog..."

Then in all maps will be randomly sd, front or commander, while only at mp_shipment you will have dm gametype.

You can also set to not repeat the last gametype, so you will never have two matches followed by the same gametype. To do that simply set this var to 1. Set to 0 to turn off.

set hajas_gametypes_random_norepeat 1

Now you can also set a default gametype like in Hajas Weapons, then this gametype will have 5x times more chances to be chosen than the others. Just set the name of the gametype you want to be the default, or set "" to turn off.

set hajas_gametypes_random_default "sd"

Hajas Size Rotation

A dream to any server admin is this feature (at least for me!). Now your server will never have large maps with few players, or small maps with more players than space available, all this problems over right now with Hajas Size Rotation.

You gonna set instead of 1 map rotation, you will setup 3... one with small maps, other with really large maps, and the today's default map rotation will carry only medium size maps. Then you gonna also set the limit of the players in each rotation.

For exemple until 6 players to the small maps and with more than 20 will load the large maps, very simple but works great. Is that Cool? yeah... but I'll give you a lot more...

Now aside that, you can setup which gametypes you want to play in each Size Rotation from the small maps, the medium maps and also at the large ones. And this isn't all, you can also set the Weapon Modes to each size, which will give you 3 completely different configs to your server that will change automatically without any admin interference, respectively to the amount of players playing on that moment at your server.

No, I'm not talking about the max clients of your server, this will be always the same.

Force Auto-Assign

This is a common option which I received many requests to be on Frontlines.

With this ON you can't choose the team, you will always go o the team with less players, which is great to public servers.

Full Rank System + Custom Classes

Frontlines supports the Full Rank System with all Custom Classes options since the first version. It works exact like the original game with promotions, unlocks, challenges, etc... was 100% based in the code of the original game instead of the code of ModWarfare, which is a exemple mod which came with the game.

I never added this as a feature before on my site or readme because I thought was something common to all mods, but to my surprise Frontlines was in fact the first mod with these features released to COD4.

ModWarfare Settings + Hardpoints

In the Frontlines 2.1 I listed few vars that could be good to use sometimes to change the gameplay, but after I did that I realized that theses vars are for ModWarfare only (aside the Hardcore one), and not the original game. And since my mod was entirelly made upside the original game instead the ModWarfare like almost mods outhere, all these vars were simply ignored. Because they simply doesn't exist in the original game.

Well, I just make all of them also work with Frontlines, which was a lot harder since is a completely different structure, when in the ModWarfare you always start without any gears, so these vars simply disable the options to the players to select (aside is easy to by pass that), while in Frontlines you have your own custom classes, with everything pre-selected, to test and remove the forbidden items wasn't a easy task to make since each kind of weapon works in different ways... and all that keeping the full rank system and custom classes.

Here the list of ModWarfare vars that works with Frontlines:

set weap_allow_frag_grenade 1
set attach_allow_assault_gl 1
set perk_allow_rpg_mp 1
set perk_allow_specialty_fraggrenade 1

set scr_hardcore 1
set scr_hardpoint_allowartillery 1
set scr_hardpoint_allowuav 1
set scr_hardpoint_allowhelicopter 1

I think these are the most important and the only vars that I would like to turn off sometimes to play. But if many people request the same few others vars I could add them in the next versions. But there's no way to make all of them available in Frontlines, it's a lot of work for so small features. Don't really worth it.

Frontlines Menu

Frontlines 3.0 Menu A new menu was designed to Frontlines with new nice changes and also come with the song "Frontlines Theme" which was fully composed and produced by myself. Yes, you can Listen Online right now or Download as your wish. Or just watch the video on the left to take a full preview of the menus. The in-game menus are not showed in this video.

Load Frontlines Config from Menu

This is a nice feature that will run automatically the file frontlines.cfg which is the brain of the configuration of your server when you click on Start Frontlines Server in the menu. Then you can choose the first map, change the rules that you want and start the server with all already configured values in the frontlines.cfg

If you did some mistake, just click on the Load Frontlines Config button to reset the configuration.

With that anyone can easily start a non dedicated server very fast to play in LAN with family/friends without the need to create a full dedicated server with all the configs needed.

Message Of The Day - MOTD

Custom MOTD Now the default Message Of The Day (MOTD) from the server information var scr_motd is printed in the beginning of each round to all players. If you want to turn it off, is just set scr_motd "".

Server Spam Messages

As any server needs a spam message feature to send important information to their players, so I created an easy way to set up to 10 messages to be sent from time to time to all players connected at the same time.

To do that you need to set all the messages that you want in the vars hajas_message0 until hajas_message9 then set the var hajas_server_spam to a value different then 0 (max 90). This value will be the delay between them in seconds.

Exemple: set hajas_server_spam 10

You can set any messages you want, if you just set 3, only these 3 will be showed, doesn't matter if they are out of order like message numbers 2,4 & 7, then this will help to add/remove messages from your server config a lot more faster.

So if you have 10 messages set and then you want to remove 2 of them, don't need to rewrite everything again in the order you want, just comment the lines with the unwanted messages to be removed.

Back