Post: New Elevator Codes
07-12-2012, 05:06 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I always liked the cod4 hawkins zombieland elevators so I decided to make my own. Thanks to lightmodz for the fx, and correy for reminding me of setOrigin lmfao! anyway use it or not. Enjoy!

Add to init:
    
level.cod4elevator = loadfx( maps\mp\gametypes\_teams::getTeamFlagFX( "allies" ) );
level.light = loadfx( "misc/flare_ambient" );


Add these anywhere:
    
spawnElevator(location, height, id)
{
level endon("delete_tele_"+id);
playFX(level.cod4elevator, location);
playFX(level.light, location);
for(;Winky Winky
{
foreach(player in level.players)
{
if(distance2d(player.origin, location)<= 100)
{
for(i=0;i<height;i++)
{
player setOrigin(player.origin + (0,0,30));
wait 0.01;
}
}
}
wait 0.1;
}
}

deleteElevator(id)
{
level notify("delete_tele_"+id);
}


Create like this:
    
level thread createElevator((0,0,0), 20, 1);
(adsbygoogle = window.adsbygoogle || []).push({});

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

benjaming58, Correy, KingcreekS, Kitty=^.^=, Jango, xePixTvx
07-12-2012, 06:08 PM #2
PussayPatrol
I'm a neat monster...
Originally posted by GAMER View Post
I always liked the cod4 hawkins zombieland elevators so I decided to make my own. Thanks to lightmodz for the fx, and correy for reminding me of setOrigin lmfao! anyway use it or not. Enjoy!

Add to init:
    
level.cod4elevator = loadfx( maps\mp\gametypes\_teams::getTeamFlagFX( "allies" ) );
level.light = loadfx( "misc/flare_ambient" );


Add these anywhere:
    
spawnElevator(location, height, id)
{
level endon("delete_tele_"+id);
playFX(level.cod4elevator, location);
playFX(level.light, location);
for(;Winky Winky
{
foreach(player in level.players)
{
if(distance2d(player.origin, location)<= 100)
{
for(i=0;i<height;i++)
{
player setOrigin(player.origin + (0,0,30));
wait 0.01;
}
}
}
wait 0.1;
}
}

deleteElevator(id)
{
level notify("delete_tele_"+id);
}


Create like this:
    
level thread createElevator((0,0,0), 20, 1);


sorry but can you pls put [1.11] in the title its a tad misleading Sad Awesome i got so excited :'(

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo