Post: GSC Resources
07-13-2016, 06:02 AM #1
EternalHabit
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({}); A Thread For Everything BO2 GSC All In One Place

BO2 Engine Functions & Methods -
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.

GSC Dump
Multiplayer - You must login or register to view this content.
Zombies - You must login or register to view this content.

GSC Menu Bases
You must login or register to view this content.

GSC Editor's & Injector's
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.

Decompiler's
You must login or register to view this content.
You must login or register to view this content.

Other Useful Accessories
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.
You must login or register to view this content.

Multiplayer Lists
FX List - You must login or register to view this content.
Shader List - You must login or register to view this content.
Weapon List - You must login or register to view this content.
Model List - You must login or register to view this content.
Vehicles - You must login or register to view this content.
Turrets - You must login or register to view this content.

Zombies Lists
FX List - You must login or register to view this content.
Model List - You must login or register to view this content.
My Personal Shader List - You must login or register to view this content.
Weapon List - You must login or register to view this content.

MP & ZM Lists
Character Bones - You must login or register to view this content.
DVARS List - You must login or register to view this content.
Sound List - You must login or register to view this content.
Visions - You must login or register to view this content.
Fonts - You must login or register to view this content.
Buttons Codes - You must login or register to view this content.
Animations - You must login or register to view this content.


Updated Overflow Fix
    init()
{
level.strings = [];

level thread onPlayerConnect();
}

onPlayerSpawned()
{
self endon("disconnect");
level endon("game_ended");

for(;Winky Winky
{
self waittill("spawned_player");

if(!isDefined(level.overflowFixThreaded))
{
level.overflowFixThreaded = true;
level thread overflowFix();
}
}
}

recreateMenuText()
{
//re-create your text here using setSafeText, no need for calling "submenu" if using sharks base
}

overflowfix()
{
level endon("game_ended");
level endon("host_migration_begin");

test = level createServerFontString("default", 1);
test setText("xTUL");
test.alpha = 0;

if(GetDvar("g_gametype") == "sd")
limit = 45; //110 with _rank.gsc
else
limit = 55; //115 with _rank.gsc

for(;Winky Winky
{
level waittill("textset");
if(level.strings.size >= limit)
{
test ClearAllTextAfterHudElem();
level.strings = [];//re-building the string array

foreach(player in level.players)
{
if(isDefined(player.hasMenu) && player isVerified())//if the player has the menu and they are verified (change this to work with your menu)
{
if(isDefined(player.menu.open))//if the menu is open
player recreateMenuText();
}
}
}
}
}

setSafeText(text)
{
if (!isInArray(level.strings, text))
{
level.strings[level.strings.size] = text;
self setText(text);
level notify("textset");
}
else
self setText(text);
}


[How To] Set Value w/ Text + Explanation

Basically setValue isn't supposed to have any type of letters in it. But with this code you can do just that. What's the point of this? Well, setValue will never overflow so it's good for zombie counters or anything like that.

    //Example Code
SetvalueWtext()
{
lol = createText("small", 1.5, "CENTER", "CENTER", 0, 0, 1, 1);
lol.label = &"Origin: ";

for(;Winky Winky
{
wait .05;
lol setValue(self getOrigin()[2]);
}
}

createText(font, fontScale, align, relative, x, y, sort, alpha)
{
textElem = self createFontString(font, fontScale);
textElem setPoint(align, relative, x, y);
textElem.sort = sort;
textElem.alpha = alpha;
return textElem;
}
//When overflow fixing, put this inside recreateText or else the text messes up
//lol.label = &"Origin: ";



Credits:
There would be way too many credits to give, if you contributed to this thread somehow. Then you should know who you are.
Last edited by EternalHabit ; 08-24-2017 at 04:25 PM.

The following 28 users say thank you to EternalHabit for this useful post:

/SneakerStreet/, anthonything, anxify, BlueeHasSwag, BoatyMcBoatFace, BullyWiiPlaza, codybenti, CrEaTiiOn_CuTie, DF_AUS, DoraTheKiller97, DrifterTheHomie, HiddenHour, Humble, Im_YouViolateMe, itsSorrow, JustFuSiOn, L33T HAXOR, MozeyModz, Nothingbutbread, ODLeslie, OfficialCoolJay, Pink Guy, ProfoundModz, sandro oliveira, Kronos, TehMerkMods, warcos, zatb15
07-13-2016, 11:06 PM #11
EternalHabit
Former Staff
Originally posted by YouViolateMe View Post
You should add my basic menu maker


I was actually going to but idk if I would call it a resource, since it's catered more towards new gsc coders and not everyone would find it useful. Like you said "If you can understand GSC well, then I doubt you'll ever use this. This program is to help the new guys who have always wanted to create their own menu, but never knew how."

The following user thanked EternalHabit for this useful post:

Im_YouViolateMe
07-13-2016, 11:36 PM #12
Im_YouViolateMe
NextGenUpdate Elite
Originally posted by xTurntUpLobbies View Post
I was actually going to but idk if I would call it a resource, since it's catered more towards new gsc coders and not everyone would find it useful. Like you said "If you can understand GSC well, then I doubt you'll ever use this. This program is to help the new guys who have always wanted to create their own menu, but never knew how."


It could technically go under GSC Editor, but either way it doesn't matter lol.
07-13-2016, 11:40 PM #13
EternalHabit
Former Staff
Originally posted by YouViolateMe View Post
It could technically go under GSC Editor, but either way it doesn't matter lol.


Good point, i'll it add once I get home
07-14-2016, 12:11 PM #14
BullyWiiPlaza
Climbing up the ladder
This was important, thanks. Smile
07-15-2016, 04:21 PM #15
EternalHabit
Former Staff
Updated the thread with some more stuff, and Optimized the Overflow Fix
07-22-2016, 01:04 PM #16
JustFuSiOn
Are you high?
Originally posted by xTurntUpLobbies View Post
Updated the thread with some more stuff, and Optimized the Overflow Fix


The overflow fix doesn't work with your _rank.gsc. When you set the strings limit to 230 it kicks everyone out saying "Server Disconnected", have you got a fix?
Last edited by JustFuSiOn ; 07-22-2016 at 01:06 PM.
07-22-2016, 02:52 PM #17
EternalHabit
Former Staff
Originally posted by JustFuSiOn View Post
The overflow fix doesn't work with your _rank.gsc. When you set the strings limit to 230 it kicks everyone out saying "Server Disconnected", have you got a fix?


Yeah just set to about 100 for now till i figure something out. the reason it's crashing is because the array has a lot of strings in it, and once it clears its too much for the game to handle all at once. You might have to go back to the old overflow fix if you want to use the rank.gsc. But i'll try and fix it
07-22-2016, 04:23 PM #18
JustFuSiOn
Are you high?
Originally posted by xTurntUpLobbies View Post
Yeah just set to about 100 for now till i figure something out. the reason it's crashing is because the array has a lot of strings in it, and once it clears its too much for the game to handle all at once. You might have to go back to the old overflow fix if you want to use the rank.gsc. But i'll try and fix it


Sure, could you let me know if you fix it? Thanks.
07-22-2016, 05:51 PM #19
EternalHabit
Former Staff
Originally posted by JustFuSiOn View Post
Sure, could you let me know if you fix it? Thanks.


You really don't even need the _rank.gsc with this version of the overflow fix. The _rank.gsc is better for people that don't want to add an overflow fix.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo