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, 12:23 AM #2
Cmd-X
It's been awhile.
/facepalm Most of these codes are ripped out of patches, which means you would have to redefine them in the patch you put them in.. So if I used that PowerComa thing, I would get an error because I don't have the threads it needs to execute :dumb:
04-08-2012, 12:27 AM #3
KingcreekS
NOTHING IS IMPOSSIBL
You are a hater you allways groan or comment shit and im trying to help community idk why you always hate people that are helping community :(

The following user thanked KingcreekS for this useful post:

04-08-2012, 12:50 AM #4
Originally posted by xBlackberryHaze View Post
/facepalm Most of these codes are ripped out of patches, which means you would have to redefine them in the patch you put them in.. So if I used that PowerComa thing, I would get an error because I don't have the threads it needs to execute :dumb:


That is the dumbest thing I have ever heard in my life.

it doesn't have the thread to execute?

then you add it :derp:

self thread THREADTOEXECUTE();

/failtroll is fail

---------- Post added at 07:50 PM ---------- Previous post was at 07:49 PM ----------

Nice work bloodfocus! Thanks for sharing.


(btw sorry for not being on skype in a while, I got caught up in someshit :loveSmile
04-08-2012, 12:54 AM #5
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by DEVASTATION View Post
Nice work bloodfocus! Thanks for sharing.


(btw sorry for not being on skype in a while, I got caught up in someshit )


Thankz bro , when you get on skype i will say you myn new ideas Smile
04-08-2012, 12:57 AM #6
Cmd-X
It's been awhile.
Originally posted by DEVASTATION View Post
420


oops, I read the code wrong.

---------- Post added at 07:57 PM ---------- Previous post was at 07:56 PM ----------

Originally posted by Bloodfocus View Post
You are a hater you allways groan or comment shit and im trying to help community idk why you always hate people that are helping community


Who the FUCK groaned you? What? Not me No
I love you, and thanks for these amazing codes, way better than NBK-Fag Smile

The following user thanked Cmd-X for this useful post:

247Yamato
04-08-2012, 01:00 AM #7
KingcreekS
NOTHING IS IMPOSSIBL
Originally posted by xBlackberryHaze View Post
Who the $#@! groaned you? What? Not me
I love you, and thanks for these amazing codes, way better than NBK-Fag


Lol kid you are a fag... . , NBK is the best coder and person that i know here in ngu . And i think you xBlackberryhaze are the most fagget person that i ever know here.
04-08-2012, 01:12 AM #8
Why do you troll, and then bitch about people trolling? I don't get you... :confused:

not even being said in a fighting, mad tone of thought. Just why? Like it's wierd :p
04-08-2012, 01:13 AM #9
Cmd-X
It's been awhile.
Originally posted by Bloodfocus View Post
Lol kid you are a fag... . , NBK is the best coder and person that i know here in ngu . And i think you xBlackberryhaze are the most fagget person that i ever know here.


You sound like a little 12-year-old fanboy. You really think NBK is the best here? And you don't even know me, you just started coding GSC noob!

The following user thanked Cmd-X for this useful post:

aerosoul94

The following user groaned Cmd-X for this awful post:

04-08-2012, 01:17 AM #10
Originally posted by xBlackberryHaze View Post
You sound like a little 12-year-old fanboy. You really think NBK is the best here? And you don't even know me, you just started coding GSC noob!


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!

The following 3 users say thank you to Jakes625 for this useful post:

KingcreekS, Rainbow Gravity, THEvKiller

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo