Page 1 of 1

Buffing station point: dropable item.

Posted: Sat Aug 07, 2010 8:22 pm
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.

Re: Buffing station point: dropable item.

Posted: Sat Aug 07, 2010 10:30 pm
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

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 3:32 am
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.

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 4:59 am
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

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 6:03 am
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?

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 6:10 am
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?

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 6:18 am
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.

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 6:23 am
by SW_elite
Righto! Thanks.

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 8:47 am
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.

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 8:59 am
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.

Re: Buffing station point: dropable item.

Posted: Sun Aug 08, 2010 11:14 am
by ArkAngel
man I can't believe I was on the right track with this one :lol:

Re: Buffing station point: dropable item.

Posted: Mon Aug 09, 2010 1:34 am
by SW_elite
I lol'd :funny2: