Page 1 of 1

LOL@Devs rage-disabled command 70 for fighters and bombers.

Posted: 16 Mar 2013, 16:58
by NeonStorm
http://code.google.com/p/zero-k/source/ ... _speed.lua

Code: Select all

function gadget:GetInfo()
  return {
    name      = "I Hate CMD.SET_WANTED_MAX_SPEED",
    desc      = "It ruins everything.",
    author    = "Google Frog",
    date      = "1 Sep 2012",
    license   = "GNU GPL, v2 or later",
    layer     = 0,
    enabled   = Game.version:find("91.0")  --  loaded by default?
  }
end

local thingsThatCMD_SET_WANTED_MAX_SPEEDBuggers = {}

for i=1, #UnitDefs do
        local ud = UnitDefs[i]
        if ud.canFly and (ud.isFighter or ud.isBomber) then
                thingsThatCMD_SET_WANTED_MAX_SPEEDBuggers[i] = true
        end
end

function gadget:AllowCommand(unitID, unitDefID, teamID, cmdID, cmdParams, cmdOptions)
        --GG.UnitEcho(unitID, cmdID)
        if cmdID == 70 and thingsThatCMD_SET_WANTED_MAX_SPEEDBuggers[unitDefID] then
                return false
        end
        return true
end
Because it IS related to spring it does not fit into the off topic :P

Re: LOL@Devs rage-disabled command 70 for fighters and bombe

Posted: 16 Mar 2013, 17:22
by Silentwings
You probably mean to have posted this in ZK forums?

That gadget was written as a hotfix for an engine bug (to do with bombers and customformations, now fixed) that was present in 91. We use it in BA 7.72 as well - it's not a rage at anything, it's a very handy bugfix.

Re: LOL@Devs rage-disabled command 70 for fighters and bombe

Posted: 17 Mar 2013, 02:21
by Google_Frog
Without this gadget you would not be able to give attack ground commands to bombers.