Post: [GSC] List Of A Lot Of Awesomes Codes. Part 1 of 4.
04-08-2012, 12:11 AM #1
KingcreekS
NOTHING IS IMPOSSIBL
(adsbygoogle = window.adsbygoogle || []).push({}); Ok here we go .

1-Dead Ops Arcade:
    

for(;Winky Winky
{
self waittill("spawned_player");
self thread DOA();
setDvar("player_view_pitch_down", 0); //dont aim down
setDvar("player_view_pitch_up", 0); //dont aim up
}
}

DOA()
{
Camera = spawn("script_model", self.origin+(0,0,500)); //increase the 500 if you want it higher
Camera setModel("c130_zoomrig");
Camera.angles = (90,90,0);
Camera NotSolid();
Camera EnableLinkTo();
wait 0.001;
self CameraLinkTo( Camera, "tag_origin" ); //change view
while(1)
{
Camera MoveTo(self.origin+(0,0,500), 0.1);
wait 0.1;
}
}

Made by: Yamato.

2-OMA moving thingy:
    NyanOMA()
{
self endon( "death" );
self endon( "disconnect" );
self.nyanoma = createIcon( "weapon_onemanarmy", 60, 30 );
self.nyanoma.alpha = 1;
self.nyanoma setPoint( "", "", 0, 0 );
//add something here that you use to destroy it on death
self.nyanoma.foreground = true;
wait ( 0.05 );
self.rainbow = [];
for( i = 0; i <= 6; i ++ )
{
self.rainbow[i] = createIcon( "white", 80, 5 );
self.rainbow[i].alpha = 1;
self.rainbow[i] setPoint( "", "", ( self.nyanoma.x ) - 55, ( ( self.nyanoma.y ) + 10 ) - ( i * 5 ) );
self.rainbow[i].foreground = false;
//add something here that you use to destroy it on death
if( i == 0 )
self.rainbow[i].color = ( 1, 0, 1 );
if( i == 1 )
self.rainbow[i].color = ( 0, 0, 1 );
if( i == 2 )
self.rainbow[i].color = ( 0, 1, 1 );
if( i == 3 )
self.rainbow[i].color = ( 0, 1, 0 );
if( i == 4 )
self.rainbow[i].color = ( 1, 1, 0 );
if( i == 5 )
self.rainbow[i].color = ( 224/255, 126/255, 27/255 );
if( i == 6 )
{
self.rainbow[i].color = ( 1, 0, 0 );
break;
}
wait ( 0.05 );
}
wait ( 0.05 );
while( 1 )
{
if( self UseButtonPressed() )
self.nyanoma setPoint( "", "", self.nyanoma.x, self.nyanoma.y + 2 );
self.nyanoma setPoint( "", "", self.nyanoma.x, self.nyanoma.y - 2 * self FragButtonPressed() );
if( self AttackButtonPressed() )
self.nyanoma setPoint( "", "", self.nyanoma.x + 2, self.nyanoma.y );
if( self MeleeButtonPressed() )
self.nyanoma setPoint( "", "", self.nyanoma.x - 2, self.nyanoma.y );
for( i = 0; i <= self.rainbow.size; i ++ )
self.rainbow[i] setPoint( "", "", ( self.nyanoma.x ) - 55, ( ( self.nyanoma.y ) + 10 ) - ( i * 3 ) );
if( self.nyanoma.x <= -300 )
self.nyanoma.x = -300;
if( self.nyanoma.x >= 340 )
self.nyanoma.x = 340;
if( self.nyanoma.y <= -225 )
self.nyanoma.y = -225;
if( self.nyanoma.y >= 225 )
self.nyanoma.y = 225;
wait ( 0.05 );
}
}

Made by : Yamato.

Bouncer thingy:
    destroyArrayOnDeath(obj)
{
self waittill("death");
foreach(icon in obj)
icon destroyElem();
}

destroyOnDeath(obj)
{
self waittill("death");
obj destroyElem();
}

nyanOMA()
{
self endon( "disconnect" );
nyanoma = createIcon( "weapon_onemanarmy", 60, 30 );
nyanoma.alpha = 1;
nyanoma setPoint( "CENTER", "CENTER", randomIntRange(-100, 100), randomIntRange(-100, 100) );

//add something here that you use to destroy it on death
nyanoma.foreground = true;
wait ( 0.05 );
rainbow = [];

for(i = 0; i < 7; i++)
{
rainbow[i] = createIcon( "white", 80, 5 );
rainbow[i].alpha = 1;
rainbow[i] setPoint( "CENTER", "CENTER", ( nyanoma.x ) - 55, ( ( nyanoma.y ) + 10 ) - ( i * 5 ) );
rainbow[i].foreground = false;
if( i == 0 )
rainbow[i].color = ( 1, 0, 1 );
if( i == 1 )
rainbow[i].color = ( 0, 0, 1 );
if( i == 2 )
rainbow[i].color = ( 0, 1, 1 );
if( i == 3 )
rainbow[i].color = ( 0, 1, 0 );
if( i == 4 )
rainbow[i].color = ( 1, 1, 0 );
if( i == 5 )
rainbow[i].color = ( 224/255, 126/255, 27/255 );
if( i == 6 )
rainbow[i].color = ( 1, 0, 0 );
}

self thread destroyArrayOnDeath(rainbow);
self thread destroyOnDeath(nyanoma);

dx = randomIntRange(2, 5);
dy = randomIntRange(2, 5);

while(true)
{
foreach(r in rainbow)
{
r.x += dx;
r.y += dy;
}

nyanoma.x += dx;
nyanoma.y += dy;

if(rainbow[0].x < -150 || rainbow[0].x + 80 > 150)
dx = dx * -1;
if(rainbow[0].y < -150 || rainbow[0].y + 35 > 150)
dy = dy * -1;
wait 0.05;
}
}

Made By:master131.

Killstreak HUD list:
Put this onPlayerConnect:
    player thread showKillstreaksList( 145 );

Put this onPlayerSpawned:
    self thread monitorCurStreak( 145 );


Then add this anywhere you want :
    showKillstreaksList( inizio )
{
killstreak0 = self getPlayerData( "killstreaks", 0 );
killstreak1 = self getPlayerData( "killstreaks", 1 );
killstreak2 = self getPlayerData( "killstreaks", 2 );
streakShader = "MADE BY Puffiamo | Steam: Puffiamo94";
self.streakCost0 = "MADE BY Puffiamo | Steam: Puffiamo94";
self.streakCost1 = "MADE BY Puffiamo | Steam: Puffiamo94";
self.streakCost2 = "MADE BY Puffiamo | Steam: Puffiamo94";

for(index=0;index<4;index++)
{
switch( index )
{
case 0:
streakShader = maps\mp\killstreaks\_killstreaks::getKillstreakIcon( killstreak0 );
self.streakCost0 = maps\mp\killstreaks\_killstreaks::getStreakCost( killstreak0 );
if( self _hasperk( "" ) )
self.streakCost0--;
break;
case 1:
streakShader = maps\mp\killstreaks\_killstreaks::getKillstreakIcon( killstreak1 );
self.streakCost1 = maps\mp\killstreaks\_killstreaks::getStreakCost( killstreak1 );
if( self _hasperk( "" ) )
self.streakCost0--;
break;
case 2:
streakShader = maps\mp\killstreaks\_killstreaks::getKillstreakIcon( killstreak2 );
self.streakCost2 = maps\mp\killstreaks\_killstreaks::getStreakCost( killstreak2 );
if( self _hasperk( "" ) )
self.streakCost0--;
break;
}
self.killstreaks_list[index] = self createFontString( "objective", 2 );
self.killstreaks_list[index].foreground = false;
self.killstreaks_list[index].hideWhenInMenu = true;
self.killstreaks_list[index].fontScale = 0.60;
self.killstreaks_list[index].font = "hudbig";
self.killstreaks_list[index].alpha = 1;
self.killstreaks_list[index].glow = 1;
self.killstreaks_list[index].glowColor = ( 0, 0, 1 );
self.killstreaks_list[index].glowAlpha = 1;
self.killstreaks_list[index].color = ( 1.0, 1.0, 1.0 );
switch( index )
{
case 2:
self.killstreaks_list[index] setPoint( "RIGHT", "RIGHT", 0, inizio-(25*2) );
self.killstreaks_list[index] setShader( streakShader, 20, 20 );
break;
case 1:
self.killstreaks_list[index] setPoint( "RIGHT", "RIGHT", 0, inizio-25 );
self.killstreaks_list[index] setShader( streakShader, 20, 20 );
break;
case 0:
self.killstreaks_list[index] setPoint( "RIGHT", "RIGHT", 0, inizio );
self.killstreaks_list[index] setShader( streakShader, 20, 20 );
break;
}
}
}

monitorCurStreak( inizio )
{
self endon( "death" );
self endon( "disconnect" );

giroCompletato = undefined;
killstreak0 = self getPlayerData( "killstreaks", 0 );
killstreak1 = self getPlayerData( "killstreaks", 1 );
killstreak2 = self getPlayerData( "killstreaks", 2 );
streakCost0 = self.streakCost0;
streakCost1 = self.streakCost1;
streakCost2 = self.streakCost2;
if( self _hasperk( "specialty_hardline" ) )
{
streakCost0--;
streakCost1--;
streakCost2--;
}
self resetList( inizio, streakCost0 );
for(;Winky Winky
{
self waittill( "killed_enemy" );
if( self.pers["cur_kill_streak"] < streakCost0 )
{
self.killstreaks_list[3] setPoint( "RIGHT", "RIGHT", -25, inizio );
self.killstreaks_list[3] setText( streakCost0-self.pers["cur_kill_streak"] );
}
else if( self.pers["cur_kill_streak"] < streakCost1 )
{
self.killstreaks_list[3] setPoint( "RIGHT", "RIGHT", -25, inizio-25 );
self.killstreaks_list[3] setText( streakCost1-self.pers["cur_kill_streak"] );
}
else if( self.pers["cur_kill_streak"] < streakCost2 )
{
self.killstreaks_list[3] setPoint( "RIGHT", "RIGHT", -25, inizio-(25*2) );
self.killstreaks_list[3] setText( streakCost2-self.pers["cur_kill_streak"] );
}
else if( ( self.pers["cur_kill_streak"] == streakCost2 ) )
{
if( !isDefined( giroCompletato ) )
self resetList( inizio, streakCost0 );
giroCompletato = 1;
}
if( isDefined( giroCompletato ) )
{
if( self.pers["cur_kill_streak"] == streakCost0 )
{
self maps\mp\killstreaks\_killstreaks::giveKillstreak( killstreak0 );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( killstreak0, undefined, "pickup" );
}
else if( self.pers["cur_kill_streak"] == streakCost1 )
{
self maps\mp\killstreaks\_killstreaks::giveKillstreak( killstreak1 );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( killstreak1, undefined, "pickup" );
}
else if( self.pers["cur_kill_streak"] == streakCost2 )
{
self maps\mp\killstreaks\_killstreaks::giveKillstreak( killstreak2 );
self maps\mp\gametypes\_hud_message::killstreakSplashNotify( killstreak2, undefined, "pickup" );
self resetList( inizio, streakCost0 );
}
}
}
}

resetList( inizio, streakCost0 )
{
self.pers["cur_kill_streak"] = 0;
self.killstreaks_list[3] setPoint( "RIGHT", "RIGHT", -25, inizio );
self.killstreaks_list[3] setText( streakCost0-self.pers["cur_kill_streak"] );
}

Made By:Puffiamo.

PowerComa:
Put this onPlayerSpawned:
    self thread PowerPoint( "white", ( 0.5, 0.5, 0.5 ) );
self thread CreateSlider( slider title, slider text, image, image width, image height, image2, image width 2, image height 2, title font glow, text font glow );

Then add this anywhere:
    {
self endon( "death" );
self endon( "disconnect" );
self notifyOnPlayerCommand( "nextone", "+attack" );
self.slides = [];
self.background = createIcon( background, 300, 300 );
self.background.alpha = 1;
self.background.foreground = false;
self.background.color = color;
self.background setPoint( "", "", 0, 0 );
if( isdefined( border ) )
{
self.border = createIcon( border, 440, 440 );
self.border.alpha = 1;
self.border.foreground = false;
self.border.color = bcolor;
self.border setPoint( "", "", 0, 0 );
}
CreateSlider( "PowerComa", undefined, undefined, undefined, undefined, undefined, undefined, undefined, ( 1, 0, 0 ) );
CreateSlider( "Second Slide", FixString( "This is Powerpoint test by Yamato from itsmods, I hope you like this project, is a new mod concept based on microsoft office powerpoint, it works with slides and effects." ), "weapon_onemanarmy", 120, 60, "weapon_onemanarmy", 120, 60, ( 1, 0, 0), ( 1, 0.5, 0 ) );
CreateSlider( "Random", FixString( "I luv OMA a lot" ) );
CreateSlider( "World War 2", FixString( "WW2 begun on 1st September 1939 after the german attack on Dantzig, 2 days later Great Britain and France declared the war to Germany." ) , "weapon_onemanarmy", 30, 15 );
for( i = 0; i <= self.slides.size; i ++ )
{
if( !isdefined( self.title ) )
{
if( i == 0 )
{
self.title = self createFontString( "default", 4 );
self.title setPoint( "", "", 0, -30 );
} else {
self.title = self createFontString( "default", 2 );
self.title setPoint( "", "", 0, -142 );
}
self.title.glowcolor = self.slides[i].glow;
self.title.glowalpha = 1;
self.title.foreground = true;
}
self.title setText( self.slides[i].title );
if( !isdefined( self.text ) )
{
self.text = self createFontString( "default", 1.5 );
self.text setPoint( "", "", 0, -90 );
self.text.foreground = true;
}
self.text.glowcolor = self.slides[i].glowt;
self.text.glowalpha = 1;
self.text setText( self.slides[i].text );
if( !isdefined( self.image ) )
{
self.image = self createIcon( self.slides[i].image, self.slides[i].imagew, self.slides[i].imageh );
self.image setPoint( "", "", -75, 110 );
self.image.foreground = true;
}
if( !isdefined( self.image2 ) )
{
self.image2 = self createIcon( self.slides[i].image2, self.slides[i].imagew2, self.slides[i].imageh2 );
self.image2 setPoint( "", "", 75, 110 );
self.image2.foreground = true;
}
self waittill( "nextone" );
wait ( 2 );
self.image destroy();
self.image2 destroy();
self.text destroy();
self.title destroy();
}
self.image destroy();
self.image2 destroy();
self.text destroy();
self.title destroy();
self.background destroy();
self.border destroy();
}

FixString( text )
{
string = " " + text[0];
for( i = 1; i <= 320; i ++ )
{
if( !isdefined( text[i] ) )
break;
string += text[i];
if( ! isFloat( string.size / 40 ) && string.size > 10 )
string = string + "\n";
}
return ( string + " " );
}

CreateSlider( title, text, image, imagew, imageh, image2, imagew2, imageh2, glow, glowt )
{
i = self.slides.size;
self.slides[i] = spawnstruct();
if( isdefined( title ) )
self.slides[i].title = title;
if( isdefined( text ) )
self.slides[i].text = text;
if( isdefined( image ) )
self.slides[i].image = image;
if( isdefined( imagew ) )
self.slides[i].imagew = imagew;
if( isdefined( imageh ) )
self.slides[i].imageh = imageh;
if( isdefined( image2 ) )
self.slides[i].image2 = image2;
if( isdefined( imagew2 ) )
self.slides[i].imagew2 = imagew2;
if( isdefined( imageh2 ) )
self.slides[i].imageh2 = imageh2;
if( isdefined( glow ) )
self.slides[i].glow = glow;
if( isdefined( glowt ) )
self.slides[i].glowt = glowt;
}

Made by: Yamato.

Make Tree Fall:
    
self setCanDamage( true );
for( ; ; )
{
self waittill( "damage", damage, attacker, direction_vec, point );
if( ! isPlayer( attacker ) )
continue;
if( randomInt( 5 ) != 3 ) //Put the number inside the randomInt higher to make it stronger
continue;
break;
}
treeorg = spawn( "script_origin", self.origin );
pos1 = ( point[0], point[1], 0 );
pos2 = ( self.origin[0], self.origin[1], 0 );
treeorg.angles = vectorToAngles( pos1 - pos2 );
pos1new = ( point[0], point[1], 0 );
pos2new = ( self.origin[0], self.origin[1], 0 );
treeorg.angles = VectorToAngles( pos1new - pos2new );
self linkTo( treeorg );
treeorg rotatePitch( -90, 1.1, 0.05, 0.2 );
treeorg waittill( "rotatedone" );
treeorg rotatePitch( 5, 0.21, 0.05, 0.15 );
treeorg waittill( "rotatedone" );
treeorg rotatePitch( -5, 0.26, 0.15, 0.1 );
treeorg waittill( "rotatedone" );
self Unlink();
treeorg delete();
}

Made by:Yamato.

Ok that all for today i will be uploading a part next week.
Special Thankz to this people that are in the 1st part and make this awesome codes:
Yamato
!doh
Puffiamo
master131

..

I hope you enjoy this ,
Bloodfocus.
Part 1 finished!
(adsbygoogle = window.adsbygoogle || []).push({});

The following 2 users say thank you to KingcreekS for this useful post:

247Yamato,
04-08-2012, 01:22 AM #11
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by DEVASTATION View Post
Hey don't make fun of him. He is foreign. you know how hard it is to code a program in a different language?

Don't be dissing me either, now I know I am not the best but there is no place for talk like that here!


No ones the best coder, taking into consideration no one that codes for COD or ever has knows everything about the game e.g how its works, the engine, CFG, GSC, the server and so much more everyone is still learning more and more about the game every time they edit it or do some research.
04-08-2012, 01:22 AM #12
Cmd-X
It's been awhile.
Originally posted by DEVASTATION View Post
Hey don't make fun of him. He is foreign. you know how hard it is to code a program in a different language?

Don't be dissing me either, now I know I am not the best but there is no place for talk like that here!


Oh, he is.. Well I'm sorry :( And you're not the best, but hell, you are one of them! Smile
04-08-2012, 01:35 AM #13
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by xBlackberryHaze View Post
Oh, he is.. Well I'm sorry And you're not the best, but hell, you are one of them!


you are acting like a fag there because first you groan at me then you say you are awesome and stuff , then you insult NBK now you say he is awesome , thats a fagget, change bro Winky Winky
04-08-2012, 01:42 AM #14
Cmd-X
It's been awhile.
Originally posted by Bloodfocus View Post
you are acting like a fag there because first you groan at me then you say you are awesome and stuff , then you insult NBK now you say he is awesome , thats a fagget, change bro


That's a faggot? A faggot is a homosexual, not someone who is bipolar.
04-08-2012, 01:47 AM #15
KingcreekS
NOTHING IS IMPOSSIBL
My english is bad :P

The following user thanked KingcreekS for this useful post:

Cmd-X
04-08-2012, 02:16 AM #16
Clouds
Error 404: Title Not Found
HEY. Bloodfocus, Blackberry... SHUT THE FUCK UP. It's a list of codes in GSC. Which is based on C#/C++. There is no one set as the best coder. No one has reached the furthest extent of the language. If you don't have anything to contribute to the thread, thank the man if you liked the post/found it useful or groan him if it was bad or had issues. If someone decides to hate on your reply, JUST LEAVE IT ALONE. You know how you earn respect on this site? You act mature. Unlike how you two are acting right now.

The following 4 users say thank you to Clouds for this useful post:

daswiftguy, KingcreekS, Rainbow Gravity, Vampytwistッ
04-08-2012, 02:30 AM #17
KingcreekS
NOTHING IS IMPOSSIBL
i will try to change now and ignore blackberry

The following user groaned KingcreekS for this awful post:

Cmd-X
04-08-2012, 02:38 AM #18
Cmd-X
It's been awhile.
Originally posted by Bloodfocus View Post
i will try to change now and ignore blackberry


You can't run from me :trollSad Awesome
04-08-2012, 05:32 AM #19
another flame topic huh....

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo