Buffing station point: dropable item.

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
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Buffing station point: dropable item.

Post by SW_elite »

The title may sound confusing and all, but what I am aiming to do here is make a dropable object that buffs troops. What I'm talking about is the Damage Reduction and Damage Bonuses. I need to know if I can make this object, use the two bonuses, on a loop, so that all troops around the area get buffed. If it is possible, how can it be done.


I did have one idea of making a new weapon, which gave the buffs, to the auto turret and then just change the texture so it didnt look the same as your normal auto turret. But i dont know how to loop the buffing part.
User avatar
ArkAngel
Rebel Sergeant
Rebel Sergeant
Posts: 215
Joined: Fri Nov 13, 2009 10:00 am

Re: Buffing station point: dropable item.

Post by ArkAngel »

just gonna guess about the "loop" thing. could you make it so that the buff has only X amount of ammo, and make it so it "fires" a new buff every 1 second, and then give it that much ammo accordingly?

or, if the auto turret can only have unlimited ammo, have it "shoot" the buff every second or so, and have a set "self destruct" time
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Buffing station point: dropable item.

Post by SW_elite »

I had a feeling this would have something to do with LUA... I'm not good with LUA cause I've hardly done any at all...

I don't want it to self destruct... I want it to function like a normal auto turret except it isn't shooting laser, it's giving out Damage Bonus and Damage Reduction boneses.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Buffing station point: dropable item.

Post by DarthD.U.C.K. »

you dont have to script lua to make them shoot constantly.
like arkangel said you simply make a n autoturret that has this buff as wepon and fires it constantly
he suggested autodestruct because it would be kinda overpowered otherwise
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Buffing station point: dropable item.

Post by SW_elite »

You will be able to destroy it... And its not going to be able to shoot, so you drop at your teams base and then all your guys get buffed....

The thing is, how do i get it to keep firering over and over?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Buffing station point: dropable item.

Post by DarthD.U.C.K. »

just like you keep any other ai-controlled turret firing over and over, i mean which turret doesnt fire constalntly?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Buffing station point: dropable item.

Post by AQT »

The stock auto turrets will keep on shooting as long as enemy units are around. That said, have your auto turret armed with one of the stock buff weapons with RoundsPerClip and ReloadTime set to zero. Then set TargetFriendly to "1" and Neutral and Enemy to "0" so that the auto turret will only target ally units. Finally remove any lines pertaining unit animations.
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Buffing station point: dropable item.

Post by SW_elite »

Righto! Thanks.
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: Buffing station point: dropable item.

Post by skelltor »

Add this to its odf.its numbers are right so that it fires constantly
SalvoCount = "100000000"
ShotsPerSalvo = "1"
SalvoDelay = "0.2"
InitialSalvoDelay = "1.0"
SalvoTime = "0.0"

And increase the rounds per clip to 100000000 also.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 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: Buffing station point: dropable item.

Post by Sky_216 »

Pretty simple to do, autoturrets have:
LifeTime = "somenumber"
That controls how long they live for, and the settings.....
Controllable = "0"
AutoFire = "1"
Make a weapon fire automatically + constantly.
User avatar
ArkAngel
Rebel Sergeant
Rebel Sergeant
Posts: 215
Joined: Fri Nov 13, 2009 10:00 am

Re: Buffing station point: dropable item.

Post by ArkAngel »

man I can't believe I was on the right track with this one :lol:
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 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: Australia!!!

Re: Buffing station point: dropable item.

Post by SW_elite »

I lol'd :funny2:
Post Reply