AT-XT

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

Murdocr

Post by Murdocr »

ReadDataFile("dc:SIDE\\atxt.lvl",
"rep_walk_atxt")

ReadDataFile("SIDE\\Imp.lvl",
"Imp_walk_atst")


add those two into your lua
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Post by Teancum »

Cool, so you got it work. Good deal.
Squirrel7Hunter

Post by Squirrel7Hunter »

ok I didnt add those but do I have to add REp_walk_atxt to ADDWALKDERTYPE(1,0) ?
ruasoh

Post by ruasoh »

You have to put rep_walk_atxt", under ReadDataFile("SIDE\\atxt.lvl",

(it can be between any of the existing rep units)

Under the --Level stats
change AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
to AddWalkerType(1, x) -- 1x2 (1 pair of legs) where x= the number of two legged (or 1 pair of legs ;) )walkers you want available in the map. Here's what those parts of my map LUA look like:




ReadDataFile("sound\\tat.lvl;tat2gcw")
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"rep_walk_atxt",
"all_inf_wookiee",
"all_hero_hansolo_tat")


and


-- Level Stats
ClearWalkers()
AddWalkerType(0, 0) -- special -> droidekas
AddWalkerType(1, 3) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
Murdocr

Post by Murdocr »

Teancum wrote:Cool, so you got it work. Good deal.
yeah i got it towork thanks for that. another reason it didn't work for me is that i had to actually create a atxt folder in datamodid/build/sides for vsualmunge to munge my atxt side. after that it just munged everything to that directory.
Squirrel7Hunter

Post by Squirrel7Hunter »

ahh thats how it works, and thanks murdocer and ruasoh, I'm gonna see if it will work now
Post Reply