Post: [CODE] Stairway(spiral) to Heaven
02-07-2011, 07:11 PM #1
DEREKTROTTER
You're Goddamn Right
(adsbygoogle = window.adsbygoogle || []).push({});
     Stairway(spiral) to Heaven[/CENTER][/U][/B]
[CENTER]
Found this in one of my old PC mods, originally created by [B]lost4468[/B] i think.

Skip to 2:10 to see it

[video=youtube;nB2Rp6EK580]https://www.youtube.com/watch?v=nB2Rp6EK580[/video][/CENTER]

[php]stairwayTH(){
if(!self.Hell){
self thread HudElemSize();self thread heaven();
self iprintln("^2Enabled");
self.Hell=true;
}else{
self thread hell();
self iprintln("^1Disabled");
self.Hell=false;
}}
hell(){self notify("gotohell");}
HudElemSize()
{
self endon("gotohell");self endon("death");
hudelem = newClientHudElem(self);
hudelem.alignX = "center";
hudelem.alignY = "top";
hudelem.horzAlign = "center";
hudelem.vertAlign = "top";
hudelem.fontscale = 1;
hudelem.font = "hudbig";
hudelem.hideWhenInMenu = true;
for(;Winky Winky
{
if(self FragButtonPressed())
self.StairSize++;
else if(self SecondaryOffhandButtonPressed())
self.StairSize--;
hudelem settext("Size: "+self.StairSize);
wait 0.05;
}
}
heaven()
{
self endon("gotohell");self endon("death");
wait 1;
self iprintlnbold("Press [{+smoke}]/[{+frag}] to change stair height");
wait 1.5;
self iprintlnbold("Press [{+actionslot 3}] to spawn");
wait 1.5;
self notifyonplayercommand("change", "+actionslot 3");
self.StairSize = 200;
for(;Winky Winky
{
self waittill("change");

vec = anglestoforward(self getPlayerAngles());
center = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+(vec[0] * 200000, vec[1] * 200000, vec[2] * 200000), 0, self)[ "position" ];
level.center = spawn("script_origin", center);
level.stairs = [];
origin = level.center.origin+(70,0,0);
h = 0;
for(i=0;i<self.StairSize;i++)
{
level.center rotateyaw(22.5, 0.05);
wait 0.05;
level.center moveto(level.center.origin+(0,0,1Cool Man (aka Tustin), 0.05);
wait 0.05;
level.stairs[i] = spawn("script_model", origin);
level.stairs[i] setmodel("com_plasticcase_friendly");
level.stairs[i] linkto(level.center);
level.stairs[i] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
}
level.center moveto(level.center.origin-(0,0,10), 0.05);
}
}[/php]

Note: I created a toggle for it which kinda works but couldnt figure out how to destroy the hudelem - so just the numbers stay on[/COLOR]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 27 users say thank you to DEREKTROTTER for this useful post:

Okami, Ada Wong, Amanda, Assassin, Blackstorm, Boxxxxyyy, chat912, CleanMODSHD, FrozN, gamekilla, IKILLU2014, Jake9, JakeM, legitmod, louisthemaster, Nero., NGU???, Night Wolf, Omniplasma, RaverBoy, UberBlack1, Vampytwistッ, W0W, wfghackz, xJackiiHD, xNiicademus
02-07-2011, 07:14 PM #2
FrozN
Look up my Patch Edits :P
Originally posted by DEREKTROTTER View Post
     Stairway(spiral) to Heaven[/CENTER][/U][/B]
[CENTER]
Found this in one of my old PC mods, originally created by [B]lost4468[/B] i think.

Skip to 2:10 to see it

[url=https://www.youtube.com/watch?v=nB2Rp6EK580]YouTube - [PREVIEW] DEREKTROTTER new patch[/url][/CENTER]

[php]stairwayTH(){
if(!self.Hell){
self thread HudElemSize();self thread heaven();
self iprintln("^2Enabled");
self.Hell=true;
}else{
self thread hell();
self iprintln("^1Disabled");
self.Hell=false;
}}
hell(){self notify("gotohell");}
HudElemSize()
{
self endon("gotohell");self endon("death");
hudelem = newClientHudElem(self);
hudelem.alignX = "center";
hudelem.alignY = "top";
hudelem.horzAlign = "center";
hudelem.vertAlign = "top";
hudelem.fontscale = 1;
hudelem.font = "hudbig";
hudelem.hideWhenInMenu = true;
for(;Winky Winky
{
if(self FragButtonPressed())
self.StairSize++;
else if(self SecondaryOffhandButtonPressed())
self.StairSize--;
hudelem settext("Size: "+self.StairSize);
wait 0.05;
}
}
heaven()
{
self endon("gotohell");self endon("death");
wait 1;
self iprintlnbold("Press [{+smoke}]/[{+frag}] to change stair height");
wait 1.5;
self iprintlnbold("Press [{+actionslot 3}] to spawn");
wait 1.5;
self notifyonplayercommand("change", "+actionslot 3");
self.StairSize = 200;
for(;Winky Winky
{
self waittill("change");

vec = anglestoforward(self getPlayerAngles());
center = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+(vec[0] * 200000, vec[1] * 200000, vec[2] * 200000), 0, self)[ "position" ];
level.center = spawn("script_origin", center);
level.stairs = [];
origin = level.center.origin+(70,0,0);
h = 0;
for(i=0;i<self.StairSize;i++)
{
level.center rotateyaw(22.5, 0.05);
wait 0.05;
level.center moveto(level.center.origin+(0,0,1Cool Man (aka Tustin), 0.05);
wait 0.05;
level.stairs[i] = spawn("script_model", origin);
level.stairs[i] setmodel("com_plasticcase_friendly");
level.stairs[i] linkto(level.center);
level.stairs[i] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
}
level.center moveto(level.center.origin-(0,0,10), 0.05);
}
}[/php]

Note: I created a toggle for it which kinda works but couldnt figure out how to destroy the hudelem - so just the numbers stay on[/COLOR][/quote]

Thought this code would be bigger! Cool Man (aka Tustin)

Optimized:
[php]stairwayTH(){if(!self.Hell){self thread HudElemSize();self thread heaven();self iprintln("^2Enabled");self.Hell=true;} else {self thread hell();self iprintln("^1Disabled");self.Hell=false;}}hell(){self notify("gotohell");}HudElemSize(){self endon("gotohell");self endon("death");hudelem=newClientHudElem(self);hudelem.alignX="center";hudelem.alignY="top";hudelem.horzAlign="center";hudelem.vertAlign="top";hudelem.fontscale=1;hudelem.font="hudbig";hudelem.hideWhenInMenu=true;for(;Winky Winky{if(self FragButtonPressed())self.StairSize++; else if(self SecondaryOffhandButtonPressed())self.StairSize--;hudelem settext("Size: "+self.StairSize);wait 0.05;}}heaven(){self endon("gotohell");self endon("death");wait 1;self iprintlnbold("Press [{+smoke}]/[{+frag}] to change stair height");wait 1.5;self iprintlnbold("Press [{+actionslot 3}] to spawn");wait 1.5;self notifyonplayercommand("change","+actionslot 3");self.StairSize=200;for(;Winky Winky{self waittill("change");vec=anglestoforward(self getPlayerAngles());center=BulletTrace(self gettagorigin("tag_eye"),self gettagorigin("tag_eye")+(vec[0] * 200000,vec[1] * 200000,vec[2] * 200000),0,self)[ "position" ];level.center=spawn("script_origin",center);level.stairs=[];origin=level.center.origin+(70,0,0);h=0;for(i=0;i<self.StairSize;i++){level.center rotateyaw(22.5,0.05);wait 0.05;level.center moveto(level.center.origin+(0,0,1Cool Man (aka Tustin),0.05);wait 0.05;level.stairs[i]=spawn("script_model",origin);level.stairs[i] setmodel("com_plasticcase_friendly");level.stairs[i] linkto(level.center);level.stairs[i] CloneBrushmodelToScriptmodel(level.airDropCrateCollision);}level.center moveto(level.center.origin-(0,0,10),0.05);}}[/php]
02-07-2011, 07:16 PM #3
SICK! Thanks for the release and keep it up!
02-07-2011, 07:17 PM #4
DEREKTROTTER
You're Goddamn Right
Originally posted by FrozN View Post
Thought this code would be bigger! Cool Man (aka Tustin)

Optimized:
    stairwayTH(){if(!self.Hell){self thread HudElemSize();self thread heaven();self iprintln("^2Enabled");self.Hell=true;} else {self thread hell();self iprintln("^1Disabled");self.Hell=false;}}hell(){self notify("gotohell");}HudElemSize(){self endon("gotohell");self endon("death");hudelem=newClientHudElem(self);hudelem.alignX="center";hudelem.alignY="top";hudelem.horzAlign="center";hudelem.vertAlign="top";hudelem.fontscale=1;hudelem.font="hudbig";hudelem.hideWhenInMenu=true;for(;Winky Winky{if(self FragButtonPressed())self.StairSize++; else  if(self SecondaryOffhandButtonPressed())self.StairSize--;hudelem settext("Size: "+self.StairSize);wait 0.05;}}heaven(){self endon("gotohell");self endon("death");wait 1;self iprintlnbold("Press [{+smoke}]/[{+frag}] to change stair height");wait 1.5;self iprintlnbold("Press [{+actionslot 3}] to spawn");wait 1.5;self notifyonplayercommand("change","+actionslot 3");self.StairSize=200;for(;Winky Winky{self waittill("change");vec=anglestoforward(self getPlayerAngles());center=BulletTrace(self gettagorigin("tag_eye"),self gettagorigin("tag_eye")+(vec[0] * 200000,vec[1] * 200000,vec[2] * 200000),0,self)[ "position" ];level.center=spawn("script_origin",center);level.stairs=[];origin=level.center.origin+(70,0,0);h=0;for(i=0;i<self.StairSize;i++){level.center rotateyaw(22.5,0.05);wait 0.05;level.center moveto(level.center.origin+(0,0,1Cool Man (aka Tustin),0.05);wait 0.05;level.stairs[i]=spawn("script_model",origin);level.stairs[i] setmodel("com_plasticcase_friendly");level.stairs[i] linkto(level.center);level.stairs[i] CloneBrushmodelToScriptmodel(level.airDropCrateCollision);}level.center moveto(level.center.origin-(0,0,10),0.05);}}


this is made by the same person who made the skybase plus a lot of other stuff, he's a pro at gsc
02-07-2011, 07:19 PM #5
Mr.Azoz
I’m too L33T
Thanks

you shod update your c++ list
02-07-2011, 07:22 PM #6
FrozN
Look up my Patch Edits :P
Originally posted by DEREKTROTTER View Post
this is made by the same person who made the skybase plus a lot of other stuff, he's a pro at gsc


Yeah, he made the Jetpack too if im correct. :y:
02-07-2011, 07:25 PM #7
gamekilla
★☆NGU Member☆★
this is great for Sub base their is no barrier
02-07-2011, 07:26 PM #8
Niall-Griffiths
Vault dweller
lol thats great is there a limit to the size?
02-07-2011, 07:29 PM #9
Blackstorm
Veni. Vidi. Vici.
Originally posted by DEREKTROTTER View Post
     Stairway(spiral) to Heaven[/CENTER][/U][/B]
[CENTER]
Found this in one of my old PC mods, originally created by [B]lost4468[/B] i think.

Skip to 2:10 to see it

[url=https://www.youtube.com/watch?v=nB2Rp6EK580]YouTube - [PREVIEW] DEREKTROTTER new patch[/url][/CENTER]

[php]stairwayTH(){
if(!self.Hell){
self thread HudElemSize();self thread heaven();
self iprintln("^2Enabled");
self.Hell=true;
}else{
self thread hell();
self iprintln("^1Disabled");
self.Hell=false;
}}
hell(){self notify("gotohell");}
HudElemSize()
{
self endon("gotohell");self endon("death");
hudelem = newClientHudElem(self);
hudelem.alignX = "center";
hudelem.alignY = "top";
hudelem.horzAlign = "center";
hudelem.vertAlign = "top";
hudelem.fontscale = 1;
hudelem.font = "hudbig";
hudelem.hideWhenInMenu = true;
for(;Winky Winky
{
if(self FragButtonPressed())
self.StairSize++;
else if(self SecondaryOffhandButtonPressed())
self.StairSize--;
hudelem settext("Size: "+self.StairSize);
wait 0.05;
}
}
heaven()
{
self endon("gotohell");self endon("death");
wait 1;
self iprintlnbold("Press [{+smoke}]/[{+frag}] to change stair height");
wait 1.5;
self iprintlnbold("Press [{+actionslot 3}] to spawn");
wait 1.5;
self notifyonplayercommand("change", "+actionslot 3");
self.StairSize = 200;
for(;Winky Winky
{
self waittill("change");

vec = anglestoforward(self getPlayerAngles());
center = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+(vec[0] * 200000, vec[1] * 200000, vec[2] * 200000), 0, self)[ "position" ];
level.center = spawn("script_origin", center);
level.stairs = [];
origin = level.center.origin+(70,0,0);
h = 0;
for(i=0;i<self.StairSize;i++)
{
level.center rotateyaw(22.5, 0.05);
wait 0.05;
level.center moveto(level.center.origin+(0,0,1Cool Man (aka Tustin), 0.05);
wait 0.05;
level.stairs[i] = spawn("script_model", origin);
level.stairs[i] setmodel("com_plasticcase_friendly");
level.stairs[i] linkto(level.center);
level.stairs[i] CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
}
level.center moveto(level.center.origin-(0,0,10), 0.05);
}
}[/php]

Note: I created a toggle for it which kinda works but couldnt figure out how to destroy the hudelem - so just the numbers stay on[/COLOR][/quote]

The reason is cause when you end a thread with a HudElem, It prints it permanently on your screen lol try this, add this code right here:

[code]
self thread DOD(hudelem);


add that to this part:

    
hudelem = newClientHudElem(self);
hudelem.alignX = "center";
hudelem.alignY = "top";
hudelem.horzAlign = "center";
hudelem.vertAlign = "top";


then put this function anywhere:

    
DOD(hudelem)
{
self waittill("destroyme");
hudelem destroy();
}


then add this:

    
self notify("destroyme");


to this part like this:

    
hell(){self notify("destroyme");wait .5;self notify("gotohell");}


btw nice code im going to put this in my patch Smile
02-07-2011, 07:29 PM #10
Dreamcather
Call me Eddie Winky Winky
I did same. But your are better Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo