Interesting Find: Automated vehicles

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

xwingguy

Interesting Find: Automated vehicles

Post by xwingguy »

I found that I could make any vehicle run by itself, w/o a pilot by adding this line in the [Properties] of a vehicle:

Code: Select all

Pilottype = "self"
Give it a spawn point (and a team) and it'll get up and start running on its own.

I'd love to see somebody create a vehicle army battle with it.
JabbaLovesLava
Sith
Sith
Posts: 1396
Joined: Tue Jun 07, 2005 11:50 am

RE: Interesting Find: Automated vehicles

Post by JabbaLovesLava »

That's really cool, you should use that in your space map. I think space boarding is pretty dumb...
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Interesting Find: Automated vehicles

Post by Penguin »

uhh, sorry to say this? but who diddn't already know this?
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

RE: Interesting Find: Automated vehicles

Post by Qdin »

I gotta agree with Penguin with this one :wink:

most of all that are already in the Turret's .odf along with other useful lines, so it will actually shoot :P

This was actually also used a bit in SWBF1, but back then it missed some lines which has been added later on :P
Squirrel7Hunter

Post by Squirrel7Hunter »

I didnt no this :D thanks, this will help in my map
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

Re: Interesting Find: Automated vehicles

Post by Teancum »

xwingguy wrote:I found that I could make any vehicle run by itself, w/o a pilot by adding this line in the [Properties] of a vehicle:

Code: Select all

Pilottype = "self"
Give it a spawn point (and a team) and it'll get up and start running on its own.

I'd love to see somebody create a vehicle army battle with it.
You can use this in any seat on a vehcile as well, which makes it cool. Want an AAT with an automated turret? Just put that in the turret section. You can drive, and it will man the turret. The only problem is, it always mans the turret, which means that when the vehicle isn't being driven, the turret will still search and destroy. That's the way it was in BF1. Dunno about BF2.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Re: Interesting Find: Automated vehicles

Post by [RDH]Zerted »

You could code it in the Lua to turn off when a player exits the vehicle. Use SetProperties() on the vehicle.
Guest

Post by Guest »

Thanks for the tip, Xwingguy - very useful information.
Tohron

Post by Tohron »

On a similar line, would it actually be possible to make vehicles a spawnable class? That would be really interesting...
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

What do you mean by spawnable class? You can force a unit into a vehicle as soon as the unit spawns...
Tohron

Post by Tohron »

[RDH]Zerted wrote:What do you mean by spawnable class? You can force a unit into a vehicle as soon as the unit spawns...
I mean going to the class selection screen and having, say, a Vulture Droid as a spawn option, along with Droid Pilot and Droid Marine. It would probably require significant odf modifications, at least.
Qdin
Old School Staff
Posts: 2059
Joined: Wed Feb 23, 2005 9:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Qdin »

or just make the unit(s) go into the flyers right away? :P that would be the same :)
Ergonomics

Post by Ergonomics »

sorry, where abouts does it go in the properties section? ty
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

Post by Hebes24 »

Anywhere in the properties section, probably towards the beginning. Or if it has a Pilottype line, replace it with the one Xwingguy gave.
Kaos4
Command Sergeant Major
Command Sergeant Major
Posts: 256
Joined: Tue Sep 06, 2005 8:19 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Kaos4 »

If possible you could give the animal "vehicles" like Kaadu's or TaunTauns this property and attach it to the Native side. This would map a map feel more nature-like. You could create a hunt mode where you actually hunt.
It would be really cool if someone could make a Fambaa move and give it this property.
Hebes24
Sith Master
Sith Master
Posts: 2594
Joined: Sat Jun 03, 2006 5:15 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: In An Epic Space Battle!
Contact:

Post by Hebes24 »

That would actually work, Kaos. That's a really good idea! :D
Ergonomics

Post by Ergonomics »

yeah ive tried, well, heres the thing...

i want this done on a space map (does it work on a space map??), so i added the pilottype code near the beginning as you sed, but i mean, if its in the rong place, by just one line, does it still work??

also, does this work on vehicles that are being spawned constantly? as ive simply changed the odf for the fighters and moved this to my worlds odf section. (i want a huge space battle, so i set the spawn count on vehcles to 40 and spawn time to 1)

i jus tried now, doesnt work

any advice?

cheers
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

Wow Ergonomics, big bump!
xwingguy

Post by xwingguy »

Ergonomics, the first time I used this was in a space map.

either something didn't work in the odf or you forgot to munge something correctly or something.

(pardon the vagueness...I have a headache today)
User avatar
Dohnutt
Hoth Battle Chief
Hoth Battle Chief
Posts: 3248
Joined: Sun Aug 20, 2006 9:25 am
Contact:

Post by Dohnutt »

So, then this means that it's possible to make a ground vehicle just drive around a map? This could be useful for my new map... : 8)
Post Reply