CabConModding
Facebook
Twitter
youtube
Discord
Contact us
RSS
Menu
CabConModding
Home
New
Top
Premium
Rules
FAQ - Frequently Asked Questions
Games
Fornite
Call of Duty: Black Ops 3
Clash of Clans
Grand Theft Auto 5
Apex Legends
Assassin’s Creed Origins
Forums
Premium
Latest posts
What's new
Latest posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Log in
Register
What's new
Premium
Latest posts
Menu
Log in
Register
Navigation
Install the app
Install
More options
Dark Theme
Contact us
Close Menu
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
Help with porting a Black Ops 3 GSC Mod Menu to Black Ops 2?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="JayCoder" data-source="post: 25420" data-attributes="member: 11522"><p>still getting script errors "9" i looked i don't see anything wrong</p><p></p><p>[CODE]MST()</p><p>{ </p><p> if (self.human == true)</p><p> {</p><p> self MM("^8S^7urvivor's: ^8S^7HOP", undefined);</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 0, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 1, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 2, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 3, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 4, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 5, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 6, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 7, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 8, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 9, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 10, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 11, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8S^7urvivor's: ^8S^7HOP", 12, "nothing", ::Test, "Nothing Added Atm");</p><p> //example of subs: self MO("^8S^7urvivor's: ^8S^7HOP", 4, "nothing", &SML, "Menu");</p><p> }</p><p> if (player.zombie == true)</p><p> {</p><p> self MM("^8I^7nfected: ^8S^7HOP", undefined);</p><p> self MO("^8I^7nfected: ^8S^7HOP", 0, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 1, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 2, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 3, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 4, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 5, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 6, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 7, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 8, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 9, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 10, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 11, "nothing", ::Test, "Nothing Added Atm");</p><p> self MO("^8I^7nfected: ^8S^7HOP", 12, "nothing", ::Test, "Nothing Added Atm");</p><p> }</p><p>} </p><p>Test(TestMessage)</p><p>{</p><p> iprintln(TestMessage);</p><p>}</p><p>MM(Menu, Parent)</p><p>{</p><p> self.Void.ScriptMenu["GetMenu"] = Menu;</p><p> self.Void.ScriptMenu["MenuCount"] = 0;</p><p> self.Void.ScriptMenu["MenuPrevious"][Menu] = Parent;</p><p> self.Void.ScriptMenu["o_index"][Menu] = 0;</p><p> self.Void.ScriptMenu["s_index"][Menu] = 0;</p><p> self.Void.ScriptMenu["l_index"][Menu] = 0;</p><p>}</p><p></p><p>MO(Menu, Index, Text, Func, Input, Input2)</p><p>{</p><p> self.Void.ScriptMenu["MenuText"][Menu][Index] = Text;</p><p> self.Void.ScriptMenu["MenuFunction"][Menu][Index] = Func;</p><p> self.Void.ScriptMenu["MenuInput"][Menu][Index] = Input;</p><p> self.Void.ScriptMenu["MenuInput2"][Menu][Index] = Input2;</p><p></p><p> if(Index < level.lastIndex)</p><p> self.Void.ScriptMenu["l_index"][Menu] = Index;</p><p> else</p><p> self.Void.ScriptMenu["l_index"][Menu] = level.lastIndex;</p><p>}</p><p></p><p>SML(input)</p><p>{</p><p> self.Void.ScriptMenu["MRV"] = input;</p><p> self.Void.ScriptMenu["Title"] destroy();</p><p> for(i = 0; i < self.Void.ScriptMenu["Text"].size; i++)</p><p> self.Void.ScriptMenu["Text"][i] destroy();</p><p></p><p> self ML(input);</p><p>}</p><p></p><p>ML(menu)</p><p>{</p><p></p><p> self freezeControls(false);</p><p></p><p> self.Void.ScriptMenu["MRV"] = menu;</p><p> self.Void.ScriptMenu["Title"] = self createText("LEFT", "TOP", 195, 30, "default", 2.3, 3, (1, 1, 1), 1, menu);</p><p></p><p> f_index = self.Void.ScriptMenu["o_index"][menu] - (self.Void.ScriptMenu["l_index"][menu] - (self.Void.ScriptMenu["l_index"][menu] - self.Void.ScriptMenu["s_index"][menu]));</p><p> l_index = self.Void.ScriptMenu["o_index"][menu] + self.Void.ScriptMenu["l_index"][menu] - self.Void.ScriptMenu["s_index"][menu];</p><p></p><p> index = 0;</p><p> for(i = f_index; i < l_index + 1; i++)</p><p> {</p><p> self.Void.ScriptMenu["Text"][index] = self createText("LEFT", "TOP", 190, 60 + (index * 15.6), "default", 1.3, 3, (1, 1, 1), 1, self.Void.ScriptMenu["MenuText"][menu][i]);</p><p> index++;</p><p> }</p><p> self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][menu] ].y + 1);</p><p>}</p><p></p><p>elemMoveY(time, input)</p><p>{</p><p> self moveOverTime(time);</p><p> self.y = input;</p><p>}</p><p></p><p>IHD()</p><p>{</p><p> for(;;)</p><p> {</p><p> self waittill("death");</p><p> self MenuIsClosing();</p><p> }</p><p>}</p><p></p><p>MenuIsClosing()</p><p>{</p><p> self setClientUIVisibilityFlag( "hud_visible", 1 );</p><p> self setClientUIVisibilityFlag( "weapon_hud_visible", 1 );</p><p> self.Void.ShaderElement["Background"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["Scrollbar"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderLeft"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderRight"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderDown"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderLabel"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderTop"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["Info1"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["Info2"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["Info3"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["Info4"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["Info5"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["Info6"] elemFade(.5, 0);</p><p></p><p> for(i = 0; i < self.Void.ScriptMenu["Text"].size; i++)</p><p> self.Void.ScriptMenu["Text"][i] destroy();</p><p></p><p> wait 0.05;</p><p> self.MIO = false;</p><p>}</p><p></p><p>MenuIsClosing()</p><p>{</p><p> self setClientUIVisibilityFlag( "hud_visible", 1 );</p><p> self setClientUIVisibilityFlag( "weapon_hud_visible", 1 );</p><p> self.Void.ShaderElement["Background"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["Scrollbar"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderLeft"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderRight"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderDown"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderLabel"] elemFade(.5, 0);</p><p> self.Void.ShaderElement["BorderTop"] elemFade(.5, 0);</p><p> self.Void.ScriptMenu["Title"] destroy();</p><p></p><p> for(i = 0; i < self.Void.ScriptMenu["Text"].size; i++)</p><p> self.Void.ScriptMenu["Text"][i] destroy();</p><p></p><p> wait 0.05;</p><p> self.MIO = false;</p><p>}</p><p></p><p>createRectangle(align, relative, x, y, width, height, color, sort, alpha, shader)</p><p>{</p><p> uiElement = newClientHudElem( self );</p><p> uiElement.elemType = "bar";</p><p> uiElement.width = width;</p><p> uiElement.height = height;</p><p> uiElement.xOffset = 0;</p><p> uiElement.yOffset = 0;</p><p> uiElement.hidewheninmenu = true;</p><p> uiElement.children = [];</p><p> uiElement.sort = sort;</p><p> uiElement.color = color;</p><p> uiElement.alpha = alpha;</p><p> uiElement hud::setParent( level.uiParent );</p><p> uiElement setShader( shader, width , height );</p><p> uiElement.hidden = false;</p><p> uiElement hud::setPoint(align,relative,x,y);</p><p> return uiElement;</p><p>}</p><p></p><p>LoadShaders()</p><p>{</p><p> //MainHudBox...</p><p> // SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)</p><p> //function SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)//60</p><p> //function createRectangle(align, relative, x, y, width, height, color, sort, alpha, shader)</p><p> self.Void.ShaderElement["Background"] = self createRectangle("LEFT", "TOP", 180, 125, 150, 230, (1, 0, 0), 0, 0, "white");//000</p><p> self.Void.ShaderElement["Scrollbar"] = self createRectangle("LEFT", "TOP", 180, 60, 150, 15, (1, 0, 0), 1, 0, "white");//100</p><p> self.Void.ShaderElement["BorderRight"] = self createRectangle("LEFT", "TOP", 328, 125, 3, 230, (1, 0, 0), 2, 0, "white");//100</p><p> self.Void.ShaderElement["BorderLeft"] = self createRectangle("LEFT", "TOP", 180, 125, 3, 230, (1, 0, 0), 2, 0, "white");//100</p><p> self.Void.ShaderElement["BorderDown"] = self createRectangle("LEFT", "TOP", 180, 240, 150, 3, (1, 0, 0), 2, 0, "white");//100</p><p> self.Void.ShaderElement["BorderLabel"] = self createRectangle("LEFT", "TOP", 180, 30, 150, 20, (1, 0, 0), 2, 0, "white");//100</p><p> self.Void.ShaderElement["BorderTop"] = self createRectangle("LEFT", "TOP", 180, 10, 152, 3, (1, 0, 0), 1, 0, "white");//100</p><p>}</p><p></p><p>//self forceHost();</p><p></p><p>IMSBB()</p><p>{</p><p> self endon("disconnect");</p><p> self.MIO = false;</p><p> self.MenuLock = false;</p><p> self.Void = spawnStruct();</p><p> self thread LoadShaders();</p><p> self thread MST();</p><p> self thread IHD();</p><p> while (1)</p><p> {</p><p> if(self MeleeButtonPressed() && self AdsButtonPressed() && self.MIO == false)</p><p> {</p><p> if(self.MenuLock == false)</p><p> {</p><p> self MenuIsOpening();</p><p> self ML("^8S^7urvivor's: ^8S^7HOP");</p><p> wait 0.5;</p><p> }</p><p> if(self.MenuLock == true)</p><p> {</p><p> self iprintlnbold("^7Menu: ^1Locked");</p><p> }</p><p> }</p><p> else if(self MeleeButtonPressed() && self.MIO == true)</p><p> {</p><p> if(isDefined(self.Void.ScriptMenu["MenuPrevious"][self.Void.ScriptMenu["MRV"]]))</p><p> {</p><p> self SML(self.Void.ScriptMenu["MenuPrevious"][self.Void.ScriptMenu["MRV"]]);</p><p> }</p><p> else</p><p> {</p><p> self MenuIsClosing();</p><p> }</p><p> wait 0.5;</p><p> }</p><p> else if (self AdsButtonPressed() && self.MIO == true)</p><p> {</p><p> parent = self.Void.ScriptMenu["MRV"];</p><p> self.Void.ScriptMenu["o_index"][parent]--;</p><p> if(self.Void.ScriptMenu["o_index"][parent] < 0)</p><p> {</p><p> self.Void.ScriptMenu["o_index"][parent] = self.Void.ScriptMenu["MenuText"][parent].size - 1;</p><p> self.Void.ScriptMenu["s_index"][parent] = self.Void.ScriptMenu["l_index"][parent];</p><p></p><p> index = 0;</p><p> last_index = self.Void.ScriptMenu["l_index"][parent];</p><p> for(i = self.Void.ScriptMenu["o_index"][parent] - last_index; i < self.Void.ScriptMenu["MenuText"][parent].size; i++)</p><p> {</p><p> self.Void.ScriptMenu["Text"][index] setText(self.Void.ScriptMenu["MenuText"][parent][i]);</p><p> index++;</p><p> }</p><p> self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][parent] ].y);</p><p> }</p><p> else</p><p> {</p><p> if(self.Void.ScriptMenu["s_index"][parent] == 0)</p><p> {</p><p> index = 0;</p><p> last_index = self.Void.ScriptMenu["l_index"][parent];</p><p> for(i = self.Void.ScriptMenu["o_index"][parent]; i < self.Void.ScriptMenu["o_index"][parent] + last_index + 1; i++)</p><p> {</p><p> self.Void.ScriptMenu["Text"][index] setText(self.Void.ScriptMenu["MenuText"][parent][i]);</p><p> index++;</p><p> }</p><p> }</p><p> else</p><p> {</p><p> self.Void.ScriptMenu["s_index"][parent]--;</p><p> self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][parent] ].y);</p><p> }</p><p> }</p><p> wait.2;</p><p> }</p><p> else if (self AttackButtonpressed() && self.MIO == true)</p><p> {</p><p> parent = self.Void.ScriptMenu["MRV"];</p><p> self.Void.ScriptMenu["o_index"][parent]++;</p><p> if(self.Void.ScriptMenu["o_index"][parent] > self.Void.ScriptMenu["MenuText"][parent].size - 1)</p><p> {</p><p> self.Void.ScriptMenu["o_index"][parent] = 0;</p><p> self.Void.ScriptMenu["s_index"][parent] = 0;</p><p></p><p> for(i = 0; i < self.Void.ScriptMenu["l_index"][parent] + 1; i++)</p><p> self.Void.ScriptMenu["Text"][i] setText(self.Void.ScriptMenu["MenuText"][parent][i]);</p><p> self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][parent] ].y);</p><p> }</p><p> else</p><p> {</p><p> if(self.Void.ScriptMenu["s_index"][parent] == self.Void.ScriptMenu["l_index"][parent])</p><p> {</p><p> index = 0;</p><p> last_index = self.Void.ScriptMenu["l_index"][parent];</p><p> for(i = self.Void.ScriptMenu["o_index"][parent] - last_index; i < self.Void.ScriptMenu["o_index"][parent] + 1; i++)</p><p> {</p><p> self.Void.ScriptMenu["Text"][index] setText(self.Void.ScriptMenu["MenuText"][parent][i]);</p><p> index++;</p><p> }</p><p> }</p><p> else</p><p> {</p><p> self.Void.ScriptMenu["s_index"][parent]++;</p><p> self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][parent] ].y);</p><p> }</p><p> }</p><p> wait.2;</p><p> }</p><p> else if(self UseButtonPressed() && self.MIO == true)</p><p> {</p><p> self thread [[self.Void.ScriptMenu["MenuFunction"][self.Void.ScriptMenu["MRV"]][self.Void.ScriptMenu["o_index"][self.Void.ScriptMenu["MRV"]]]]](self.Void.ScriptMenu["MenuInput"][self.Void.ScriptMenu["MRV"]][self.Void.ScriptMenu["o_index"][self.Void.ScriptMenu["MRV"]]]);</p><p> self.Void.ShaderElement["Scrollbar"] scaleOverTime(0.2, 5, 15);</p><p> wait 0.5;</p><p> self.Void.ShaderElement["Scrollbar"] scaleOverTime(0.2, 150, 15);</p><p> wait 0.5;</p><p> }</p><p> wait 0.05;</p><p> }</p><p>}</p><p>NethierHORZ()</p><p>{</p><p>//Nothing atm</p><p>}</p><p>HUMAN100()</p><p>{</p><p> player = level.players[self.Void.ScriptMenu["ClientIndex"]];</p><p> player NethierHORZ();</p><p> player.zombie = false;</p><p> player.human = true;</p><p> self iPrintln( player.name + " Is A Human" );</p><p>}</p><p></p><p>ZOMBIE100()</p><p>{</p><p> player = level.players[self.Void.ScriptMenu["ClientIndex"]];</p><p> player NethierHORZ();</p><p> player.zombie = true;</p><p> player.human = false;</p><p> self iPrintln( player.name + " Is A Zombie" );</p><p>}</p><p></p><p></p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="JayCoder, post: 25420, member: 11522"] still getting script errors "9" i looked i don't see anything wrong [CODE]MST() { if (self.human == true) { self MM("^8S^7urvivor's: ^8S^7HOP", undefined); self MO("^8S^7urvivor's: ^8S^7HOP", 0, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 1, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 2, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 3, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 4, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 5, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 6, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 7, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 8, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 9, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 10, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 11, "nothing", ::Test, "Nothing Added Atm"); self MO("^8S^7urvivor's: ^8S^7HOP", 12, "nothing", ::Test, "Nothing Added Atm"); //example of subs: self MO("^8S^7urvivor's: ^8S^7HOP", 4, "nothing", &SML, "Menu"); } if (player.zombie == true) { self MM("^8I^7nfected: ^8S^7HOP", undefined); self MO("^8I^7nfected: ^8S^7HOP", 0, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 1, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 2, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 3, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 4, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 5, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 6, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 7, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 8, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 9, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 10, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 11, "nothing", ::Test, "Nothing Added Atm"); self MO("^8I^7nfected: ^8S^7HOP", 12, "nothing", ::Test, "Nothing Added Atm"); } } Test(TestMessage) { iprintln(TestMessage); } MM(Menu, Parent) { self.Void.ScriptMenu["GetMenu"] = Menu; self.Void.ScriptMenu["MenuCount"] = 0; self.Void.ScriptMenu["MenuPrevious"][Menu] = Parent; self.Void.ScriptMenu["o_index"][Menu] = 0; self.Void.ScriptMenu["s_index"][Menu] = 0; self.Void.ScriptMenu["l_index"][Menu] = 0; } MO(Menu, Index, Text, Func, Input, Input2) { self.Void.ScriptMenu["MenuText"][Menu][Index] = Text; self.Void.ScriptMenu["MenuFunction"][Menu][Index] = Func; self.Void.ScriptMenu["MenuInput"][Menu][Index] = Input; self.Void.ScriptMenu["MenuInput2"][Menu][Index] = Input2; if(Index < level.lastIndex) self.Void.ScriptMenu["l_index"][Menu] = Index; else self.Void.ScriptMenu["l_index"][Menu] = level.lastIndex; } SML(input) { self.Void.ScriptMenu["MRV"] = input; self.Void.ScriptMenu["Title"] destroy(); for(i = 0; i < self.Void.ScriptMenu["Text"].size; i++) self.Void.ScriptMenu["Text"][i] destroy(); self ML(input); } ML(menu) { self freezeControls(false); self.Void.ScriptMenu["MRV"] = menu; self.Void.ScriptMenu["Title"] = self createText("LEFT", "TOP", 195, 30, "default", 2.3, 3, (1, 1, 1), 1, menu); f_index = self.Void.ScriptMenu["o_index"][menu] - (self.Void.ScriptMenu["l_index"][menu] - (self.Void.ScriptMenu["l_index"][menu] - self.Void.ScriptMenu["s_index"][menu])); l_index = self.Void.ScriptMenu["o_index"][menu] + self.Void.ScriptMenu["l_index"][menu] - self.Void.ScriptMenu["s_index"][menu]; index = 0; for(i = f_index; i < l_index + 1; i++) { self.Void.ScriptMenu["Text"][index] = self createText("LEFT", "TOP", 190, 60 + (index * 15.6), "default", 1.3, 3, (1, 1, 1), 1, self.Void.ScriptMenu["MenuText"][menu][i]); index++; } self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][menu] ].y + 1); } elemMoveY(time, input) { self moveOverTime(time); self.y = input; } IHD() { for(;;) { self waittill("death"); self MenuIsClosing(); } } MenuIsClosing() { self setClientUIVisibilityFlag( "hud_visible", 1 ); self setClientUIVisibilityFlag( "weapon_hud_visible", 1 ); self.Void.ShaderElement["Background"] elemFade(.5, 0); self.Void.ShaderElement["Scrollbar"] elemFade(.5, 0); self.Void.ShaderElement["BorderLeft"] elemFade(.5, 0); self.Void.ShaderElement["BorderRight"] elemFade(.5, 0); self.Void.ShaderElement["BorderDown"] elemFade(.5, 0); self.Void.ShaderElement["BorderLabel"] elemFade(.5, 0); self.Void.ShaderElement["BorderTop"] elemFade(.5, 0); self.Void.ShaderElement["Info1"] elemFade(.5, 0); self.Void.ShaderElement["Info2"] elemFade(.5, 0); self.Void.ShaderElement["Info3"] elemFade(.5, 0); self.Void.ShaderElement["Info4"] elemFade(.5, 0); self.Void.ShaderElement["Info5"] elemFade(.5, 0); self.Void.ShaderElement["Info6"] elemFade(.5, 0); for(i = 0; i < self.Void.ScriptMenu["Text"].size; i++) self.Void.ScriptMenu["Text"][i] destroy(); wait 0.05; self.MIO = false; } MenuIsClosing() { self setClientUIVisibilityFlag( "hud_visible", 1 ); self setClientUIVisibilityFlag( "weapon_hud_visible", 1 ); self.Void.ShaderElement["Background"] elemFade(.5, 0); self.Void.ShaderElement["Scrollbar"] elemFade(.5, 0); self.Void.ShaderElement["BorderLeft"] elemFade(.5, 0); self.Void.ShaderElement["BorderRight"] elemFade(.5, 0); self.Void.ShaderElement["BorderDown"] elemFade(.5, 0); self.Void.ShaderElement["BorderLabel"] elemFade(.5, 0); self.Void.ShaderElement["BorderTop"] elemFade(.5, 0); self.Void.ScriptMenu["Title"] destroy(); for(i = 0; i < self.Void.ScriptMenu["Text"].size; i++) self.Void.ScriptMenu["Text"][i] destroy(); wait 0.05; self.MIO = false; } createRectangle(align, relative, x, y, width, height, color, sort, alpha, shader) { uiElement = newClientHudElem( self ); uiElement.elemType = "bar"; uiElement.width = width; uiElement.height = height; uiElement.xOffset = 0; uiElement.yOffset = 0; uiElement.hidewheninmenu = true; uiElement.children = []; uiElement.sort = sort; uiElement.color = color; uiElement.alpha = alpha; uiElement hud::setParent( level.uiParent ); uiElement setShader( shader, width , height ); uiElement.hidden = false; uiElement hud::setPoint(align,relative,x,y); return uiElement; } LoadShaders() { //MainHudBox... // SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha) //function SetShader(align, relative, x, y, width, height, colour, shader, sort, alpha)//60 //function createRectangle(align, relative, x, y, width, height, color, sort, alpha, shader) self.Void.ShaderElement["Background"] = self createRectangle("LEFT", "TOP", 180, 125, 150, 230, (1, 0, 0), 0, 0, "white");//000 self.Void.ShaderElement["Scrollbar"] = self createRectangle("LEFT", "TOP", 180, 60, 150, 15, (1, 0, 0), 1, 0, "white");//100 self.Void.ShaderElement["BorderRight"] = self createRectangle("LEFT", "TOP", 328, 125, 3, 230, (1, 0, 0), 2, 0, "white");//100 self.Void.ShaderElement["BorderLeft"] = self createRectangle("LEFT", "TOP", 180, 125, 3, 230, (1, 0, 0), 2, 0, "white");//100 self.Void.ShaderElement["BorderDown"] = self createRectangle("LEFT", "TOP", 180, 240, 150, 3, (1, 0, 0), 2, 0, "white");//100 self.Void.ShaderElement["BorderLabel"] = self createRectangle("LEFT", "TOP", 180, 30, 150, 20, (1, 0, 0), 2, 0, "white");//100 self.Void.ShaderElement["BorderTop"] = self createRectangle("LEFT", "TOP", 180, 10, 152, 3, (1, 0, 0), 1, 0, "white");//100 } //self forceHost(); IMSBB() { self endon("disconnect"); self.MIO = false; self.MenuLock = false; self.Void = spawnStruct(); self thread LoadShaders(); self thread MST(); self thread IHD(); while (1) { if(self MeleeButtonPressed() && self AdsButtonPressed() && self.MIO == false) { if(self.MenuLock == false) { self MenuIsOpening(); self ML("^8S^7urvivor's: ^8S^7HOP"); wait 0.5; } if(self.MenuLock == true) { self iprintlnbold("^7Menu: ^1Locked"); } } else if(self MeleeButtonPressed() && self.MIO == true) { if(isDefined(self.Void.ScriptMenu["MenuPrevious"][self.Void.ScriptMenu["MRV"]])) { self SML(self.Void.ScriptMenu["MenuPrevious"][self.Void.ScriptMenu["MRV"]]); } else { self MenuIsClosing(); } wait 0.5; } else if (self AdsButtonPressed() && self.MIO == true) { parent = self.Void.ScriptMenu["MRV"]; self.Void.ScriptMenu["o_index"][parent]--; if(self.Void.ScriptMenu["o_index"][parent] < 0) { self.Void.ScriptMenu["o_index"][parent] = self.Void.ScriptMenu["MenuText"][parent].size - 1; self.Void.ScriptMenu["s_index"][parent] = self.Void.ScriptMenu["l_index"][parent]; index = 0; last_index = self.Void.ScriptMenu["l_index"][parent]; for(i = self.Void.ScriptMenu["o_index"][parent] - last_index; i < self.Void.ScriptMenu["MenuText"][parent].size; i++) { self.Void.ScriptMenu["Text"][index] setText(self.Void.ScriptMenu["MenuText"][parent][i]); index++; } self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][parent] ].y); } else { if(self.Void.ScriptMenu["s_index"][parent] == 0) { index = 0; last_index = self.Void.ScriptMenu["l_index"][parent]; for(i = self.Void.ScriptMenu["o_index"][parent]; i < self.Void.ScriptMenu["o_index"][parent] + last_index + 1; i++) { self.Void.ScriptMenu["Text"][index] setText(self.Void.ScriptMenu["MenuText"][parent][i]); index++; } } else { self.Void.ScriptMenu["s_index"][parent]--; self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][parent] ].y); } } wait.2; } else if (self AttackButtonpressed() && self.MIO == true) { parent = self.Void.ScriptMenu["MRV"]; self.Void.ScriptMenu["o_index"][parent]++; if(self.Void.ScriptMenu["o_index"][parent] > self.Void.ScriptMenu["MenuText"][parent].size - 1) { self.Void.ScriptMenu["o_index"][parent] = 0; self.Void.ScriptMenu["s_index"][parent] = 0; for(i = 0; i < self.Void.ScriptMenu["l_index"][parent] + 1; i++) self.Void.ScriptMenu["Text"][i] setText(self.Void.ScriptMenu["MenuText"][parent][i]); self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][parent] ].y); } else { if(self.Void.ScriptMenu["s_index"][parent] == self.Void.ScriptMenu["l_index"][parent]) { index = 0; last_index = self.Void.ScriptMenu["l_index"][parent]; for(i = self.Void.ScriptMenu["o_index"][parent] - last_index; i < self.Void.ScriptMenu["o_index"][parent] + 1; i++) { self.Void.ScriptMenu["Text"][index] setText(self.Void.ScriptMenu["MenuText"][parent][i]); index++; } } else { self.Void.ScriptMenu["s_index"][parent]++; self.Void.ShaderElement["Scrollbar"] elemMoveY(0.2, self.Void.ScriptMenu["Text"][self.Void.ScriptMenu["s_index"][parent] ].y); } } wait.2; } else if(self UseButtonPressed() && self.MIO == true) { self thread [[self.Void.ScriptMenu["MenuFunction"][self.Void.ScriptMenu["MRV"]][self.Void.ScriptMenu["o_index"][self.Void.ScriptMenu["MRV"]]]]](self.Void.ScriptMenu["MenuInput"][self.Void.ScriptMenu["MRV"]][self.Void.ScriptMenu["o_index"][self.Void.ScriptMenu["MRV"]]]); self.Void.ShaderElement["Scrollbar"] scaleOverTime(0.2, 5, 15); wait 0.5; self.Void.ShaderElement["Scrollbar"] scaleOverTime(0.2, 150, 15); wait 0.5; } wait 0.05; } } NethierHORZ() { //Nothing atm } HUMAN100() { player = level.players[self.Void.ScriptMenu["ClientIndex"]]; player NethierHORZ(); player.zombie = false; player.human = true; self iPrintln( player.name + " Is A Human" ); } ZOMBIE100() { player = level.players[self.Void.ScriptMenu["ClientIndex"]]; player NethierHORZ(); player.zombie = true; player.human = false; self iPrintln( player.name + " Is A Zombie" ); } [/CODE] [/QUOTE]
Verification
Post reply
Forums
Gaming
Call of Duty Classics
Call of Duty: Black Ops 2
Call of Duty: Black Ops 2 Mods and Scripts
Call of Duty: Black Ops 2 Scripts
Call of Duty: Black Ops 2 Scripts Questions
Call of Duty: Black Ops 2 Answered Questions
Help with porting a Black Ops 3 GSC Mod Menu to Black Ops 2?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…
Top