Different weapons on different maps.
[code:1]
if ($mapname == "q3dm11") {
Start Weapons = 1+2+4+8+16+32+128;
}
else if ( ($mapname == "q3tourney3") || ($mapname == "q3dm18") || ($mapname == "q3dm17") ) {
Start Weapons = 1+64;
}
else {
Start Weapons = 1+64+256;
}
[/code:1]
You have to put this inside Misc and not have any line Start Weapons after this code or it will overide it.
and if still don't work as expected better use kind of lines :
[code:1]Start Weapons = WP_GAUNTLET | WP_MACHINEGUN | WP_SHOTGUN | WP_GRENADE_LAUNCHER | WP_ROCKET_LAUNCHER | WP_LIGHTNING | WP_RAILGUN | WP_PLASMAGUN | WP_BFG;
[/code:1]
Why does ppl need all ready
You will just code I have put upper in this cfg and it works.
You will need to add more things.
If it still doesn't work, you have problem with your server config, not weapon config.
Server config sets up things like max players, min bots, map rotation file name, lots of commands begining with set... yes?
Yes. server.cfg in e+ folder.
My config file is set with xp_config "myconfigfile.cfg" - it sets things like the armour, starting weapons, weapons characteristics, health etc
This is the weaponconfig and also the place to put your syntaxx for different weapons on different maps. There is no need to load it from map rotation.txt if u have it set with xp_config in server.cfg. The weapon config should be placed in e+/conf folder.
(I'm assuming u start server and exec server.cfg)
If nothing works out: Really simple Example pakage
1.04b6 + bat to start ded server (Win).
rotation of 3 maps
different weapons on all
There is something wrong with my syntax. My if statements are not workng.
//if ($mapname == "q3dm17") {Start Weapons: 1+64;}
if (map == "q3dm11") {Start Weapons: 1+2+4+8+16+32+128}
//if ( (map == "q3tourney3")|| (map == "q3dm18") || (map == "q3dm17")) {Start Weapons: 1+64;}
else if (map == "q3dm17") {Start Weapons: 64+1;}
//if (map == "q3dm17") {Start weapons: 64 +1}
else {Start Weapons: 1+64+256; }
I have tried if (map)... if ($mapname ==) with quotes, without quotes, the map title, with and without semicolons at the ends...
All that happens is I get all the weapons but the BFG and Rail whatever map I am on. When it changes the map, it doesn't change the weapons.
I am obviously doing something wrong. Any suggestions as to the correct syntax?
<Shredder>*ELITE'Z*