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

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

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
NeonStorm
Posts: 173
Joined: 23 May 2012, 18:36

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

Post 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
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

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

Post 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.
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

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

Post by Google_Frog »

Without this gadget you would not be able to give attack ground commands to bombers.
Post Reply

Return to “General Discussion”