Space Troopers

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

User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Space Troopers

Post by Lagomorphia »

Can units with jetpacks pass through hanger shields while in flight? If not is there a way to make it so they can?
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Re: Space Troopers

Post by The_Emperor »

While I'm not entirely sure, I doubt the shield would be able to know the difference between normal troopers and ones with jetpacks, so it lets all units through, or none, I'd reckon. A workaround would be to make all units able to pass through the hanger shield, but make an invisible barrier for units on the floor that's too high to jump over.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Space Troopers

Post by Lagomorphia »

On a map my brother was making the jet troopers walked into the lake and the other units didn't. There was a barrier for infantry but not flyers.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Re: Space Troopers

Post by The_Emperor »

Well in that case, I suppose you could use that same method for the hangar shield
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Space Troopers

Post by skelltor »

no they can not but in fc you can make hanger shields allow units which lets unit walk throught them idk if there is a way to always let them go through
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Space Troopers

Post by Lagomorphia »

I know that, but it is isn't great having a unit that you need to activate the Fake Console to use properly.
Darth_Squoobus
General
General
Posts: 760
Joined: Mon Aug 03, 2009 3:21 am
Projects :: No Mod project currently.
Location: over the hills and far away

Re: Space Troopers

Post by Darth_Squoobus »

Lagomorphia wrote:I know that, but it is isn't great having a unit that you need to activate the Fake Console to use properly.
Never fear! Squoobus is here! He will solve your problem!

Jet troopers are pretty big, so you need to scale up the dark trooper .odf and turn it into a vehicle. That limits what you can do with it, but it allows you to bypass barriers and such.
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

Re: Space Troopers

Post by sampip »

Lagomorphia wrote:I know that, but it is isn't great having a unit that you need to activate the Fake Console to use properly.
All the fake console was done (I think) through scripting and coding, meaning there should be a piece of script or function concerning disabling hangar shield barriers. There is a list of all .lua codes and functions somewhere, I'm just looking for it now.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Space Troopers

Post by Lagomorphia »

Jet troopers are pretty big, so you need to scale up the dark trooper .odf and turn it into a vehicle. That limits what you can do with it, but it allows you to bypass barriers and such.
Spacesuits eh? Sounds interesting.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Space Troopers

Post by Fiodis »

Darth_Squoobus wrote:Jet troopers are pretty big, so you need to scale up the dark trooper .odf and turn it into a vehicle.
Do you know how hard that would be?
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: Space Troopers

Post by theultimat »

FragMe! made a new model of one I think...I'll have a look on his Xfire videos...

EDIT:
Yeah, here it is:
Image
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Space Troopers

Post by Fiodis »

I saw that while he was developing it, and I thought (and still do think) it's a very clever idea - but it doesn't completely cover what the OP wants to do, and it's very hard for someone who doesn't know anything about XSI, as you have to make the model, then rig custom animations for it.
User avatar
Fluffy_the_ic
Hoth Battle Chief
Hoth Battle Chief
Posts: 3223
Joined: Thu Jan 24, 2008 7:03 pm
xbox live or psn: fluffytherc
Location: she/her
Contact:

Re: Space Troopers

Post by Fluffy_the_ic »

Lagomorphia wrote:On a map my brother was making the jet troopers walked into the lake and the other units didn't. There was a barrier for infantry but not flyers.
That should actually work perfectly here. Of course, I don't know how to make said barriers for more than just AI. You can just change the jet trooper's class to the same thing as, say, a tank so that it can go through it.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Space Troopers

Post by Lagomorphia »

Didn't work. The clone still cannot pass through the shield.

Unit ODF
Hidden/Spoiler:
[GameObjectClass]
ClassLabel = "flyer"
ClassParent = "rep_inf_default_jettrooper"

[Properties]
Label = "Arc Trooper"
UnitType = "trooper"
IconTexture = "rep_htrooper_icon"

GeometryName = "rep_inf_jettrooper"
GeometryLowRes = "rep_inf_jettrooper"
FirstPerson = "REP\repjettp;rep_1st_jettrooper"

JetJump = "70.0" //7 //The initial jump-push given when enabling the jet
JetPush = "8.0" //The constant push given while the jet is enabled (20 is gravity)
JetAcceleration = "1000.0" //Acceleration while hovering.
JetType = "hover"
JetFuelRechargeRate = "0.9" //Additional fuel per second (fuel is 0 to 1)
JetFuelCost = "0.005" //Cost per second when hovering (only used for jet-hovers)(fuel is 0 to 1)
JetFuelInitialCost = "0.0001" //initial cost when jet jumping(fuel is 0 to 1)
JetFuelMinBorder = "0.24" //minimum fuel to perform a jet jump(fuel is 0 to 1)

WEAPONSECTION = 1
WeaponName = "rep_weap_inf_carbine"
WeaponAmmo = 4

WEAPONSECTION = 2
WeaponName = "rep_weap_inf_clonepistol"
WeaponAmmo = 0

WEAPONSECTION = 3
WeaponName = "rep_weap_inf_thermaldetonator"
WeaponAmmo = 2
WeaponChannel = 1
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Space Troopers

Post by Fiodis »

Woah, now. Didn't you get a CTD? You shouldn't change the classlabel of a unit to a flyer. That makes the game think it's a flyer, not a unit. "UnitType", perhaps, is what you ought to edit, or "Label".
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Space Troopers

Post by MercuryNoodles »

UnitType determines AI behavior, not anything regarding collision, and I've never been too sure of what Label actually does, if anything. Either way, changing the ClassLabel was the right idea, in a sense, though it still shouldn't work.

If you want jettroopers to pass through the hangar shield, you should change the collision properties in the shield odf. Unfortunately, the drawback is that you can't make it jettrooper specific.

http://www.gametoast.com/forums/viewtop ... 02#p325902
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Space Troopers

Post by kinetosimpetus »

Can you make it HealthType specific?
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: Space Troopers

Post by MercuryNoodles »

There isn't an odf parameter for that, from what I've seen, so I'd say no. At least, you couldn't do it with an odf.
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Space Troopers

Post by Xavious »

MercuryNoodles wrote:If you want jettroopers to pass through the hangar shield, you should change the collision properties in the shield odf. Unfortunately, the drawback is that you can't make it jettrooper specific.
Just make sure the normal troopers can't jump high enough to reach the hanger shield.

Or give the jet troopers and normal troopers seperate health types, and put a damage region outside for the health type you assign to normal troopers.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Space Troopers

Post by Lagomorphia »

seperate health types
How do I do that?

I suppose if the jet troopers can pass through the shield it would make sense for the non-jet troopers to be able to too, but they won't get anywhere. They'll just be in for a long drop.
Post Reply