Page 1 of 1

Problem chosing team in map.

Posted: October 16th, 2007, 10:34 pm
by <LT>YosemiteSam[NL]
When I start my map (test or on server) you can only choose auto assign instead of the team you want to join.
Plus when I want to change the team (from british to german for instance) I first have to go spectate and then I can change the team.

Anybody ever seen this problem ? It probably has to do with my script file.

Here is part of it;

Code: Select all

main()
{

maps\mp\_load::main();

thread spin();
thread spin2();
thread spin3();
thread spin4();
thread spin5();
thread spin6();
thread spin7();
thread spin8();
thread spin9();
thread spin10();
thread watertower();
thread caralarm1();
thread caralarm2();
thread caralarm3();
thread caralarm4();
thread caralarm5();
thread caralarm6();
thread caralarm7();
thread caralarm8();
level thread precacheFX();
level thread spawnWorldFX();

ambientPlay("ambient_mp_FEI");

game["allies"] = "british";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["british_soldiertype"] = "airborne";
game["german_soldiertype"] = "fallschirmjagergrey";

WeaponRespawner("weapons", 50);

} 
precacheFX()
{
	level._effect["thin_black_smoke_M_duhoc"] 	= loadfx ("fx/smoke/thin_black_smoke_M.efx");         																																																																																
	level._effect["building_fire_med"] 	= loadfx ("fx/fire/building_fire_med.efx");

}

spawnWorldFX()
{

	maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (-832, 192, -140), 2);
	maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (157, -1704, -59), 2);
	maps\mp\_fx::loopfx("building_fire_med", (157, -1704, -59), 1);
	maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (24, -1168, -72), 2);
	maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (384, -1344, -88), 2);
	maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (608, -1088, -40), 2);
	maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (536, -1792, -48), 2);
	maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (912, -1952, -16), 2);
	maps\mp\_fx::loopfx("thin_black_smoke_M_duhoc", (1176, -1800, -40), 2);

}

Posted: October 17th, 2007, 8:38 pm
by All-Killer
Dont see the problem. You place a global intermission in your map? thats the only thing i can think off.

Posted: October 17th, 2007, 9:40 pm
by Pedsdude
Possibly a mod?

Posted: October 18th, 2007, 8:50 am
by <LT>YosemiteSam[NL]
I removed every mod and recompiled but is still isn't working properly.
Maybe the spawnpoints aren't set correctly ?

Posted: October 18th, 2007, 1:45 pm
by All-Killer
Uuhm, that isnt the point i guess but you could give it a shot

Just place a global_intermission somwhere, a sd_attack and a sd_defense spawn, 2 dm spawns, and 2 tdm spawns. Just need to work otherwise im out of idea's

Posted: October 18th, 2007, 3:57 pm
by Drofder2004
Try changing you Main()

Code: Select all

main()
{

maps\mp\_load::main();
ambientPlay("ambient_mp_FEI");

game["allies"] = "british";
game["axis"] = "german";
game["attackers"] = "allies";
game["defenders"] = "axis";
game["british_soldiertype"] = "airborne";
game["german_soldiertype"] = "fallschirmjagergrey";

thread spin();
thread spin2();
thread spin3();
thread spin4();
thread spin5();
thread spin6();
thread spin7();
thread spin8();
thread spin9();
thread spin10();
thread watertower();
thread caralarm1();
thread caralarm2();
thread caralarm3();
thread caralarm4();
thread caralarm5();
thread caralarm6();
thread caralarm7();
thread caralarm8();
level thread precacheFX();
level thread spawnWorldFX();

WeaponRespawner("weapons", 50);

} 

Posted: October 18th, 2007, 6:12 pm
by <LT>YosemiteSam[NL]
I tried both your suggestions and it works now. Did em both at the same time so I don't know which was the one :D

I only added a global intermission not more spawnpoints.
And changed my gsc like drof said.

Thx guys !