How do you add AT-TEs?

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
Recon Trooper
Command Sergeant Major
Command Sergeant Major
Posts: 285
Joined: Fri Sep 11, 2009 5:36 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: Muhamid Ant Farm ???
Contact:

How do you add AT-TEs?

Post by Recon Trooper »

I tryed adding a at-te by the normal way and changed the lua to add 3 legs walker type but it never turns up?
User avatar
B.I.G_Cookie
High General
High General
Posts: 839
Joined: Sun Feb 22, 2009 4:28 pm
Games I'm Playing :: Battlefield 4
Location: Frankfurt, Germany

Re: How do you add AT-TEs?

Post by B.I.G_Cookie »

the atte is a commando vehicle.
you also have to write it into your memorypool
Hidden/Spoiler:
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("CommandWalker", 1)
SetMemoryPoolSize("EnergyBar", weaponCnt)
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: How do you add AT-TEs?

Post by Darth_Spiderpig »

Not to forget the entity walker part:
Hidden/Spoiler:
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("EntityWalker", 500)
SetMemoryPoolSize("MountedTurret", 32)
theultimat
Lieutenant General
Lieutenant General
Posts: 679
Joined: Sun Apr 13, 2008 1:39 pm
Location: UK

Re: How do you add AT-TEs?

Post by theultimat »

Things you need to do (summary of above posts :P)

1) Add the ATTE in the ReadDataFile part of your LUA.

Code: Select all

ReadDataFile("SIDE\\rep.lvl",
"rep_walk_atte") 
2) Add the walker type of an ATTE. The number after the 3 should be the number of ATTEs in the map.

Code: Select all

AddWalkerType(3, 1) -- 3x2 (3 pairs of legs)
3) Set the Memory Pool. This should go under the line

Code: Select all

SetMemoryPoolSize("EntityFlyer", 32)
The code that goes under that is as follows. Again, the 1 is the number of ATTEs you want in the map.

Code: Select all

SetMemoryPoolSize("CommandWalker", 1)
That and all the normal vehicle set up leaves you with a fully functioning ATTE. Enjoy. ;)
Post Reply