Post: x_DaftVader_x's Enter the Matrix for cod4
02-24-2012, 11:38 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey here it is:

Video:




code:

    EnterTheMatrix()
{
for(i=0;i < level.players.size;i++)
{
player=level.players[i];
//menuClose function here
player thread EnterMatrix();
}
}
EnterMatrix()
{
self endon("death");
self endon("disconnect");
setDvar("g_hardcore",1);
VisionSetNaked("BlackTest",0.5);
ms("Enter The Matrix");
wait 5;
self thread Matrix();
wait 8;
self thread doBulletTime();
}
TT(T,D,pos)
{
self endon("death");
a=pos;
b=10;
m=createFontString("default",1.5);
m SetText(T);
m.x=a;
m.y=b;
m.alignX="top";
m.alignY="top";
m.horzAlign="top";
m.vertAlign="top";
m.sort=3;
m.foreground=false;
m transitionPulseFXIn(3,5);
m trans(pos);
m.color =(.6 ,.8,.6);
m.alpha=1;
m fadeOverTime(0.1);
m.alpha=.2;
wait 0.1;
m fadeOverTime(0.1);
m.alpha=1;
m.color =(1.0,1.0,1.0);
wait 0.1;
m fadeOverTime(0.1);
m.alpha=.2;
wait 0.1;
m fadeOverTime(0.1);
m.alpha=3;
m.color =(.6 ,.8,.6);
m.alpha=1;
m fadeOverTime(0.1);
m.alpha=.2;
wait 0.1;
m fadeOverTime(0.1);
m.alpha=1;
m.color =(1.0,1.0,1.0);
wait 0.1;
m fadeOverTime(0.1);
m.alpha=.2;
wait 0.1;
m fadeOverTime(0.1);
m.alpha=1;
m.color =(.6 ,.8,.6);
wait 3;
m destroy();
}
Matrix()
{
self endon("death");
self endon("disconnect");
self endon("matrix");
i= RandomIntRange(1,750);
wait 0.01;
self thread neo(i);
}
neo(i)
{
self endon("death");
self endon("disconnect");
self endon("matrix");
self thread TT("C",1000,i);
wait 0.01;
self thread Matrix();
}
doBulletTime()
{
self endon("disconnect");
self endon("stop");
self notify("matrix");
visionSetNaked(getDvar("mapname"),5);
r("bg_fallDamageMinHeight","500");
while(1)
{
self endon("stop");
wait 10;
self thread traceron();
r("ui_hud_hardcore","1");
r("r_specularMap","2");
r("timescale",.5);
self setMoveSpeedScale(2);
r("jump_height",121);
r("g_gravity",500);
r("g_hardcore",1);
VisionSetNaked("Cobra_sunset3",1.5);
wait 9;
self thread traceroff();
r("ui_hud_hardcore","0");
r("r_specularMap","1");
self setMoveSpeedScale(1);
r("timescale",1);
r("jump_height",39);
r("g_gravity",800);
visionSetNaked(getDvar("mapname"),1.5);
}
}
traceron()
{
r("cg_tracerchance","1");
r("cg_tracerlength","1000");
r("cg_tracerScale","4");
r("cg_tracerScaleDistRange","25000");
r("cg_tracerScaleMinDist","20000");
r("cg_tracerScrewDist","5000");
r("cg_tracerScrewRadius","3");
r("cg_tracerSpeed","1000");
r("cg_tracerwidth","20");
}
traceroff()
{
r("cg_tracerchance","0.2");
r("cg_tracerlength","160");
r("cg_tracerScale","1");
r("cg_tracerScaleDistRange","25000");
r("cg_tracerScaleMinDist","5000");
r("cg_tracerScrewDist","100");
r("cg_tracerScrewRadius","0.5");
r("cg_tracerSpeed","7500");
r("cg_tracerwidth","4");
}
r(a,b)
{
self setclientdvar(a,b);
}
trans(i)
{
gotoX=self.xOffset;
gotoY=self.yOffset;
gotoY +=(1000+i);
self.alpha=1;
self moveOverTime(Cool Man (aka Tustin);
self.x=gotoX;
self.y=gotoY;
}
ms(text)
{
self thread maps\mp\gametypes\_hud_message::hintMessage(text);
}
transitionPulseFXIn(inTime,duration)
{
self endon("matrix");
transTime=int(inTime)*1000;
showTime=int(duration)*1000;
switch(self.elemType)
{
case "font": case "timer": self setPulseFX(transTime+250,showTime+transTime,transT ime+250);
break;
default: break;
}
}


Compressed Version (to safe space Happy)
    EnterTheMatrix(){for(i=0;i < level.players.size;i++){player=level.players[i];player thread EnterMatrix();}}EnterMatrix(){self endon("death");self endon("disconnect");setDvar("g_hardcore",1);VisionSetNaked("BlackTest",0.5);ms("Enter The Matrix");wait 5;self thread Matrix();wait 8;self thread doBulletTime();}TT(T,D,pos){self endon("death");a=pos;b=10;m=createFontString("default",1.5);m SetText(T);m.x=a;m.y=b;m.alignX="top";m.alignY="top";m.horzAlign="top";m.vertAlign="top";m.sort=3;m.foreground=false;m transitionPulseFXIn(3,5);m trans(pos);m.color =(.6 ,.8,.6);m.alpha=1;m fadeOverTime(0.1);m.alpha=.2;wait 0.1;m fadeOverTime(0.1);m.alpha=1;m.color =(1.0,1.0,1.0);wait 0.1;m fadeOverTime(0.1);m.alpha=.2;wait 0.1;m fadeOverTime(0.1);m.alpha=3;m.color =(.6 ,.8,.6);m.alpha=1;m fadeOverTime(0.1);m.alpha=.2;wait 0.1;m fadeOverTime(0.1);m.alpha=1;m.color =(1.0,1.0,1.0);wait 0.1;m fadeOverTime(0.1);m.alpha=.2;wait 0.1;m fadeOverTime(0.1);m.alpha=1;m.color =(.6 ,.8,.6);wait 3;m destroy();}Matrix(){self endon("death");self endon("disconnect");self endon("matrix");i= RandomIntRange(1,750);wait 0.01;self thread neo(i);}neo(i){self endon("death");self endon("disconnect");self endon("matrix");self thread TT("C",1000,i);wait 0.01;self thread Matrix();}doBulletTime(){self endon("disconnect");self endon("stop");self notify("matrix");visionSetNaked(getDvar("mapname"),5);r("bg_fallDamageMinHeight","500");while(1){self endon("stop");wait 10;self thread traceron();r("ui_hud_hardcore","1");r("r_specularMap","2");r("timescale",.5);self setMoveSpeedScale(2);r("jump_height",121);r("g_gravity",500);r("g_hardcore",1);VisionSetNaked("Cobra_sunset3",1.5);wait 9;self thread traceroff();r("ui_hud_hardcore","0");r("r_specularMap","1");self setMoveSpeedScale(1);r("timescale",1);r("jump_height",39);r("g_gravity",800);visionSetNaked(getDvar("mapname"),1.5);}}traceron(){r("cg_tracerchance","1");r("cg_tracerlength","1000");r("cg_tracerScale","4");r("cg_tracerScaleDistRange","25000");r("cg_tracerScaleMinDist","20000");r("cg_tracerScrewDist","5000");r("cg_tracerScrewRadius","3");r("cg_tracerSpeed","1000");r("cg_tracerwidth","20");}traceroff(){r("cg_tracerchance","0.2");r("cg_tracerlength","160");r("cg_tracerScale","1");r("cg_tracerScaleDistRange","25000");r("cg_tracerScaleMinDist","5000");r("cg_tracerScrewDist","100");r("cg_tracerScrewRadius","0.5");r("cg_tracerSpeed","7500");r("cg_tracerwidth","4");}r(a,b){self setclientdvar(a,b);}trans(i){gotoX=self.xOffset;gotoY=self.yOffset;gotoY +=(1000+i);self.alpha=1;self moveOverTime(Cool Man (aka Tustin);self.x=gotoX;self.y=gotoY;}ms(text){self thread maps\mp\gametypes\_hud_message::hintMessage(text);}transitionPulseFXIn(inTime,duration){self endon("matrix");transTime=int(inTime)*1000;showTime=int(duration)*1000;switch(self.elemType){case "font": case "timer": self setPulseFX(transTime+250,showTime+transTime,transT ime+250);break;default: break;}}

Credits to x_DaftVader_x & agentGOD
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to ThePhantom410. for this useful post:

247Yamato, FAKA_ELITE, IVI40A3Fusionz, x_DaftVader_x, ZeiiKeN

The following user groaned ThePhantom410. for this awful post:

Taylor
02-24-2012, 01:54 PM #2
well all im going to say is string overflow.


edit: wow Yamato all you do is groan me on all my post's, no matter what i do. you must sit on this site all day because every time i post 10 secs later you groan me. stare

The following user thanked IELIITEMODZX for this useful post:

Taylor

The following 2 users groaned at IELIITEMODZX for this awful post:

247Yamato, nZxMikeeeyx
02-24-2012, 02:39 PM #3
Originally posted by IELIITEMODZX View Post
well all im going to say is string overflow.


edit: wow Yamato all you do is groan me on all my post's, no matter what i do. you must sit on this site all day because every time i post 10 secs later you groan me. stare



works fine for me on PS3 ^^
02-24-2012, 02:43 PM #4
Originally posted by sniipezZ View Post
works fine for me on PS3 ^^
you must not no mothing about strings because if you use this is a lobby online with that menu it will overflow. Happy
02-24-2012, 02:54 PM #5
Originally posted by IELIITEMODZX View Post
well all im going to say is string overflow.


edit: wow Yamato all you do is groan me on all my post's, no matter what i do. you must sit on this site all day because every time i post 10 secs later you groan me. stare


:carling: .

The following user thanked nZxMikeeeyx for this useful post:

247Yamato
02-24-2012, 05:52 PM #6
Taylor
Former Black Knight.
Originally posted by IELIITEMODZX View Post
well all im going to say is string overflow.


edit: wow Yamato all you do is groan me on all my post's, no matter what i do. you must sit on this site all day because every time i post 10 secs later you groan me. stare


Elite, Some People Doesnt Undertsnad Simple Concepts, They Just Put Together What Looks Cool...... They Dont Know How It Works, They Dont Understand That Cod4 Can Not Handle Stuff Like This......Just Let It Be, And Hope They Don't Complain On How To Fix When They Get The Error:

    
[FONT=Arial Black][SIZE=3][COLOR="#FFF000"]ERROR:[/COLOR][/SIZE][/FONT]
String Overflow Error:
//error shit here.......

The following user thanked Taylor for this useful post:

IELIITEMODZX
02-24-2012, 05:58 PM #7
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xYARDSALEx View Post
Elite, Every1 Doesnt Undertsnad Simple Concepts, They Just Put Together What Looks Cool...... They Dont Know How It Works, They Dont Understand That Cod4 Can Not Handle Stuff Like This......


You'd be surprised about the handful or people who know quite alot about string overflow, it's the less experienced coders that just put things together Winky Winky.
02-24-2012, 06:04 PM #8
Taylor
Former Black Knight.
Originally posted by IVI40A3Fusionz View Post
You'd be surprised about the handful or people who know quite alot about string overflow, it's the less experienced coders that just put things together Winky Winky.

I Know, I Changed What I Wrote, Kieran Said To Change To SOme People Happy
02-24-2012, 06:15 PM #9
Originally posted by IELIITEMODZX View Post
well all im going to say is string overflow.


You would think so but something is strange here. Look at the two threads for the matrix text,
    Matrix()
{
self endon("death");
self endon("disconnect");
self endon("matrix");
i= RandomIntRange(1,750);
wait 0.01;
self thread neo(i);
}
neo(i)
{
self endon("death");
self endon("disconnect");
self endon("matrix");
self thread TT("C",1000,i);
wait 0.01;
self thread Matrix();
}

it creates a letter every 0.01 + 0.01 seconds (0.02), and the run time is 8 seconds,
    self thread Matrix();
wait 8;


so isn't that 400 text strings or is my maths wrong tonight?

that should overflow even in single player on pc, but the video shows it working... :confused:
02-24-2012, 06:19 PM #10
no lol say im useing a string "daft is sexy" then i use it again it will only count as 1 string.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo