Modding the autoturret

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
User avatar
Delta-1035
Sith Master
Sith Master
Posts: 2651
Joined: Mon Aug 04, 2008 10:32 am
Projects :: TOR GCWII GCW1035 BF1035
xbox live or psn: Johnny_Sciroppo
Location: Pizza Land

Modding the autoturret

Post by Delta-1035 »

Hey,

so I tried to replace the autoturret model with the probe droid found in the stock assets, but when I deploy it, it falls of the map (through the ground).

Any ideas?
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Modding the autoturret

Post by thelegend »

I think this is because the Terrain Collision (Or building collision). It might be missing in the .odf like TerrainCollision = "none" or "clear". The terrain collision of the .msh file might also be missing and would need to be added manually.
User avatar
Delta-1035
Sith Master
Sith Master
Posts: 2651
Joined: Mon Aug 04, 2008 10:32 am
Projects :: TOR GCWII GCW1035 BF1035
xbox live or psn: Johnny_Sciroppo
Location: Pizza Land

Re: Modding the autoturret

Post by Delta-1035 »

I'm doing this on a stock map, actually. So it should not be the map's problem, I think.

Edit: my bad, I'm testing it on bespin platforms and cloud city by marvel4. Not really stock maps, but close enough hehe. Anyway the stock autoturret works fine, but if I change the geometry it falls.
Last edited by Delta-1035 on Sat Apr 23, 2016 3:02 pm, edited 2 times in total.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Modding the autoturret

Post by thelegend »

So...I still think your .msh file has missing terrain and/or building collisions. They must be primive cubes or spheres. If they are missing any ordnances, deployable turrets or droid, vehicles and units would/will fall through the ground. You can also kill the gravity settings somehow to prevent ANYTHING from FALLING. But I guess that's not what you want.
User avatar
Delta-1035
Sith Master
Sith Master
Posts: 2651
Joined: Mon Aug 04, 2008 10:32 am
Projects :: TOR GCWII GCW1035 BF1035
xbox live or psn: Johnny_Sciroppo
Location: Pizza Land

Re: Modding the autoturret

Post by Delta-1035 »

Uhm.... so, what should I do exactly?
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Modding the autoturret

Post by thelegend »

:| Some certain collisions *seem* to miss. :wink: I personally would add them. I see two ways. If there is a line like this in your .odf: TerrainCollision = "none", remove it then.

If it doesn't exist you would need to import the probe droid .msh and add Terrain and Building collisions. Add a primitve cube and name it p_-tb-cube.
If this droid is hovering make sure the lower face of the cube is at Y position 0.
Post Reply