《戰爭(Warfare)》調出坦克車輛直升機及人員的簡易方法

批量修改

遊戲安裝目錄 X:>Warfare>basis>console  里 utils.lua  文件(記事本或UE打開)~

將以下文本復制並替換原文件內容即可~

— 域樺栩睇?趔黻鯊?瀠 覲眈鈹?

help = function()
        console.log(“***************************************************************************************”)
        console.log(”     – utils.vtune(frames, framestep, frames_to_wait, need_exit)”)
        console.log(”         Vtune data collection”)
        console.log(”          – frames – for how much frames data will be collected”)
        console.log(”          – framestep – timer step during data collection, ms”)
        console.log(”          – frames_to_wait – for how much frames to wait before data collection”)
        console.log(”          – need_exit – set to true to exit the game after data collection”)
        console.log(“***************************************************************************************”)
        console.log(”     – cheats.givecl(num)”)
        console.log(”         Spawns lates versions of cl tanks at 10, 10″)
        console.log(”          – num – How many cl to spawn”)
        console.log(“***************************************************************************************”)
        console.log(”     – cheats.givery()”)
        console.log(”         Spawns rys squad at 10, 10″)
        console.log(“***************************************************************************************”)
        console.log(”     – cheats.showAll()”)
        console.log(”         Shows enemy units under the fog of war”)
        console.log(“***************************************************************************************”)
        console.log(”     – cheats.hideAll()”)
        console.log(”         Hides enemy units under the fog of war”)
        console.log(“***************************************************************************************”)
end

utils = {
        — 澤黻鯊 玎矬耜噱?襻銪 溧眄 vtune’鐸.
        — frames – 覲腓麇耱忸 賅漯鉬, ?蟈麇龕?覲蠑瘥?狍瀦?耦徼疣螯? 溧眄
        — framestep – ?蜞殪屨?玎 賅漯 忸 怵屐 襻銪?溧眄, 祚
        — frames_to_wait – 覲腓麇耱忸 賅漯鉬, 覲蠑瘥?眢騅?鐿漕驛囹?鑥皰?襻銪鐸 溧眄
        — need_exit – 羼腓 true, 蠑 趔黻鯊 鑣鉈瑋鈿栩 懨躅?榿 鑣樺鈰屙? 鐿 鈮銬鬣龕?襻銪?溧眄
        vtune = function(frames, framestep, frames_to_wait, need_exit)
                if (frames_to_wait ~= nil) then
                        console.waitFrames(frames_to_wait)
                end
                game.startVtuning(frames, framestep)
                console.waitFrames(frames + 1)
                if (need_exit) then
                        game.exit()
                end
        end,
}
cheats = {
        — 耬囿龕?Num 噌疣祚鉬 鐿耠邃礤?祛滂翳賅鯊??覲銪滂磬蜞?磬麒磬 ?10,10 ?溧脲?鐿 5 戾蝠鉬 ?鰣眚痼.
        — 漕徉愴弳 桴 ?懨溴脲龕?
        — 徨?鏇疣戾蝠鉬 – 耬囿龕?鈿檜 蜞黻
        givetk = function(num)
                local dist = 5
                local x = 60 – dist
                local y = 600 – dist
               
                if ((num == nil) or (num                         num = 1
                end

                for count = 1, num, 1 do
                        local xx = x + count * dist
                        local yy = y + count * dist
                        local zz = game.getLandHeight(xx, yy)
                        game.selectEntity(game.spawnTank(“tank_t72_smoke”, xx, yy, zz, 0, “usa”))
                end

                console.log(“CHEATS >> Spawned “, num, ” tk”)
        end,
        givecl = function(num)
                local dist = 5
                local x = 60 – dist
                local y = 600 – dist
               
                if ((num == nil) or (num                         num = 1
                end

                for count = 1, num, 1 do
                        local xx = x + count * dist
                        local yy = y + count * dist
                        local zz = game.getLandHeight(xx, yy)
                        game.selectEntity(game.spawnCar(“car_m978_tanker”, xx, yy, zz, 0, “usa”))
                end

                console.log(“CHEATS >> Spawned “, num, ” cl”)
        end,
        givezsj = function(num)
                local dist = 5
                local x = 60 – dist
                local y = 600 – dist
               
                if ((num == nil) or (num                         num = 1
                end

                for count = 1, num, 1 do
                        local xx = x + count * dist
                        local yy = y + count * dist
                        local zz = game.getLandHeight(xx, yy)
                        game.selectEntity(game.spawnHeli(“vertolet_mi26”, xx, yy, zz, 0, “usa”))
                end

                console.log(“CHEATS >> Spawned “, num, ” zsj”)
        end,
        givery = function(num)
                local dist = 5
                local x = 60 – dist
                local y = 600 – dist
               
                if ((num == nil) or (num                         num = 1
                end

                for count = 1, num, 1 do
                        local xx = x + count * dist
                        local yy = y + count * dist
                        local zz = game.getLandHeight(xx, yy)
                        game.selectEntity(game.spawnSquad(“us_delta_01”, xx, yy, zz, 0, “usa”))
                end

                console.log(“CHEATS >> Spawned “, num, ” ry”)
        end,
        — 鐿賅琨忄弳 怦艴 怵嚆鉬
        showAll = function()
                game.enableHideInvisible(false)
                console.log(“CHEATS >> Enemies are visible now”)
        end,
        — 鑣麇?怦艴 怵嚆鉬
        showAll = function()
                game.enableHideInvisible(true)
                console.log(“CHEATS >> Enemies are invisible now”)
        end,
        — 玎耬囿龕?耥囡屨 耜忄??10, 10

}

使用方法:

打開控制台: 
Ctrl+~

cheats.givetk (*)   坦克*輛
cheats.givecl (*)   車輛*輛
cheats.givezsj (*)  直升機*架
cheats.givery (*)  人員*人

括號前有空格~ 括號內數量有效~基本出現坐標位於屏幕上方偏右一點

各種類別需要什麼具體單位~參考遊戲安裝目錄下(X:>Warfare>basisextures>ui>picturesech_pic)的單位代碼即可~

來源:遊民星空