Loading...
  OR  Zero-K Name:    Password:   

mod help: default cloak state

3 posts, 82 views
Post comment
Filter:    Player:  
sort
grey goo cloak unit.gatherState

can this be set to GOO_CLOAK state 2 using unit/def tweaks?

i tried to edit:

gatherState = "GOO_CLOAK",
gatherState = 2,
grey_goo = 2,

https://github.com/ZeroK-RTS/Zero-K/blob/master/LuaRules/Gadgets/unit_grey_goo.lua

any help to make cloaked units goo would be great. thanks
+0 / -0
The default gather-state is defined as a constant in the gadget.

As you know, it is possible to make units goo by setting grey_goo. You can also set cost, range and spawns (what type of unit it gooies).

Do you want the units to goo when they are cloaked? The gadget always call 'PokeDecloakUnit' when a cloaked unit is gooing. So looks like you need a modification of the gadget for that.
+1 / -0
no i do not want the units to goo when they are cloaked =)

the ingame goo state toggle has a setting to goo while cloaked as vanilla behavior but i dont know how or if the toggle can be set to goo state 2. "GOO_CLOAK" as a default or if it can only be set ingame

in game you can switch its goo state toggle to goo state 2. "GOO_CLOAK" so that the unit will goo if it can even if that means loosing cloak

its not a huge problem its just maybe if somone knew a bit more about it.

thanks again MmmmM your help is very much apreciated =)
+0 / -0