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

mod problem

11 posts, 291 views
Post comment
Filter:    Player:  
sort
i need some technical help with a mod

im unable to get athena to fire weapons i give it and i have tried countless weapons:

i would like to stick with unit tweaks as the rest of the mod is a unit tweak

here is an example weapon.. it works for other units but when i place it on athena it does not.

[Spoiler]
+0 / -0
Units' way (and ability) to fire weapon are written in units' script. Athena's script don't have way to shot, so athena don't shot.
As I know, tweak_defs can't solve this problem.
You need a true mod :)
If you want you can make silly war together with me :)
+5 / -0
thanks for the reply. alright. i will find an alternative

can we get some more upvotes for this guy he keeps helping me
+0 / -0
@ xnt

this is what i used for king builder to cull wrecks


for name, ud in pairs(UnitDefs) do
  if ud.featuredefs then
    for _, wd in pairs(ud.featuredefs) do
      if wd.blocking then
        wd.blocking = [[false]]
      end
    end
  end
  if ud.featuredefs then
  for _, wd in pairs(ud.featuredefs) do
  if wd.object then
  wd.object = [[emptyModel.s3o]]
      end
    end
  end
end

and i also used a clean up incase wrecks are invisible

{
staticmex = {
customParams = {
grey_goo = 1,
grey_goo_spawn = "energywind",
grey_goo_drain = 10000,
grey_goo_cost = 1000000,
grey_goo_range = 4000,
},
},
}

+0 / -0
52 days ago
.
ty
but ud.corpse=nil is enough :)
+1 / -0
52 days ago
How to change the collision (radius) between units
+0 / -0
52 days ago
is it? footprintX = 2,
footprintZ = 2,
+0 / -0
52 days ago
quote:

is it? footprintX = 2,
footprintZ = 2,

I tried, it is not
+0 / -0
51 days ago
hmm im not sure but i think shaman or googlefrog will know ill see if i can figure it out but i tried this too once and couldnt find it
+0 / -0

local targetNames = {
    ["Guardian Commander"] = true,
    ["Recon Commander"] = true,
    ["Strike Commander"] = true,
    ["Engineer Commander"] = true,
}
for name, ud in pairs(UnitDefs) do
    if not targetNames[ud.name] then
        if ud.corpse then
            ud.corpse = nil
        end
        if ud.featuredefs then
            for _, fd in pairs(ud.featuredefs) do
                if fd.blocking then
                    fd.blocking = false
                end
                if fd.object then
                    fd.object = nil
                end
            end
        end
    end
end




my new revised anti wreck code


bG9jYWwgdGFyZ2V0TmFtZXMgPSB7ClsiR3VhcmRpYW4gQ29tbWFuZGVyIl0gPSB0cnVlLApbIlJlY29uIENvbW1hbmRlciJdID0gdHJ1ZSwKWyJTdHJpa2UgQ29tbWFuZGVyIl0gPSB0cnVlLApbIkVuZ2luZWVyIENvbW1hbmRlciJdID0gdHJ1ZSwKfQpmb3IgbmFtZSwgdWQgaW4gcGFpcnMoVW5pdERlZnMpIGRvCmlmIG5vdCB0YXJnZXROYW1lc1t1ZC5uYW1lXSB0aGVuCmlmIHVkLmNvcnBzZSB0aGVuCnVkLmNvcnBzZSA9IG5pbAplbmQKaWYgdWQuZmVhdHVyZWRlZnMgdGhlbgpmb3IgXywgZmQgaW4gcGFpcnModWQuZmVhdHVyZWRlZnMpIGRvCmlmIGZkLmJsb2NraW5nIHRoZW4KZmQuYmxvY2tpbmcgPSBmYWxzZQplbmQKaWYgZmQub2JqZWN0IHRoZW4KZmQub2JqZWN0ID0gbmlsCmVuZAplbmQKZW5kCmVuZAplbmQ=

+0 / -0
You need to mutate the zk code and add AimWeapon, AimFromWeapon and QueryWeapon callins to athena's LUS.
+1 / -0