Post: Rappelling in Highrise?
02-07-2011, 03:46 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I was looking through the mp_highrise ff file and noticed this code.
    SetupRappel()
{
// Press and hold ^3[{+activate}]^7 to rappel
//precacheString( &"MP_PRESS_TO_RAPPEL" );
trigs = getentarray( "rappeltrigger", "targetname" );
foreach ( trig in trigs )
{
org = getent( trig.target, "targetname" );
trig.rappelPoint = org.origin;
trig.dir = anglesToForward( org.angles );
org delete();
trig thread RappelThink();
}
foreach ( trig in trigs )
{
org = getent( trig.target, "targetname" );
if ( isdefined( org ) )
org delete();
}
}

RappelThink()
{
// Press and hold ^3[{+activate}]^7 to rappel
//self setHintString( &"MP_PRESS_TO_RAPPEL" );

while ( 1 )
{
self waittill( "trigger", player );
if ( !isPlayer( player ) )
continue;

if ( !player isOnGround() )
continue;

if ( isdefined( player.rapelling ) )
continue;

player thread Rappel( self );
}
}

Rappel( trig )
{
toRappelPoint = trig.rappelPoint - self.origin;
rappelPoint = self.origin + vectordot( toRappelPoint, trig.dir ) * trig.dir;
rappelPoint = ( rappelPoint[ 0 ], rappelPoint[ 1 ], trig.rappelPoint[ 2 ] );

upTime = .5;// sec
overTime = .75;// sec
downSpeed = 512;// units / sec

upPoint = self.origin;
upPoint = ( upPoint[ 0 ], upPoint[ 1 ], rappelPoint[ 2 ] );
overPoint = rappelPoint + trig.dir * 20;
tracePosition = playerPhysicsTrace( overPoint, overPoint + ( 0, 0, -10000 ), false, self );
downPoint = tracePosition + ( 0, 0, 16 );

org = spawn( "script_origin", self.origin );
org hide();

self.rapelling = true;
self _disableWeapon();
self linkto( org );
self PlayerLinkedOffsetEnable();

org moveto( upPoint, upTime, 0, 0 );
org waittill( "movedone" );
org moveto( overPoint, overTime, 0, 0 );
org waittill( "movedone" );

downTime = distance( overPoint, downPoint ) / downSpeed;

org moveto( downPoint, downTime, 0, 0 );
org waittill( "movedone" );

self _enableWeapon();
self unlink();
org delete();

self.rapelling = undefined;
}


Is it possible that you can use this?
(adsbygoogle = window.adsbygoogle || []).push({});

The following 3 users say thank you to PrOJenkz for this useful post:

Alfa, FourzerotwoFAILS, Nero.
02-07-2011, 04:04 AM #11
Pauly
Banned
Originally posted by PrOJenkz View Post
Thank you. Let me know how it goes. I updated my 3.41 like a idiot...So I cant switch patches.

didnt work it loaded up the patch but when i click it in the menu nothing happens sorry :(
02-07-2011, 04:06 AM #12
Originally posted by Mr.Chrome
didnt work it loaded up the patch but when i click it in the menu nothing happens sorry :(

Aw. It would have been a great find. But wait, if it didnt give a unknown function then maybe we need to find a code to spawn a rappel?
02-07-2011, 04:07 AM #13
Pauly
Banned
Originally posted by PrOJenkz View Post
Aw. It would have been a great find. But wait, if it didnt give a unknown function then maybe we need to find a code to spawn a rappel?

idk go for it
02-07-2011, 04:07 AM #14
Originally posted by Mr.Chrome
idk go for it

Thanks for trying it out though.
02-07-2011, 04:08 AM #15
Nero.
Space Ninja
Originally posted by Mr.Chrome
didnt work it loaded up the patch but when i click it in the menu nothing happens sorry :(


i thought that would happen
lol oh well would of been epic if it worked
maybe we should get elite mossy to make a code like that....hmmmm
02-07-2011, 04:10 AM #16
woofdawg233
Tokin' on Dat GreenStuff
Guy's, you can't just get a snippet of code and jam it in your patch... It's probably incomplete too, buy doesn't mean it's not important.
02-07-2011, 04:11 AM #17
Nero.
Space Ninja
Originally posted by woofdawg233 View Post
Guy's, you can't just get a snippet of code and jam it in your patch... It's probably incomplete too, buy doesn't mean it's not important.


true i guess
02-07-2011, 04:12 AM #18
Originally posted by woofdawg233 View Post
Guy's, you can't just get a snippet of code and jam it in your patch... It's probably incomplete too, buy doesn't mean it's not important.

Yea but Chrome said it loaded the patch with no unknown function or bad syntax error. The code should work but we are missing something. I dont know.

The following user thanked PrOJenkz for this useful post:

Nero.
02-07-2011, 04:13 AM #19
Nero.
Space Ninja
Originally posted by PrOJenkz View Post
Yea but Chrome said it loaded the patch with no unknown function or bad syntax error. The code should work but we are missing something. I dont know.


it probably doesnt know where to spawn one?
or maybe it spawns via crosshairs
idk well we need to work on this
DEREK where are you! Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo