Tusta

Head Member
Donator
Messages
13
Points
164
GSC List

GSC List for Black Ops 2

:VerTical: Hello CabConModding :VerTical:
I'll show you my GSC resources today.
Important : Give me Credits, Please!

You can found it too on my Pastebin:
>
You have to be logged in to view links Log in or register now.
<

Hud Utilities

How to call Example:

PHP:
self createShader("white", "CENTER","CENTER", 0, 0, 200, 300, ( 0, 0, 0 ), .5, 1);
self drawText("Hello World!", "default", 1.5, "CENTER","CENTER", 0, 0, ( 0, 0, 0 ), .5, 1);
self drawValue(0, "default", 1.5, "CENTER","CENTER", 0, 0, ( 0, 0, 0 ), .5, 1);
The Code:

PHP:
createShader(shader, align, relative, x, y, width, height, color, alpha, sort)
{
    hud = newClientHudElem(self);
    hud.elemtype = "icon";
    hud.color = color;
    hud.alpha = alpha;
    hud.sort = sort;
    hud.children = [];
    hud setParent(level.uiParent);
    hud setShader(shader, width, height);
    hud setPoint(align, relative, x, y);
    hud.hideWhenInMenu = true;
    return hud;
}

drawText(text, font, fontScale, align, relative, x, y, color, alpha, sort)
{
    hud = self createFontString(font, fontScale);
    hud setPoint(align, relative, x, y);
    hud.color = color;
    hud.alpha = alpha;
    hud.hideWhenInMenu = true;
    hud.sort = sort;
    hud.foreground = true;
    hud setText(text);
    return hud;
}

drawValue(value, font, fontScale, align, relative, x, y, color, alpha, sort)
{
    hud = self createFontString(font, fontScale);
    hud setPoint( align, relative, x, y );
    hud.color = color;
    hud.alpha = alpha;
    hud.sort = sort;
    hud.alpha = alpha;
    hud setValue(value);
    hud.foreground = true;
    hud.hideWhenInMenu = true;
    return hud;
}
ToggleScript

How to call Example:

PHP:
self thread ToggleScript( "Godmode", self.Godmode );
The Code:

PHP:
ToggleScript( Function, var ){
    if( Function )
    {
        if( var )
            self iprintln( Function+" ^2ON" );
        else
            self iprintln( Function+" ^1OFF" );
    }
}
Prestige Editor

How to call Example:

PHP:
self thread init_prestige();
The Code:

PHP:
init_prestige()
{
    self endon ( "disconnect" );
    self endon ( "quit_editor" );
 
    //self Call_Close(); Your close menu option!
    struct = spawnstruct ();
    struct.list =  strtok ( "rank_com,rank_prestige01,rank_prestige02,rank_prestige03,rank_prestige04,rank_prestige05,rank_prestige06,rank_prestige07,rank_prestige08,rank_prestige09,rank_prestige10,rank_prestige11", "," );
    struct.index = int ( 0 );
    struct.hud [ 0 ] = createShader ( struct.list [ struct.index ], "CENTER", "CENTER", 0, 0, 50, 50, ( 1, 1, 1 ), 1, 2 );
    struct.hud [ 1 ] = drawText ( "[{+attack}]/[{+speed_throw}] Prestige Value, [{+usereload}] Use Value, Cancel [{+melee}]", "default", 1.5, "CENTER", "CENTER", 0, 80, ( 1, 1, 1 ), 1, 2);
    struct.hud [ 2 ] = drawText ( "Prestige Editor", "default", 2.0, "LEFT", "CENTER", -140, -80, ( 1, 1, 1 ), 1, 2);
    struct.hud [ 3 ] = createShader ( "white", "CENTER", "CENTER", 0, 0, 300, 200, ( 0, 0, 0 ), .5, 1 );
 
    wait .3;
    while ( isDefined ( struct ) )
    {
 
        if ( self AttackButtonPressed () )
        {
            struct.index++;
 
            if( struct.index > 11 )
                struct.index = int ( 0 );
 
            struct.hud [ 0 ] setShader ( struct.list [ struct.index ], 50, 50 );
            wait .1;
        }
 
        if ( self AdsButtonPressed () )
        {
            struct.index--;
 
            if( struct.index < int ( 0 ) )
                struct.index = 11;
 
            struct.hud [ 0 ] setShader ( struct.list [ struct.index ], 50, 50 );
            wait .1;
        }
 
        if ( self usebuttonpressed () )
        {
            self.pres [ "prestige" ] = struct.index;
            self setdstat ( "playerstatslist", "plevel", "StatValue", struct.index );
            self iprintln ( "Prestige set to ^2" + struct.index );
            wait .3;
            break;
        }
 
        if ( self MeleeButtonPressed() ) break;
 
        wait .05;
    }
    foreach ( hud in struct.hud )
    hud destroy ();
 
    struct = undefined;
    self notify ( "quit_editor" );
}
Model Changer

How to call Example:

PHP:
self thread init_modelchanger();
The Code:

PHP:
init_modelchanger()
{
    self endon ( "disconnect" );
    self endon ( "Quit_Changer" );
 
    self setClientThirdPerson ( true );
    struct = spawnstruct();
   struct.hud [ 0 ] = drawText ( "Press [{+attack}] or [{+speed_throw}] To Change Your Model, Cancel [{+melee}]", "default", 1.7, "CENTER", "CENTER", 0, 200, ( 1, 1, 1 ), 1, 2);
    struct.hud [ 1 ] = createShader( "white", "CENTER", "CENTER", 0, 200, 1000, 20, ( 0, 0, 0 ), .5, 1);
    struct.list = strtok ( "spread;default;mg;rifle;smg", ";" ); //Thx To Patrick ( Extinct )!
    struct.index = int ( 0 );
 
    wait .3;
    while ( isDefined ( struct ) )
    {
        if ( self AttackButtonPressed () )
        {
            struct.index++;
 
            if( struct.index > 4 )
                struct.index = int ( 0 );
 
            self [[ game[ "set_player_model" ][ self.team ][ struct.list [ struct.index ] ] ]]();
            wait .1;
        }
 
        if ( self AdsButtonPressed () )
        {
            struct.index--;
 
            if( struct.index < int ( 0 ) )
                struct.index = 4;
 
            self [[ game[ "set_player_model" ][ self.team ][ struct.list [ struct.index ] ] ]]();
            wait .1;
        }
 
        if ( self MeleeButtonPressed() ) break;
 
        wait .05;
    }
 
    self setClientThirdPerson ( false );
 
    foreach ( hud in struct.hud )
    hud destroy ();
 
    struct = undefined;
    self notify ( "Quit_Changer" );
}

View Model Changer


How to call Example:

PHP:
self thread init_viewModelChanger();
The Code:

PHP:
init_viewModelChanger()
{
    self endon ( "disconnect" );
    level endon ( "Quit_Changer" );
 
    struct = spawnstruct ();
    struct.hud [ 0 ] = drawText ( "Press [{+attack}] or [{+speed_throw}] To Change The view Model", "default", 1.8, "CENTER", "CENTER", 0, 200, ( 1, 1, 1 ), 1, 2);
    struct.hud [ 1 ] = createShader( "white", "CENTER", "CENTER", 0, 200, 1000, 20, ( 0, 0, 0 ), .5, 1);
    struct.index = int ( 0 );
    struct.items = strTok ( "c_mul_mp_cordis_assault_viewhands|c_chn_mp_pla_longsleeve_viewhands|c_usa_mp_isa_assault_viewhands|c_mul_mp_pmc_longsleeve_viewhands|c_usa_mp_fbi_longsleeve_viewhands|c_usa_mp_seal6_longsleeve_viewhands|iw5_viewmodel_usa_sog_standard_arms|iw5_viewmodel_vtn_nva_standard_arms|c_mul_mp_cordis_lmg_viewhands|c_chn_mp_pla_armorsleeve_viewhands|c_usa_mp_isa_lmg_viewhands|c_mul_mp_cordis_shotgun_viewhands|c_usa_mp_isa_shotgun_viewhands|c_mul_mp_pmc_shortsleeve_viewhands|c_usa_mp_seal6_shortsleeve_viewhands|c_mul_mp_cordis_smg_viewhands|c_usa_mp_isa_smg_viewhands|c_usa_mp_fbi_shortsleeve_viewhands|c_mul_mp_cordis_sniper_viewhands|c_usa_mp_isa_sniper_viewhands", "|" );
    wait .3;
    while( isDefined ( struct ) )
    {
        self setViewModel ( struct.items [ struct.index ] );
 
        if ( self adsButtonPressed () ) { wait .1;
            struct.index--; }
 
        if ( self attackButtonPressed () ) { wait .1;
            struct.index++; }
 
        if ( self usebuttonpressed () ) { wait .3;
            break; }
 
        if ( struct.index < 0 )
            struct.index = struct.items.size;
 
        if ( struct.index > struct.items.size )
            struct.index = 0;
 
        wait .05;
    }
    self iprintln ( "Model set to : ^2" + struct.items [ struct.index ] );
 
    foreach( hud in struct.hud )
    hud destroy ();
 
    struct = undefined;
    self notify ( "Quit_Changer" );
}

Control Player


How to call Example:

PHP:
::initalControl, player, "Right" );
::initalControl, player, "Left" );
::initalControl, player, "Front" );
::initalControl, player, "Back" );
The Code:

PHP:
initalControl( player, Called )
{
    level.Pusher = [];
    level.origin = [];
    level.Event  = [];
 
    level.origin = player.origin;
 
    level.Event[ "Right" ] = level.origin + ( 0, -100, 0 );
    level.Event[ "Front" ] = level.origin + ( +100, 0, 0 );
    level.Event[ "Left" ]  = level.origin + ( 0, +100, 0 );
    level.Event[ "Back" ]  = level.origin + ( -100, 0, 0 );
 
    player setOrigin(  level.Event[ Called ] );
 
    self iprintln( player.name + "^7, Moved ^2" + ( level.Event[ Called ] ) );
}

Convert2Meters

How to call Example:


PHP:
self iprintln( Convert2Meters( self.origin, player.origin ) );
The Code:

PHP:
Convert2Meters( Current, Object )
{
    if (isDefined( Current ) && isDefined( Object ))
        return int( distance( current, object ) / ( 100 ) );
}



Get XUID

How to call Example:

PHP:
self.xuid = getXUID();
The Code:
PHP:
getXUID()
{
    if(isDefined( self getxuid(1) ))
        return self getxuid( 1 );
}

Brutal Basic Aimbot

How to call Example:

PHP:
self thread initalAimbot();
The Code:

PHP:
initalAimbot()
{
    self endon( "disconnect" );
    self endon( "death" );
 
    while ( true )
    {
        foreach ( player in level.players )
        {
            if ( isDefined(player) && player != self && isAlive( player ) && player.pers[ "team" ] != self.pers[ "team" ] && self AdsButtonPressed() )
            {
                self setplayerangles( VectorToAngles(( player getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) )) );
                if ( self attackbuttonpressed() )
                    player thread [[ level.callbackPlayerDamage ]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), ( 0, 0, 0), (0, 0, 0), "head", 0, 0 );
            }
        }
        wait .01;
    }
}


Client Tracker

IMPORTANT: Replace some methods for Overflowfix!!!


How to call Example:

PHP:
self thread Tracker();
The Code:

PHP:
Tracker()
{
    if(!isDefined( self.Tracker ))
        self thread initalTracker();
    else {
        self notify( "StopTracking" );
        foreach( Tracker in self.Tracker )
            Tracker Destroy();
        self.Tracker = undefined; }
}

initalTracker()
{
    self endon( "disconnect" );
    self endon( "StopTracking" );
 
    self.Tracker = [];
    self.Tracker[ "Background" ] = self createShader("white", "CENTER", "CENTER", 300, -100, 200, 200, ( 0,0,0 ), .7, 4);
    self.Tracker[ "Text" ] = drawText ( "", "default", 1.5, "CENTER", "CENTER", 300, -150, ( 1, 1, 1 ), 1, 5);
 
    while( true )
    {
        self.Tracker[ "Client" ] = self maps\mp\gametypes\_battlechatter_mp::get_Closest_Player_Enemy();
        if(isDefined( self.Tracker[ "Client" ] ))
            self.Tracker[ "Text" ] setText( "Name : " + self.Tracker[ "Client" ].Name + "^7\nWeapon : " + getWeaponDisplayName( self.Tracker[ "Client" ] getCurrentWeapon() ) + "\nDistance : " + int( distance(self.origin, self.Tracker[ "Client" ].origin) / ( 100 ) ) + "m\n Health : " + self.Tracker[ "Client" ].health + "\nisAlive : " + isAlive(self.Tracker[ "Client" ]) + "\nScore : " + self.Tracker[ "Client" ].pers[ "score" ] );
        else
            self.Tracker[ "Text" ] setText( self.name + "^7, You'r Alone" );
        wait .1;
    }
}


Change Map

How to call Example:


PHP:
self thread changeMap( "Map_name" );
The Code:

PHP:
changeMap( Map )
{
    dvars = strTok( "ls_mapname,mapname,party_mapname,ui_mapname,ui_currentMap,ui_mapname,ui_preview_map,ui_showmap", "," );
    self iprintln( "^2Current Map will be Changed to " + Map );
    wait 1;
    if(isDefined( dvars ))
    {
        foreach( dvar in dvars )
            setDvar( dvar, Map );
        map( Map, false );
    }
}


Spawn Model

How to call Example:
PHP:
spawn_model( "tag_origin", self.origin, self.angles );
The Code:

PHP:
spawn_model( model, origin, angles )
{
    if( !isdefined(model) || !isdefined(origin) )
        return undefined;

    if( !isdefined(angles) )
        angles = (0,0,0);

    spawn = spawn ("script_model",(0,0,0));
    spawn.origin = origin;
    spawn setmodel (model);
    spawn.angles = angles;

    return spawn;
}
Auto Killer

How to call Example:


PHP:
self thread AutoKiller();

The Code:

PHP:
AutoKiller()
{
    if(!isDefined( self.Killer ))
        self thread initalAutoKiller();
    else  {
        self notify( "AutoKiller" );
           self.Killer = undefined;
               self iprintln( "Auto Killer ^1Disabled" ); }
}

initalAutoKiller()
{
    self endon( "disconnect" );
    self endon( "AutoKiller" );
    
    self.Killer = true;
    self iprintln( "Auto Killer ^2Enabled" );
    
    while(isDefined( self.Killer ))
    {
        foreach( player in level.players )
        {
            if( isAlive( player ) && player.team != self.team && isDefined( player ) )
            {
                wait .1;
                self setplayerangles( VectorToAngles(( player getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) )) );
                self setOrigin(  player.origin + ( -50, 0, 0 ) );
                wait .1;
                player thread [[ level.callbackPlayerDamage ]]( self, self, 999, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), ( 0, 0, 0), (0, 0, 0), "head", 0, 0 );
                wait .5;
            }
        }
        wait 1;
    }
}
 
Last edited:

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,432
Points
553
GSC List

GSC List for Black Ops 2


:VerTical: Hello CabConModding :VerTical:
I'll show you my GSC resources today.

You can found it too on my Pastebin:
>
You have to be logged in to view links Log in or register now.
<

ToggleScript


How to call Example:
PHP:
self thread ToggleScript( "Godmode", self.Godmode );
The Code:
PHP:
ToggleScript( Function, var )[/SIZE][/LEFT]
[SIZE=4]
[LEFT]{
    if( Function )
    {
        if( var )
            self iprintln( Function+" ^2ON" );
        else
            self iprintln( Function+" ^1OFF" );
    }
}


Prestige Editor

How to call Example:

PHP:
self thread init_prestige();
The Code:
PHP:
init_prestige()[/SIZE][/LEFT]
[SIZE=4]
[LEFT]{
    self endon ( "disconnect" );
    self endon ( "quit_editor" );
  
    //self Call_Close(); Your close menu option!
    struct = spawnstruct ();  
    struct.list =  strtok ( "rank_com,rank_prestige01,rank_prestige02,rank_prestige03,rank_prestige04,rank_prestige05,rank_prestige06,rank_prestige07,rank_prestige08,rank_prestige09,rank_prestige10,rank_prestige11", "," );
    struct.index = int ( 0 );
    struct.hud [ 0 ] = createShader ( struct.list [ struct.index ], "CENTER", "CENTER", 0, 0, 50, 50, ( 1, 1, 1 ), 1, 2 );
    struct.hud [ 1 ] = drawText ( "[{+attack}]/[{+speed_throw}] Prestige Value, [{+usereload}] Use Value, Cancel [{+melee}]", "default", 1.5, "CENTER", "CENTER", 0, 80, ( 1, 1, 1 ), 1, 2);
    struct.hud [ 2 ] = drawText ( "Prestige Editor", "default", 2.0, "LEFT", "CENTER", -140, -80, ( 1, 1, 1 ), 1, 2);
    struct.hud [ 3 ] = createShader ( "white", "CENTER", "CENTER", 0, 0, 300, 200, ( 0, 0, 0 ), .5, 1 );
  
    wait .3;
    while ( isDefined ( struct ) )
    {
  
        if ( self AttackButtonPressed () )
        {
            struct.index++;
        
            if( struct.index > 11 )
                struct.index = int ( 0 );
            
            struct.hud [ 0 ] setShader ( struct.list [ struct.index ], 50, 50 );
            wait .1;
        }
    
        if ( self AdsButtonPressed () )
        {
            struct.index--;
        
            if( struct.index < int ( 0 ) )
                struct.index = 11;
            
            struct.hud [ 0 ] setShader ( struct.list [ struct.index ], 50, 50 );
            wait .1;
        }
    
        if ( self usebuttonpressed () )
        {
            self.pres [ "prestige" ] = struct.index;
            self setdstat ( "playerstatslist", "plevel", "StatValue", struct.index );
            self iprintln ( "Prestige set to ^2" + struct.index );
            wait .3;
            break;
        }
    
        if ( self MeleeButtonPressed() ) break;
    
        wait .05;
    }
    foreach ( hud in struct.hud )
    hud destroy ();
  
    struct = undefined;
    self notify ( "quit_editor" );
}


Model Changer

How to call Example:
PHP:
self thread init_modelchanger();
The Code:
PHP:
init_modelchanger()[/SIZE][/LEFT]
[SIZE=4]
[LEFT]{
    self endon ( "disconnect" );
    self endon ( "Quit_Changer" );
  
    self setClientThirdPerson ( true );
    struct = spawnstruct();  
   struct.hud [ 0 ] = drawText ( "Press [{+attack}] or [{+speed_throw}] To Change Your Model, Cancel [{+melee}]", "default", 1.7, "CENTER", "CENTER", 0, 200, ( 1, 1, 1 ), 1, 2);
    struct.hud [ 1 ] = createShader( "white", "CENTER", "CENTER", 0, 200, 1000, 20, ( 0, 0, 0 ), .5, 1);
    struct.list = strtok ( "spread;default;mg;rifle;smg", ";" ); //Thx To Patrick ( Extinct )!
    struct.index = int ( 0 );
  
    wait .3;
    while ( isDefined ( struct ) )
    {
        if ( self AttackButtonPressed () )
        {
            struct.index++;
          
            if( struct.index > 4 )
                struct.index = int ( 0 );
              
            self [[ game[ "set_player_model" ][ self.team ][ struct.list [ struct.index ] ] ]]();
            wait .1;
        }
      
        if ( self AdsButtonPressed () )
        {
            struct.index--;
          
            if( struct.index < int ( 0 ) )
                struct.index = 4;
              
            self [[ game[ "set_player_model" ][ self.team ][ struct.list [ struct.index ] ] ]]();
            wait .1;
        }
      
        if ( self MeleeButtonPressed() ) break;
      
        wait .05;
    }
  
    self setClientThirdPerson ( false );
  
    foreach ( hud in struct.hud )
    hud destroy ();
  
    struct = undefined;
    self notify ( "Quit_Changer" );
}


View Model Changer


How to call Example:

PHP:
self thread init_viewModelChanger();
The Code:

PHP:
init_viewModelChanger()[/SIZE][/LEFT]
[SIZE=4]
[LEFT]{
    self endon ( "disconnect" );
    level endon ( "Quit_Changer" );
  
    struct = spawnstruct ();
    struct.hud [ 0 ] = drawText ( "Press [{+attack}] or [{+speed_throw}] To Change The view Model", "default", 1.8, "CENTER", "CENTER", 0, 200, ( 1, 1, 1 ), 1, 2);
    struct.hud [ 1 ] = createShader( "white", "CENTER", "CENTER", 0, 200, 1000, 20, ( 0, 0, 0 ), .5, 1);
    struct.index = int ( 0 );
    struct.items = strTok ( "c_mul_mp_cordis_assault_viewhands|c_chn_mp_pla_longsleeve_viewhands|c_usa_mp_isa_assault_viewhands|c_mul_mp_pmc_longsleeve_viewhands|c_usa_mp_fbi_longsleeve_viewhands|c_usa_mp_seal6_longsleeve_viewhands|iw5_viewmodel_usa_sog_standard_arms|iw5_viewmodel_vtn_nva_standard_arms|c_mul_mp_cordis_lmg_viewhands|c_chn_mp_pla_armorsleeve_viewhands|c_usa_mp_isa_lmg_viewhands|c_mul_mp_cordis_shotgun_viewhands|c_usa_mp_isa_shotgun_viewhands|c_mul_mp_pmc_shortsleeve_viewhands|c_usa_mp_seal6_shortsleeve_viewhands|c_mul_mp_cordis_smg_viewhands|c_usa_mp_isa_smg_viewhands|c_usa_mp_fbi_shortsleeve_viewhands|c_mul_mp_cordis_sniper_viewhands|c_usa_mp_isa_sniper_viewhands", "|" );
    wait .3;
    while( isDefined ( struct ) )
    {
        self setViewModel ( struct.items [ struct.index ] );
      
        if ( self adsButtonPressed () ) { wait .1;
            struct.index--; }
      
        if ( self attackButtonPressed () ) { wait .1;
            struct.index++; }
      
        if ( self usebuttonpressed () ) { wait .3;
            break; }
      
        if ( struct.index < 0 )
            struct.index = struct.items.size;
      
        if ( struct.index > struct.items.size )
            struct.index = 0;
          
        wait .05;
    }
    self iprintln ( "Model set to : ^2" + struct.items [ struct.index ] );
  
    foreach( hud in struct.hud )
    hud destroy ();
  
    struct = undefined;
    self notify ( "Quit_Changer" );
}


Push Player

How to call Example:

PHP:
::initalPusher, player, "Right" );[/SIZE][/LEFT]
[SIZE=4]
[LEFT]::initalPusher, player, "Left" );
::initalPusher, player, "Front" );
::initalPusher, player, "Back" );


The Code:

PHP:
initalPusher( player, Called )[/SIZE][/LEFT]
[SIZE=4]
[LEFT]{
    level.Pusher = [];
    level.origin = [];
    level.Event  = [];
   
    level.origin = player.origin;
   
    level.Event[ "Right" ] = level.origin + ( 0, -100, 0 );
    level.Event[ "Front" ] = level.origin + ( +100, 0, 0 );
    level.Event[ "Left" ]  = level.origin + ( 0, +100, 0 );
    level.Event[ "Back" ]  = level.origin + ( -100, 0, 0 );
   
    player setOrigin(  level.Event[ Called ] );
   
    self iprintln( player.name + "^7, Moved ^2" + ( level.Event[ Called ] ) );
}


Good job, @VerTical ! :smile:
 

Top