No way to access 'AllowUnitBuildStep' for repair?

No way to access 'AllowUnitBuildStep' for repair?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

No way to access 'AllowUnitBuildStep' for repair?

Post by TheFatController » 13 Aug 2011, 14:49

Seems to get called for Reclaiming a unit but not Repairing, is there any way to do this for Repair (hacky or otherwise?)

Thanks
0 x

User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: No way to access 'AllowUnitBuildStep' for repair?

Post by Licho » 13 Aug 2011, 15:18

There is no way atm.

I requested new callin about 3 years ago in mantis
(Also capture and similar callins would be handy)
0 x

User avatar
TheFatController
Balanced Annihilation Developer
Posts: 1177
Joined: 10 Dec 2006, 18:46

Re: No way to access 'AllowUnitBuildStep' for repair?

Post by TheFatController » 17 Aug 2011, 12:50

If anyone likes hacks I have implemented a gameframe based repair blocking weapon in http://springrts.com/phpbb/viewtopic.php?f=44&t=26633 on the surface it seems to work fine
0 x

Google_Frog
Moderator
Posts: 2442
Joined: 12 Oct 2007, 09:24

Re: No way to access 'AllowUnitBuildStep' for repair?

Post by Google_Frog » 20 Aug 2011, 07:18

ZK uses this to change the speed of repair, something similar could prevent repair (or at least make it really slow).

http://code.google.com/p/zero-k/source/ ... _speed.lua

It basically works by changing unit buildtime on the fly using Spring.SetUnitCosts.
0 x

Post Reply

Return to “Lua Scripts”

cron