Game Modding | Call of Duty: Black Ops 3 | Scripting
QuentinFTL:
Thread By: QuentinN33
<h1 style="text-align:center;"><sub>T8Zone v 1.3.1</sub></h1>
<h3>Download</h3>
Download
<h3><sub>Preview</sub></h3>
<sub></sub>
<h3><sub>Files insides :</sub></h3>
<sub>Scripts, Lua, Instructions, examples of T7Hud_zm_custom.lua</sub>
<sub> </sub>
<h3><sub>Instructions</sub></h3>
**Tutorial**
I don't explain how to install lua in your map, just go on this website : https://wiki.modme.co/wiki/black_ops_3/Lua-(LUI).html
Drop all files in correct folders
1)
Open .zone and add theses lines :
scriptparsetree,scripts/zm/_zm_T8_ZA.gsc
scriptparsetree,scripts/zm/_zm_T8_ZA.csc
ttf,fonts/.ttf //fonts are in a folder named "fonts" in : bo3 root/share/raw
rawfile,ui/T8Editor/ZoneWriter.lua
2)
Open .gsc and .csc and add this line
#using scripts\zm\_zm_T8_ZA;
after the line
#using scripts\zm\zm_usermap;
3)
Open your t7hud_zm_custom.lua and go after the line :
require("ui.uieditor.widgets.BubbleGumBuffs.BubbleGumPackInGame")
and paste this line :
require("ui.T8Editor.ZoneWriter")
and go after this line :
HudRef.anyChildUsesUpdateState = true
and paste theses lines after
local ElemPos = {
leftAnchor = true,
left = 25,
rightAnchor = false,
right = 125,
topAnchor = true,
top = 25,
bottomAnchor = false,
bottom = 50,
Font = "black_ops_4" -- font is inside the folder Fonts, in bo3 root/share/raw named black_ops_4.ttf
}
CoD.ZoneAnnouncerPos = ElemPos
--CoD.ZoneWriter.new(HudRef, InstanceRef, announcer_hud_fade_in, announcer_hud_fade_out, announcer_hud_duration, announcer_hide_after_x_seconds)
local ZA = CoD.ZoneWriter.new(HudRef, InstanceRef, 2, 2, 5, true)
ZA:setLeftRight(true, true, 0, 0)
ZA:setTopBottom(true, true, 0, 0)
HudRef:addElement(ZA)
4)
Open Radiant and Select your zone and add a kvp for sound or name :
Sound = script_sound
value = name of aliases
Name = script_string
value = string (name of the zone)
5)
if you want to add a global name for zones with the same targetname , use this line on your .gsc :
T8ZA::set_name_for_undefined_zones("targetname of zone", "name of zone");
6)
Open _zm_T8_ZA.gsc and edit variable with the lua values :
CoD.ZoneWriter.new(HudRef, InstanceRef, fade_in, fade_out, hud_duration, boolean_hide_after_x_seconds)
level.announcer_hide_after_x_seconds = boolean_hide_after_x_seconds;
level.announcer_hud_duration = hud_duration;
level.announcer_hud_fade_in = fade_in;
level.announcer_hud_fade_out = fade_out;
Compile, Link n Run !
<h3>Credits</h3>
**Credits**
SethNorris : GSC; CSC
QuentinFTL : GSC; CSC; LUA
DTZxPorter : L3akMod (allow lua in custom maps)
<h3>Download</h3>
Download
MKD Joker:
Is there a way to increase the font size for this? great work by the way.