Page 1 of 1

How to set first spawn vehicle? [solved]

Posted: Sun Mar 23, 2014 7:31 am
by Anakin
Hi,

My problem is that the first vehicles, that spawn are allways from the republic. Although the cp is controlled by the CIS at first.
So, the vehicles at the cis controlled CPs are destroyed directly and after a while the right vehicles spawn. How can i let the right vehicles spawn directly at the beginning??
(The last one is independent from any cps. ther should always spawn the snowspeeder)

here is my lyr file.
Hidden/Spoiler:
[code]
Version(3);
SaveType(0);

Camera("camera")
{
Rotation(0.898, 0.441, -0.010, 0.005);
Position(-522.571, 15.096, 81.665);
FieldOfView(55.400);
NearPlane(1.000);
FarPlane(5000.000);
ZoomFactor(1.000);
Bookmark(-252.996, 639.127, 3.342, 0.707, 0.707, 0.006, -0.006);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
}
LightName("hoth_CPs.LGT");
ControllerManager("StandardCtrlMgr");

WorldExtents()
{
Min(0.000000, 0.000000, 0.000000);
Max(0.000000, 0.000000, 0.000000);
}

NextSequence(-16362439);



Object("VehicleSpawn_11", "com_item_vehicle_spawn", 949314973)
{
ChildRotation(-0.222, 0.000, -0.975, 0.000);
ChildPosition(-527.000, 0.000, 82.000);
SeqNo(949314973);
Team(2);
NetworkId(-1);
Label("VehicleSpawn_11");
Layer(9);
ControlZone("CP5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("veh_cis_speeder");
ClassAllDEF("");
ClassCISDEF("");
ClassRepDEF("veh_rep_speeder");
ClassImpDEF("");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("veh_rep_speeder");
ClassLocals("");
}

Object("VehicleSpawn_12", "com_item_vehicle_spawn", 2061322789)
{
ChildRotation(-0.003, 0.000, -1.000, 0.000);
ChildPosition(-521.005, 0.000, 96.752);
SeqNo(2061322789);
Team(2);
NetworkId(-1);
Label("VehicleSpawn_12");
Layer(9);
ControlZone("CP5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("veh_cis_speeder");
ClassAllDEF("");
ClassCISDEF("");
ClassRepDEF("veh_rep_speeder");
ClassImpDEF("");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("veh_rep_speeder");
ClassLocals("");
}

Object("VehicleSpawn_13", "com_item_vehicle_spawn", -2047787454)
{
ChildRotation(0.173, 0.000, -0.985, 0.000);
ChildPosition(-504.712, 0.000, 81.788);
SeqNo(-2047787454);
Team(2);
NetworkId(-1);
Label("VehicleSpawn_13");
Layer(9);
ControlZone("CP5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("veh_cis_speeder");
ClassAllDEF("");
ClassCISDEF("");
ClassRepDEF("veh_rep_speeder");
ClassImpDEF("");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("veh_rep_speeder");
ClassLocals("");
}

Object("VehicleSpawn_14", "com_item_vehicle_spawn", 308719282)
{
ChildRotation(-0.014, 0.000, -1.000, 0.000);
ChildPosition(-511.022, 0.000, 96.629);
SeqNo(308719282);
Team(2);
NetworkId(-1);
Label("VehicleSpawn_14");
Layer(9);
ControlZone("CP5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("veh_cis_speeder");
ClassAllDEF("");
ClassCISDEF("");
ClassRepDEF("veh_rep_speeder");
ClassImpDEF("");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("veh_rep_speeder");
ClassLocals("");
}


Object("VehicleSpawn_15", "com_item_vehicle_spawn", -1662074840)
{
ChildRotation(-0.397, 0.000, -0.918, 0.000);
ChildPosition(-532.800, -0.373, 51.455);
SeqNo(-1662074840);
Team(2);
NetworkId(-1);
Label("VehicleSpawn_15");
Layer(9);
ControlZone("cp5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("veh_cis_speeder");
ClassAllDEF("");
ClassCISDEF("");
ClassImpDEF("");
ClassRepDEF("veh_rep_speeder");
ClassLocDEF("");
ClassHisDEF("veh_rep_speeder");
ClassLocals("");
}


Object("VehicleSpawn_6", "com_item_vehicle_spawn", 1020979682)
{
ChildRotation(0.924, 0.000, 0.382, 0.000);
ChildPosition(-200.751, -7.044, -148.544);
SeqNo(1020979682);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_6");
Layer(9);
ControlZone("CP3");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("veh_cis_speeder");
ClassAllDEF("");
ClassCISDEF("");
ClassImpDEF("");
ClassRepDEF("veh_rep_speeder");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}


Object("VehicleSpawn_8", "com_item_vehicle_spawn", -1413632325)
{
ChildRotation(0.384, 0.000, -0.923, 0.000);
ChildPosition(32.566, -1.727, -27.437);
SeqNo(-1413632325);
Team(1);
NetworkId(-1);
Label("VehicleSpawn_8");
Layer(9);
ControlZone("CP6");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("veh_cis_speeder");
ClassAllDEF("");
ClassCISDEF("");
ClassImpDEF("");
ClassRepDEF("veh_rep_speeder");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}


Object("VehicleSpawn_9", "com_item_vehicle_spawn", -347050994)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-436.000, -18.000, -172.798);
SeqNo(-347050994);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_9");
Layer(9);
ControlZone("shield");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassImpDEF("");
ClassRepDEF("veh_rep_speeder");
ClassLocDEF("");
ClassHisDEF("veh_rep_speeder");
ClassLocals("");
}


Object("SecreatSpawn_1", "com_item_vehicle_spawn", -1794189346)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-373.000, -0.069, 241.000);
SeqNo(-1794189346);
Team(0);
NetworkId(-1);
Layer(9);
ControlZone("");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("veh_com_snowspeeder");
ClassAllATK("veh_com_snowspeeder");
ClassCISATK("veh_com_snowspeeder");
ClassImpATK("veh_com_snowspeeder");
ClassRepATK("veh_com_snowspeeder");
ClassLocATK("veh_com_snowspeeder");
ClassHisATK("veh_com_snowspeeder");
ClassAllDEF("veh_com_snowspeeder");
ClassCISDEF("veh_com_snowspeeder");
ClassImpDEF("veh_com_snowspeeder");
ClassRepDEF("veh_com_snowspeeder");
ClassLocDEF("veh_com_snowspeeder");
ClassHisDEF("veh_com_snowspeeder");
ClassLocals("veh_com_snowspeeder");
}


[/code]

Re: How to set first spawn vehicle?

Posted: Sun Mar 23, 2014 8:43 am
by AQT
I'm not sure why you are using ClassHisATT and ClassHisDEF and ?? at all, but this should be pretty straightforward: If the CIS is the defending team, and given the associated CP is controlled by the CIS, whatever vehicle you assign to ClassCISDEF is what will spawn. And if the CIS is the attacking team, and given the associated CP is controlled by the CIS, whatever vehicle you assign to ClassCISATT is what will spawn. The same idea applies to the Republic.

Re: How to set first spawn vehicle?

Posted: Thu Apr 03, 2014 7:22 am
by Anakin
I changed it. the lyr now looks like this:
Hidden/Spoiler:
[code]
Version(3);
SaveType(0);

Camera("camera")
{
Rotation(0.898, 0.441, -0.010, 0.005);
Position(-522.571, 15.096, 81.665);
FieldOfView(55.400);
NearPlane(1.000);
FarPlane(5000.000);
ZoomFactor(1.000);
Bookmark(-252.996, 639.127, 3.342, 0.707, 0.707, 0.006, -0.006);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
}
LightName("hoth_CPs.LGT");
ControllerManager("StandardCtrlMgr");

WorldExtents()
{
Min(0.000000, 0.000000, 0.000000);
Max(0.000000, 0.000000, 0.000000);
}

NextSequence(-16362439);



Object("VehicleSpawn_11", "com_item_vehicle_spawn", 949314973)
{
ChildRotation(-0.222, 0.000, -0.975, 0.000);
ChildPosition(-527.000, 0.000, 82.000);
SeqNo(949314973);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_11");
Layer(9);
ControlZone("CP5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassRepDEF("veh_rep_speeder");
ClassImpDEF("");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}

Object("VehicleSpawn_12", "com_item_vehicle_spawn", 2061322789)
{
ChildRotation(-0.003, 0.000, -1.000, 0.000);
ChildPosition(-521.005, 0.000, 96.752);
SeqNo(2061322789);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_12");
Layer(9);
ControlZone("CP5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassRepDEF("veh_rep_speeder");
ClassImpDEF("");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}

Object("VehicleSpawn_13", "com_item_vehicle_spawn", -2047787454)
{
ChildRotation(0.173, 0.000, -0.985, 0.000);
ChildPosition(-504.712, 0.000, 81.788);
SeqNo(-2047787454);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_13");
Layer(9);
ControlZone("CP5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassRepDEF("veh_rep_speeder");
ClassImpDEF("");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}

Object("VehicleSpawn_14", "com_item_vehicle_spawn", 308719282)
{
ChildRotation(-0.014, 0.000, -1.000, 0.000);
ChildPosition(-511.022, 0.000, 96.629);
SeqNo(308719282);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_14");
Layer(9);
ControlZone("CP5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassRepDEF("veh_rep_speeder");
ClassImpDEF("");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}


Object("VehicleSpawn_15", "com_item_vehicle_spawn", -1662074840)
{
ChildRotation(-0.397, 0.000, -0.918, 0.000);
ChildPosition(-532.800, -0.373, 51.455);
SeqNo(-1662074840);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_15");
Layer(9);
ControlZone("cp5");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassImpDEF("");
ClassRepDEF("veh_rep_speeder");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}


Object("VehicleSpawn_6", "com_item_vehicle_spawn", 1020979682)
{
ChildRotation(0.924, 0.000, 0.382, 0.000);
ChildPosition(-200.751, -7.044, -148.544);
SeqNo(1020979682);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_6");
Layer(9);
ControlZone("CP3");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassImpDEF("");
ClassRepDEF("veh_rep_speeder");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}


Object("VehicleSpawn_8", "com_item_vehicle_spawn", -1413632325)
{
ChildRotation(0.384, 0.000, -0.923, 0.000);
ChildPosition(32.566, -1.727, -27.437);
SeqNo(-1413632325);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_8");
Layer(9);
ControlZone("CP6");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("veh_cis_speeder");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassImpDEF("");
ClassRepDEF("veh_rep_speeder");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}


Object("VehicleSpawn_9", "com_item_vehicle_spawn", -347050994)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-436.000, -18.000, -172.798);
SeqNo(-347050994);
Team(0);
NetworkId(-1);
Label("VehicleSpawn_9");
Layer(9);
ControlZone("shield");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("");
ClassCISATK("");
ClassImpATK("");
ClassRepATK("");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("");
ClassImpDEF("");
ClassRepDEF("veh_rep_speeder");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}


Object("SecreatSpawn_1", "com_item_vehicle_spawn", -1794189346)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-373.000, -0.069, 241.000);
SeqNo(-1794189346);
Team(0);
NetworkId(-1);
Layer(9);
ControlZone("");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("veh_com_snowspeeder");
ClassAllATK("veh_com_snowspeeder");
ClassCISATK("veh_com_snowspeeder");
ClassImpATK("veh_com_snowspeeder");
ClassRepATK("veh_com_snowspeeder");
ClassLocATK("veh_com_snowspeeder");
ClassHisATK("veh_com_snowspeeder");
ClassAllDEF("veh_com_snowspeeder");
ClassCISDEF("veh_com_snowspeeder");
ClassImpDEF("veh_com_snowspeeder");
ClassRepDEF("veh_com_snowspeeder");
ClassLocDEF("veh_com_snowspeeder");
ClassHisDEF("veh_com_snowspeeder");
ClassLocals("veh_com_snowspeeder");
}
[/code]
But it still does not work.

Please help me. You need to know how it works. There are so many maps/mods with different vehicles for different sides. And i never saw this problem

Re: How to set first spawn vehicle?

Posted: Thu Apr 03, 2014 1:16 pm
by AceMastermind
Vehicle spawns are clearly explained in the Getting-Started.doc, please read it again. REP (team 1) is ATTack and CIS (team 2) is DEFend by default, unless you changed it. You only need to use the 'ClassNeutral' field entry for the Snow Speeder to spawn like you want. Also, no one can tell from looking at your posted layer file contents which CP is owned by which team at the start, you'll need to double check these things since we don't know what you've done.

Re: How to set first spawn vehicle?

Posted: Thu Apr 03, 2014 2:04 pm
by Anakin
Yes i looked in the default hoth cp layer. All cps go to team 2 (rep) at the beginning. But ingame the cp 6 and 8 are for the cis. So where can this be changed, if in the lyr all cps go to rep??


==EDIT==

I solved it.

I need to change the cp properties before loading the custom lyr and after loading the stock lyr in the lua. So it now looks like this:

Code: Select all

    ReadDataFile("HOT\\hot1.lvl", "hoth_conquest")
	SetProperty("CP3", "Team", "1")	
	SetProperty("CP6", "Team", "1")	
	ReadDataFile("dc:RCM\\RCM.lvl", "hoth_veh")