Post: How to make a solid stairway?
03-04-2012, 11:03 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hey so heres the code:
    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;
}
}
startDpad()
{
self.curweap = self GetCurrentWeapon();
self SetActionSlot( 3, "weapon","smoke_grenade_mp" );
self giveweapon("smoke_grenade_mp");
self thread monitorDpad();
}
monitorDpad()
{
self endon ( "disconnect" );
for(;Winky Winky
{
self waittill("weapon_change");
if(self getCurrentWeapon()=="smoke_grenade_mp")
{
self notify("change");
self TakeWeapon( "smoke_grenade_mp");
self switchToWeapon( self.curweap );
self giveweapon("smoke_grenade_mp");
}
wait 0.02;
}
}
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 thread startDpad();
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 = spawn("script_model", origin);
level.stairs setmodel("com_plasticcase_beige_big");
level.stairs linkto(level.center);
level.stairs Solid();
level.solid=spawn("trigger_radius",(0,0,0),70,70,60 );
level.solid.origin =(origin);
level.solid setContents(1);
}
level.center moveto(level.center.origin-(0,0,10), 0.05);
}
}


Hope u can help me, cuz i tried everything -.-
(adsbygoogle = window.adsbygoogle || []).push({});
03-05-2012, 06:47 PM #11
Originally posted by thumper View Post
i dont know if this helps but if u go right to the end of this vid u can see draftvadar has stairs that work and it has ramps as well

these are scripts from mw2, and these get 2 origins, then build from origin to origin.

the script he wants fixing spawns from 1 origin. so hes better off getting the cod4 script from the (cod4 tree patch)
03-05-2012, 06:50 PM #12
Originally posted by IELIITEMODZX View Post
these are scripts from mw2, and these get 2 origins, then build from origin to origin.

the script he wants fixing spawns from 1 origin. so hes better off getting the cod4 script from the (cod4 tree patch)

yeah but the video is from the red cod4 patch
03-05-2012, 06:52 PM #13
Originally posted by thumper View Post
yeah but the video is from the red cod4 patch
yes ino Happy but it spawns from origin to origin, the script he wants fixing spawns from 1 origin. hes better off looking in the cod4 tree patch for the script.
03-05-2012, 06:54 PM #14
Originally posted by IELIITEMODZX View Post
yes ino Happy but it spawns from origin to origin, the script he wants fixing spawns from 1 origin.
oh sorry lol im new to this. can i have ur cod4 wasted patch for my pc please . it looks realy cool.
03-05-2012, 06:59 PM #15
Winky Winky everyone starts somewhere. and im not giving it out ATM. sorry [ATTACH=CONFIG]15803[/ATTACH]
03-05-2012, 07:01 PM #16
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by IELIITEMODZX View Post
Winky Winky everyone starts somewhere. and im not giving it out ATM. sorry [ATTACH=CONFIG]15803[/ATTACH]


Oh yeah i said you had til today to release other wise your dancing man would get it well guess what he's gonna get it :p.
03-05-2012, 07:20 PM #17
Originally posted by IVI40A3Fusionz View Post
Oh yeah i said you had til today to release other wise your dancing man would get it well guess what he's gonna get it :p.
can i have ur patch then please?
03-05-2012, 07:26 PM #18
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by thumper View Post
can i have ur patch then please?


It's a private patch meaning no one will ever have it :evil:.
03-05-2012, 07:29 PM #19
Originally posted by IVI40A3Fusionz View Post
Oh yeah i said you had til today to release other wise your dancing man would get it well guess what he's gonna get it :p.
Nooooooooo you leave him alone :( bitch Winky Winky

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo