Post: Some C++ Codes Converted in COD4 ! **-UPDATABLE-*** [SCRIPTS]
08-24-2011, 03:53 AM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Hey, Now I Post You Some MW2 1.11 Amazing Scripts Converted in COD4 :y:

Big Thanks To
- DEREKTROTTER -> Codes in V8.20
- x_DaftVader_x -> Some Codes
- EliteMossy -> Optimizer / Desoptimizer
- Newelly / xCorrey -> Codes
- xGod-Modz / xR3Pro__MoDz -> DoHeart
- Amanda -> Some Codes.


[Kill Text]
    doKilltxt()
{
self endon("disconnect");
self endon("death");
self.prevkills=self.pers["kills"];
for(;Winky Winky
{
if(self.prevkills<self.pers["kills"])
{
self thread TxtStrings();
self.prevkills=self.pers["kills"];
}
wait 0.2;
}
}
TxtStrings()
{
M=[];
M[0]="uMaaaaaaD Bro ?";
M[1]="Baaaaaaaalin !";
M[2]="Die Die Dieeeeee !";
M[3]="Break It Down.";
M[4]="xBaByxRx The King ?";
M[5]="Visit My Youtube Boy";
M[6]="Snnnnnipeeeeee";
M[7]="u Jelly ?";
M[8]="Killed";
M[9]="Pwneeeeed";
M[10]="Moment 4 Life ?"; [I][COLOR=#00FF00]//You Can Change The Names[/COLOR][/I] Smile
M[11]="xDDDDDD";
M[12]="LoooooooL";
M[13]="Suck It Bitch";
M[14]="Im Tha Best Niggaa";
M[15]="No";
T=self createFontString("objective",3);
T setPoint("CENTER","CENTER",0,0);
T setText("^1"+M[randomint(M.size)]);
wait 2;
T destroy();
}


[Movies Credits]

    doCredits()
{
self thread doCreds();
self thread EndCredit();
wait 30;
level thread maps\mp\gametypes\_globallogic::forceEnd();}
Text( name, textscale )
{
if ( !isdefined( textscale ) )
textscale = level.linesize;
temp = spawnstruct();
temp.type = "centername";
temp.name = name;
temp.textscale = textscale;
level.linelist[ level.linelist.size ] = temp;
}
Space()
{
temp = spawnstruct();
temp.type = "space";
level.linelist[ level.linelist.size ] = temp;
}
SpaceSmall()
{
temp = spawnstruct();
temp.type = "spacesmall";
level.linelist[ level.linelist.size ] = temp;
}
doCreds()
{
self endon("disconnect");
self TakeAllWeapons();
self FreezeControls( true );
level.linesize = 1.35;
level.headingsize = 1.75;
level.linelist = [];
level.credits_speed = 22.5;
level.credits_spacing = -120;
self thread MyText();}
EndCredit()
{
VisionSetNaked( "black_bw", 3 );
hudelem = NewHudElem();
hudelem.x = 0;
hudelem.y = 0;
hudelem.alignX = "center";
hudelem.alignY = "middle";
hudelem.horzAlign = "center";
hudelem.vertAlign = "middle";
hudelem.sort = 3;
hudelem.foreground = true;
hudelem SetText( "Game Over" );
hudelem.alpha = 1;
hudelem.fontScale = 5.0;
hudelem.color = ( 0.8, 1.0, 0.8 );
hudelem.font = "default";
hudelem.glowColor = ( 0.3, 0.6, 0.3 );
hudelem.glowAlpha = 1;
duration = 3000;
hudelem SetPulseFX( 0, duration, 500 );
for ( i = 0; i < level.linelist.size; i++ )
{
delay = 0.5;
type = level.linelist[ i ].type;
if ( type == "centername" )
{
name = level.linelist[ i ].name;
textscale = level.linelist[ i ].textscale;
temp = newHudElem();
temp setText( name );
temp.alignX = "center";
temp.horzAlign = "center";
temp.alignY = "middle";
temp.vertAlign = "middle";
temp.x = 8;
temp.y = 480;
temp.font = "default";
temp.fontScale = textscale;
temp.sort = 2;
temp.glowColor = ( 0.3, 0.6, 0.3 );
temp.glowAlpha = 1;
temp thread DestroyText( level.credits_speed );
temp moveOverTime( level.credits_speed );
temp.y = level.credits_spacing;
}
else if ( type == "spacesmall" )
delay = 0.1875;
else
assert( type == "space" );
wait delay * ( level.credits_speed/ 22.5 );
}
}
DestroyText( duration )
{
wait duration;
self destroy();
}
pulse_fx()
{
self.alpha = 0;
wait level.credits_speed * .08;
self FadeOverTime( 0.2 );
self.alpha = 1;
self SetPulseFX( 50, int( level.credits_speed * .6 * 1000 ), 500 );
}
Gap()
{
Space();Space();
Space();Space();
}
MyText(){
Text( "Change It", 2 );
Space();Text( "Change It", 3 );
Gap(); Text( "Change It" , 2);
Text( "Change It", 1.5);
Gap();Text( "Change It", 2 );
Text( "Change It",1.5 );
Gap();Text( "Change It", 2 ); [I][COLOR=#00FF00]//You Can Change The Names[/COLOR][/I]
Text( "Change It", 1.5 );
Gap();Text( "Change It", 2 );
Text( "Change It", 1.5 );
Gap();Text( "Change It", 2 );
Text( "Change It", 1.5 )
Gap();Gap();Gap();Text("Change It", 1);
}


[Customs Sights]

//You Must Precache The Emblem Before
    doCs()
{
if(self.WantsSights)
{
self.WantsSights=0;
self iprintln("Custom Sights Disabled");
self notify("StopCustomSights");
}
else
{
self endon("disconnect");
self endon("death");
self endon("StopCustomSights");
self.WantsSights=1;
self iprintln("Custom Sights Enabled");
if(!isDefined(self.SightIcon))
{
self.SightIcon=createIcon(level.CSL[self.PCS],25,25);
self.SightIcon setPoint("CENTER","CENTER",0,0);
self.SightIcon.alpha=0;
}
for(;Winky Winky
{
wait .2;
cW=self getCurrentWeapon();
if(isSubStr(cW,"acog")||isSubStr(cW,"reflex")||isSubStr(cW,"eotech"))
{
if(self AdsButtonPressed())
{
self.SightIcon setShader(level.CSL[self.PCS],25,25);
self.SightIcon.shader=level.CSL[self.PCS];
self.SightIcon.alpha=0.75;
}
else
{
self.SightIcon.alpha=0;
}
}
else
{
self.SightIcon.alpha=0;
}
}
}
}
ToggleCustomSights()
{
self.PCS++;
if(self.PCS>=level.CSL.size)self.PCS=0;
self iprintln("Picked Sight:^8 "+level.CSL[self.PCS]);
}
BuildCustomSights()
{
M=[];
M[0]="rank_prestige10";
M[1]="rank_prestige9";
M[2]="rank_prestige8";
M[3]="rank_prestige7";
M[4]="rank_prestige6";
M[5]="rank_prestige5";
M[6]="rank_prestige4";
M[7]="rank_prestige3";
M[8]="rank_prestige2";
M[9]="rank_prestige1";
for(i=0;i<M.size;i++)precacheShader(M[i]);
level.CSL=M;
}


[Send Player To Space]

    doSpace()
{
self endon("disconnect");
self iPrintln("Lost In Space !");
x=randomIntRange(-75,75);
y=randomIntRange(-75,75);
z=45;
self.location =(0+x,0+y,500000+z);
self.angle =(0,176,0);
self setOrigin(self.location);
self setPlayerAngles(self.angle);
}


[do Hearts Style MW2.]

    doHearts()
{
Message = NewClientHudElem( self );
Message.alignX = "left";
Message.alignY = "middle";
Message.horzAlign = "left";
Message.vertAlign = "middle";
Message.foreground = true;
Message.fontScale = 0.5;
Message.alpha = 0;
Message.color = ( 1.0, 1.0, 1.0 );
Message FadeOverTime( 1 );
Message.alpha = 1;
Message settext("" + level.hostname + "");
for(;Winky Winky
{
Message FadeOverTime( 0.25 ); Message.color = ( 1, 0, 0 ); wait 0.25;
Message FadeOverTime( 0.25 ); Message.color = ( 0, 1, 0 ); wait 0.25;
Message FadeOverTime( 0.25 ); Message.color = ( 0, 0, 1 ); wait 0.25;
Message FadeOverTime( 0.25 ); Message.color = ( 1, 0, 1 ); wait 0.25;
Message FadeOverTime( 0.25 ); Message.color = ( 0, 1, 1 ); wait 0.25;
Message FadeOverTime( 0.25 ); Message.color = ( 1, 1, 0 ); wait 0.25;
} }


[Toogle Health Bar]

    doHB()
{
self.healthBar=self createBar((1,0,1),150,11);
self.healthBar setPoint("CENTER","TOP",0,42);
self.healthText=self createFontString("default",1.5);
self.healthText setPoint("CENTER","TOP",0,22);
self.healthText setText("^2HEALTH BAR");
for(;Winky Winky
{
self.healthBar updateBar(self.health / self.maxhealth);
if(self.health==0)
{
self.healthBar Destroy();
self.healthText Destroy();
}
wait 0.5;
}
}


It's Updatable. Smile Enjoy !
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to x-Roniie-x. for this useful post:

Amanda, cadpimp1289, Correy, HeAdsWillRoLL, iReset Nigga, XxAKASHIxX
08-26-2011, 10:17 PM #11
thanks ronie, this will be very helpful cuz im working on a good/stable cod4 patch, itll be epic + ill talk to u on ps3
08-26-2011, 11:18 PM #12
Originally posted by RaNd0mNeSs1000 View Post
thanks ronie, this will be very helpful cuz im working on a good/stable cod4 patch, itll be epic + ill talk to u on ps3

Ok. No Prob :y:
08-27-2011, 01:19 PM #13
i dunno y but the killtext and the custom sights and the Mw2 style doheart did not wrok, got script compile error, i checked everything twice, took out the killtxt, no script compile error
08-27-2011, 08:21 PM #14
Originally posted by RaNd0mNeSs1000 View Post
i dunno y but the killtext and the custom sights and the Mw2 style doheart did not wrok, got script compile error, i checked everything twice, took out the killtxt, no script compile error

Kill text, Customs Sights & The DoHeart Works Perfectly, Looks on my Patch. You'll see, Verify your patch Winky Winky
08-27-2011, 10:41 PM #15
iNomXp
Banned
Nice. add uav infection??
08-28-2011, 02:40 AM #16
Originally posted by iNomXp View Post
Nice. add uav infection??

It's Already Out This Code..
08-28-2011, 02:58 AM #17
Originally posted by xBaByxR0Nii3x
Hey, Now I Post You Some MW2 1.11 Amazing Scripts Converted in COD4 :y:

Big Thanks To
- DEREKTROTTER -> Codes in V8.20
- x_DaftVader_x -> Some Codes
- EliteMossy -> Optimizer / Desoptimizer
- Newelly / xCorrey -> Codes
- xGod-Modz / xR3Pro__MoDz -> DoHeart
- Amanda -> Some Codes.


[Kill Text]
    doKilltxt()
{
self endon("disconnect");
self endon("death");
self.prevkills=self.pers["kills"];
for(;Winky Winky
{
if(self.prevkills<self.pers["kills"])
{
self thread TxtStrings();
self.prevkills=self.pers["kills"];
}
wait 0.2;
}
}
TxtStrings()
{
M=[];
M[0]="uMaaaaaaD Bro ?";
M[1]="Baaaaaaaalin !";
M[2]="Die Die Dieeeeee !";
M[3]="Break It Down.";
M[4]="xBaByxRx The King ?";
M[5]="Visit My Youtube Boy";
M[6]="Snnnnnipeeeeee";
M[7]="u Jelly ?";
M[8]="Killed";
M[9]="Pwneeeeed";
M[10]="Moment 4 Life ?"; [I][COLOR=#00FF00]//You Can Change The Names[/COLOR][/I] Smile
M[11]="xDDDDDD";
M[12]="LoooooooL";
M[13]="Suck It Bitch";
M[14]="Im Tha Best Niggaa";
M[15]="No";
T=self createFontString("objective",3);
T setPoint("CENTER","CENTER",0,0);
T setText("^1"+M[randomint(M.size)]);
wait 2;
T destroy();
}

[/QUOTE]

Dnto go ) why killtext dnt go?-.-
08-28-2011, 02:59 AM #18
Originally posted by sniipezZ View Post
Dnto go ) why killtext dnt go?-.-


Dont Go What ? Kill Texts Work...
08-28-2011, 04:44 AM #19
Originally posted by xBaByxR0Nii3x
Dont Go What ? Kill Texts Work...


it give me Unknown Function Not Happy or Sad

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo