Modified unit_stockpile.lua
Moderator: Moderators
- TheFatController
- Balanced Annihilation Developer
- Posts: 1177
- Joined: 10 Dec 2006, 18:46
Modified unit_stockpile.lua
Just throwing this out here
http://pw3n.net/widgets/unit_stockpile.lua
This widget not only stockpiles nukes but prepares them for instant fire by starting their firing script then stopping it.
The only issue is that it doesn't work on the core tactical nuke, even though you can do this manually... if anyone has any ideas on this please let me know.
http://pw3n.net/widgets/unit_stockpile.lua
This widget not only stockpiles nukes but prepares them for instant fire by starting their firing script then stopping it.
The only issue is that it doesn't work on the core tactical nuke, even though you can do this manually... if anyone has any ideas on this please let me know.
Re: Modified unit_stockpile.lua
Nice trick :)TheFatController wrote:...
This widget not only stockpiles nukes but prepares them for instant fire by starting their firing script then stopping it.
...
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Modified unit_stockpile.lua
Spring.GiveOrderToUnit(unitID, CMD.ATTACK, {Spring.GetUnitPosition(unitID)}, {})
Because I'm such a good friend I will point out that if LuaUI crashes you will nuke yourself. Once for every silo.

Because I'm such a good friend I will point out that if LuaUI crashes you will nuke yourself. Once for every silo.
- TheFatController
- Balanced Annihilation Developer
- Posts: 1177
- Joined: 10 Dec 2006, 18:46
Re: Modified unit_stockpile.lua
Couldn't think of a better place to aim them! 

Re: Modified unit_stockpile.lua
map center?
- TheFatController
- Balanced Annihilation Developer
- Posts: 1177
- Joined: 10 Dec 2006, 18:46
Re: Modified unit_stockpile.lua
I'd rather nuke myself if lua crashed than my ally or front line (also middle of the map could theoretically be out of range from some nukes), tho the window for it happening is very small anyway and I almost never get luaui crashes myself :p
I'm more concerned about why it doesnt work at all for the cortron.
I'm more concerned about why it doesnt work at all for the cortron.
Re: Modified unit_stockpile.lua
Couldnt you aim outside the map or really high up?
Re: Modified unit_stockpile.lua
Aim high!? You can't aim high in spring!
I need to go change that into a mod option / make it optional per weapon. It's nothing more than a hack. Fix the rockos, don't force aiming restrictions.
I need to go change that into a mod option / make it optional per weapon. It's nothing more than a hack. Fix the rockos, don't force aiming restrictions.
Re: Modified unit_stockpile.lua
I mean give the attack order an absurdly high height.
Re: Modified unit_stockpile.lua
That's what I mean. You cannot give an attack order more than 8 elmos off the ground. Not without a helper gadget at any rate.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Modified unit_stockpile.lua
It's still a nuke. Even if you could aim it up, it would fly through that spot and land on the ground.
- Tribulexrenamed
- Posts: 775
- Joined: 22 Apr 2008, 19:06
Re: Modified unit_stockpile.lua
Aim it at the opposite position on the map.
So if you are in the middle it aims at itself, or if you are at the NE corner it aims at SW corner. Dunno, this widget just makes me nervous...
So if you are in the middle it aims at itself, or if you are at the NE corner it aims at SW corner. Dunno, this widget just makes me nervous...
- TheFatController
- Balanced Annihilation Developer
- Posts: 1177
- Joined: 10 Dec 2006, 18:46
Re: Modified unit_stockpile.lua
What if you were doing this trick without a widget and your cat kicked your keyboard lead out before you could hit 's'
Re: Modified unit_stockpile.lua
It would be aimed at the enemy base.TheFatController wrote:What if you were doing this trick without a widget
- Tribulexrenamed
- Posts: 775
- Joined: 22 Apr 2008, 19:06
Re: Modified unit_stockpile.lua
It would be aimed at my cat.TheFatController wrote:What if you were doing this trick without a widget and your cat kicked your keyboard lead out before you could hit 's'