Adding different types of 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

Post Reply
ulohobo
Recruit Womprat Killer
Posts: 5
Joined: Sat Apr 28, 2012 10:01 am
Projects :: No Mod project currently.
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Adding different types of troopers?

Post by ulohobo »

Hello again, I understand my last post was quite recent but I'm not the best at modding. So I'd like to know something that I couldn't find via search, how to change the type of soldiers. What I mean is, like if you had default episode 3 clone troopers in your map, is there a change you could make in the script to make them all use say, the kashykkk sharpshooter model, or the clones on Geonosis? If there's a tutorial on how to do this (and I'd bet there is), I'd appreciate a link, or even a quick explanation. Thanks in advance.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Adding different types of troopers?

Post by AQT »

You can use the SetClassProperty function in your .lua files to change a unit's player model, both the normal model and the low resolution model, as well as its first person model, given if the necessary models are already loaded. In your case here, you would need to load the Kashyyyk armor version of the Episode 3 Clone Sniper since it has the three models necessary.

As for using the clone troopers from Geonosis, those unit already exist, so you simply load those in place of the stock Episode 3 ones and reference their names accordingly in the SetUpTeams section.
ulohobo
Recruit Womprat Killer
Posts: 5
Joined: Sat Apr 28, 2012 10:01 am
Projects :: No Mod project currently.
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Re: Adding different types of troopers?

Post by ulohobo »

AQT wrote:
You can use the SetClassProperty function in your .lua files to change a unit's player model, both the normal model and the low resolution model, as well as its first person model, given if the necessary models are already loaded. In your case here, you would need to load the Kashyyyk armor version of the Episode 3 Clone Sniper since it has the three models necessary.

As for using the clone troopers from Geonosis, those unit already exist, so you simply load those in place of the stock Episode 3 ones and reference their names accordingly in the SetUpTeams section.
Ok thanks that solces the Geo troopers, but where would I be able to find SetClassProperty?
ARCTroopaNate
Jedi
Jedi
Posts: 1161
Joined: Mon Mar 21, 2011 8:12 pm
Projects :: Star Wars Battlefront - Tides of War
Games I'm Playing :: SWBF2 RC EAW
xbox live or psn: I have ps4
Location: STALKER!
Contact:

Re: Adding different types of troopers?

Post by ARCTroopaNate »

You would add it to your lua, you can change certain things, it saves lot's of file space, follow the tut, it's very simple and setclassproperty can be used for almost anything that has to do with editing units or vehicles.
ulohobo
Recruit Womprat Killer
Posts: 5
Joined: Sat Apr 28, 2012 10:01 am
Projects :: No Mod project currently.
Games I'm Playing :: swbf2
xbox live or psn: No gamertag set

Re: Adding different types of troopers?

Post by ulohobo »

Oh wait, ignore that last reply lol, I figured it out.
Post Reply