Modme Forums

Lua HUD Injector

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


lilrifa:

Hi all,
I recently spent some time working on a lua file that would allow a user to inject custom hud code into the main level hud. With this method, you would be able to add hud content to stock maps without ripping and rebuilding the stock files. This would be most useful in mods, but it's also compatible with maps.

Installation is simple.
1. Copy all the files and folders to your map or mod's folder
2. Add

LuiLoad("ui.HUDInject.HUDInject");
to your CSC file
3. Add
rawfile,ui/HUDInject/HUDInject.lua
to your zone
Done!

The injector file has adequate documentation and is extensible. Ping me on discord if you have any questions.


lilrifa:

EDIT: References to a powerup widget I've been working on have been left in the Injector lua. Remove these to avoid errors.