Issue when adding a new vehicle

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Issue when adding a new vehicle

Post by CdtFox »

I recently replaced one of the two Republic Hover Tank in the stock mygeeto map by Majin Revan's UT-AT vehicle.

The vehicule is spawning correctly but it exploses immediately at the map's start.

I'm pretty sure it ahs something do to with the spawn delay but i'm not to confident with that kind of stuff:

Here is the part of the .lyr file i edited:
Hidden/Spoiler:
[code]
Object("com_item_vehicle_spawn21", "com_item_vehicle_spawn", 208825565)
{
ChildRotation(0.557, 0.000, 0.831, 0.000);
ChildPosition(-164.818, 0.000, 98.921);
SeqNo(208825565);
Team(0);
NetworkId(-1);
Layer(10);
ControlZone("CP2_CON");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("all_hover_combatspeeder");
ClassCISATK("");
ClassImpATK("");
ClassRepATK("rep_hover_utat");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("cis_hover_aat");
ClassImpDEF("imp_hover_fightertank");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");
}

Object("com_item_vehicle_spawn20", "com_item_vehicle_spawn", 650464873)
{
ChildRotation(-0.078, 0.000, -0.997, 0.000);
ChildPosition(-148.045, 0.000, 111.476);
SeqNo(650464873);
Team(0);
NetworkId(-1);
Layer(10);
ControlZone("CP2_CON");
SpawnCount("1");
SpawnTime("45.0");
ExpireTimeEnemy("20.0");
ExpireTimeField("40.0");
DecayTime("10.0");
ClassNeutral("");
ClassAllATK("all_hover_combatspeeder");
ClassCISATK("");
ClassImpATK("");
ClassRepATK("rep_hover_utat");
ClassLocATK("");
ClassHisATK("");
ClassAllDEF("");
ClassCISDEF("cis_hover_aat");
ClassImpDEF("imp_hover_fightertank");
ClassRepDEF("");
ClassLocDEF("");
ClassHisDEF("");
ClassLocals("");[/code]
Thanks for the help guys :D
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Issue when adding a new vehicle

Post by Marth8880 »

How big is the UT-AT? There's a chance it could be getting stuck between a bunch of vehicle collision volumes, causing it to be rapidly damaged. If the vehicle is large, you should try moving the vehicle spawn object somewhere else.
CdtFox
2nd Lieutenant
2nd Lieutenant
Posts: 379
Joined: Wed Feb 17, 2016 8:51 am
Projects :: BUC and Designated Days
Games I'm Playing :: SWBF2+EAW+Subnautica
xbox live or psn: No gamertag set
Location: France
Contact:

Re: Issue when adding a new vehicle

Post by CdtFox »

Yeah that's the problem, i first thought that it was the number of "commandhover" added in my lua, but actually the model is pretty big. Unfortuantely ZE isn't working at all, even with the fix here.

Will find a way to get it working!
User avatar
CT108
Rebel Sergeant
Rebel Sergeant
Posts: 186
Joined: Mon Aug 22, 2016 6:20 am
Projects :: None
Games I'm Playing :: CS2
xbox live or psn: Captain CT108
Location: Xanadu

Re: Issue when adding a new vehicle

Post by CT108 »

CdtFox wrote:. Unfortuantely ZE isn't working at all, even with the fix here.

Will find a way to get it working!
I can do this if you want
Post Reply