Modme Forums

Lua questions

Game Modding | Call of Duty: Black Ops 3 | Scripting


Drae77:

Hello all, I'm trying to alining the perks but don't know how to do it .

- This is my t7hud_zm_custom.lua : https://pastebin.com/p917icKX

- This is my customperkicons.lua : https://pastebin.com/ua9xQK64

I tried adding

PerksWidget.PerkList:setHorizontalCount(12)
PerksWidget.PerkList:setVerticalCount(12)


and

HB21PerksWidget.PerkList:setHorizontalCount(12)
HB21PerksWidget.PerkList:setVerticalCount(12)


But, i'm a disaster xD, 0 changes in game .

2nd question.

Can i remove this function?:
function LUI.createMenu.T7Hud_zm_factory(InstanceRef)
    local HudRef = CoD.Menu.NewForUIEditor("T7Hud_zm_factory")
  
    if PreLoadCallback then
        PreLoadCallback(HudRef, InstanceRef)
    end
 
      -- Make sure that the list was not already setup, we must include the stock perks as well!
      if not CoD.ZMPerksFactory then
        -- Add our perks (hudItems.perks.key = imageName) (sync with csc clientuimodel)
        CoD.ZMPerksFactory =
        {
            additional_primary_weapon = "specialty_giant_three_guns_zombies",
            dead_shot = "specialty_giant_ads_zombies",
            dive_to_nuke = "specialty_divetonuke_zombies",
            doubletap2 = "specialty_giant_doubletap_zombies",
            juggernaut = "specialty_giant_juggernaut_zombies",
            marathon = "specialty_giant_marathon_zombies",
            quick_revive = "specialty_giant_quickrevive_zombies",
            sleight_of_hand = "specialty_giant_fastreload_zombies",
            tombstone = "specialty_tombstone_zombies",
            widows_wine = "specialty_giant_widows_wine_zombies",
            electric_cherry = "specialty_blue_electric_cherry_zombies",
          
            madgaz_moonshine = "i_madgaz_moonshine", --Madgaz
            banana_colada = "i_madgaz_banana_colada", --Madgaz
            bull_ice_blast = "i_madgaz_bull_ice_blast", --Madgaz
            crusaders_ale = "i_madgaz_crusader_ale", --Madgaz
            salvage_shake = "i_t7_specialty_shake", --Kaizokuroof
            atomic_liqueur = "i_t7_specialty_atomic", --Kaizokuroof
            snails_pace = "i_snails_pace_shader", --Abnormal202
            cryo_slide = "i_cryo_shader", --Abnormal202
            wind_runner = "i_wind_shader", --Abnormal202
            phdflopper                          = "i_t7_specialty_phdflopper", -- harrybo21
            tombstone                           = "i_t7_specialty_tombstone", -- harrybo21
            whoswho                                 = "i_t7_specialty_whoswho", -- harrybo21
            vultureaid                              = "i_t7_specialty_vultureaid", -- harrybo21
 
            bloodwolf = "i_specialty_bloodwolf_zombies", --F3ARxReaper666
            perception = "i_specialty_perception_zombies", --F3ARxReaper666
            winterwail = "i_specialty_winterwail_zombies", --F3ARxReaper666
            razor = "i_specialty_razor_zombies", --F3ARxReaper666
            bandolier = "i_specialty_bandolier_zombies", --F3ARxReaper666
            blazephase = "i_specialty_blazephase_zombies", --F3ARxReaper666
            stronghold = "i_specialty_stronghold_zombies", --F3ARxReaper666
            victorious = "i_specialty_victorious_zombies", --F3ARxReaper666
            zombshell = "i_specialty_zombshell_zombies", --F3ARxReaper666
            slider = "i_specialty_slider_zombies", --F3ARxReaper666
            dyingwish = "i_specialty_dyingwish_zombies", --F3ARxReaper666
            timeslip = "i_specialty_timeslip_zombies" --F3ARxReaper666
        }
    end
   

i think dont need it cuz they are on "customperkicons.lua"

3rd question.

How can i add the image of item quest on scoreboard ?
is this the way? Your first custom control widget

thnx in advance :D


Reaper_9382:

answering your 2nd question: don't remove it its for the perks shaders/icons if you do when you buy perks their icons won't appear in your hud