Looking for a gadget
Moderator: Moderators
Looking for a gadget
I'm pretty sure at one time i saw units that could "sprint". I assume that's a gadget but i can't seem to find it. Anyone still have it or know what i'm talking about?
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Looking for a gadget
This is the gadget:
name = "CobButton",
desc = "Easy cob button Creation",
http://trac.caspring.org/browser/trunk/ ... button.lua
+
This is the unit script for the Zipper (no longer in ZK). Zipper's script defines what to do when sprinting and the gadget makes the button.
http://trac.caspring.org/browser/trunk/ ... rmfast.bos
I don't recommend using this. Use LUS instead.
name = "CobButton",
desc = "Easy cob button Creation",
http://trac.caspring.org/browser/trunk/ ... button.lua
+
This is the unit script for the Zipper (no longer in ZK). Zipper's script defines what to do when sprinting and the gadget makes the button.
http://trac.caspring.org/browser/trunk/ ... rmfast.bos
I don't recommend using this. Use LUS instead.
- bobthedinosaur
- Blood & Steel Developer
- Posts: 2702
- Joined: 25 Aug 2004, 13:31
Re: Looking for a gadget
now do a version for lus...
Re: Looking for a gadget
What he said..... please?
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Looking for a gadget
I was wanting to convert it to LUS eventually. I'll give it a shot.
Re: Looking for a gadget
I'm personally not a fan of the cobbuttons gadget.
If you're going to have the Sprint ability for multiple units, what are you intending to implement LUS side?
If you're going to have the Sprint ability for multiple units, what are you intending to implement LUS side?
Re: Looking for a gadget
animation like speeding up movement of legs, wheels etc?
do i understand correctly that
calls the function in the unit script? (when button is pressed and again when sprint has ended or something)
wouldnt that just have to be replaced with
do i understand correctly that
Code: Select all
143 Spring.CallCOBScript(unitID, cmd.endcob, 0)
wouldnt that just have to be replaced with
Code: Select all
env = Spring.UnitScript.GetScriptEnv(unitID)
if (env) then Spring.UnitScript.CallAsUnit(unitID, env.sprintstart) end
Re: Looking for a gadget
Yes. Which is why I was wondering what else he'd do LUS side, as otherwise you can use the same gadget but just replace the COB anim call with a LUS one.
- CarRepairer
- Cursed Zero-K Developer
- Posts: 3359
- Joined: 07 Nov 2007, 21:48
Re: Looking for a gadget
Sorry. Replace
withCarRepairer wrote:I don't recommend using this. Use LUS instead.
CarRepairer should have said wrote:I don't recommend using this gadget as-is. Use a converted version of it that uses LUS instead.