PatmanSan Unlimited
eXtreme+ Modification for Call Of Duty 2 => eXtreme+ COD2 Suggestions => Topic started by: ViZo on May 25, 2010, 02:11:18 pm
-
On my server i use weapon class 0 (all weapons) and weapon class 6 (bolt action only) and weapon class 9 (bolt-sniper only) to depend on map and/or gametype.
Player use endgame vote to select map and gametype.
In _ex_votemap.gsc i use Toujane map 2x
level.ex_maps[level.ex_maps.size] = spawnstruct();
level.ex_maps[level.ex_maps.size-1].mapname = "mp_toujane";
level.ex_maps[level.ex_maps.size-1].longname = "Toujane, Tunisia";
level.ex_maps[level.ex_maps.size-1].loclname = &"Toujane ^1Only Rifle (tdm)^7";
level.ex_maps[level.ex_maps.size-1].gametype = "tdm";
level.ex_maps[level.ex_maps.size-1].playsize = "all";
and
level.ex_maps[level.ex_maps.size] = spawnstruct();
level.ex_maps[level.ex_maps.size-1].mapname = "mp_toujane";
level.ex_maps[level.ex_maps.size-1].longname = "Toujane, Tunisia";
level.ex_maps[level.ex_maps.size-1].loclname = &"Toujane (dm,ctf,hq,sd,lts)";
level.ex_maps[level.ex_maps.size-1].gametype = "dm ctf hq sd lts";
level.ex_maps[level.ex_maps.size-1].playsize = "all";
If player vote to Toujane+TDM then server load Toujane+TDM+ONLY Rifle because i set this in the weaponcontrol.cfg
(set ex_wepo_class_tdm_mp_toujane "6")
If player vote to Toujane+DM or HQ or CTF or SDÍ or LTS then server load Toujane+DM+all weapons.
But this way not possible set other map+gametype+weapon class combination.
My idea to add one more possibility to endgame vote section: weapon class vote
This controlled by _ex_votemap.gsc for example:
level.ex_maps[level.ex_maps.size] = spawnstruct();
level.ex_maps[level.ex_maps.size-1].mapname = "mp_toujane";
level.ex_maps[level.ex_maps.size-1].longname = "Toujane, Tunisia";
level.ex_maps[level.ex_maps.size-1].loclname = &"Toujane (dm,ctf,hq,sd,lts)";
level.ex_maps[level.ex_maps.size-1].gametype = "dm ctf hq sd lts";
level.ex_maps[level.ex_maps.size-1].playsize = "all";
level.ex_maps[level.ex_maps.size-1].weaponclass = "6"; :!:
weaponclass: 0: all weapon ........... 6: bolt action only etc...
-
If I understand correctly, you want to force a weapon class for a specific map. Like weapon class 6 for Toujane, no matter what game type they vote for, right?
Why don't you remove the game type variable extension:
set ex_wepo_class_mp_toujane "6"
-
No, you dont understand what i want. (Sorry for my english. :oops: )
I want possibility for players to vote weaponclass on all map in the Endgame Vote menu.
(Next mod version of course if possible).
So Endgame map vote sequence:
1. Players vote map (example: Toujane OR Burgundy OR Carentan )
2. Players vote gametype (example: DM OR TDM OR SD)
3. Players vote weaponclass if I enabled this. (Example:0 2 6 -> 0: all weapons OR 2: snipers only OR: 6: bolt action only)
This function controlled by _ex_votemap.gsc (if solvable) like gametype:
For example:
level.ex_maps[level.ex_maps.size] = spawnstruct();
level.ex_maps[level.ex_maps.size-1].mapname = "mp_toujane";
level.ex_maps[level.ex_maps.size-1].longname = "Toujane, Tunisia";
level.ex_maps[level.ex_maps.size-1].loclname = &"Toujane (dm,ctf,hq,sd,lts)";
level.ex_maps[level.ex_maps.size-1].gametype = "dm ctf hq sd lts";
level.ex_maps[level.ex_maps.size-1].playsize = "all";
+
level.ex_maps[level.ex_maps.size-1].weaponclass = "0 2 6";
weaponclass: 0: all weapon 1: pistols only 2: snipers only........... 6: bolt action only etc...
If i add more weaponclass number -> enable voting onto specific weaponclass
If i add one weaponclass number -> disable voting, map started with defined weaponclass.