ok if i understand the code right, the only essential line for this is "r6pawn.ServerSuicidePawn(suiciding);" the rest is all just toggling on and off through the console. ive put this line in my postrender, and used a keyevent to toggle it, but it has no effect in game ... compiles nicely though.
EDIT: did some searching in the source, in r6engine.r6pawn, found the serversuicidepawn function, but cant make heads or tails of it ... still learning uscript, can anyone figure this out?
PHP Code:
//------------------------------------------------------------------
// ServerSuicidePawn: for debugging
//
//------------------------------------------------------------------
function ServerSuicidePawn(BYTE bSuicidedType)
{
if ( InGodMode() )
return;
#ifdefDEBUG if ( bShowLog ) logX( "ServerSuicidePawn"); #endif
m_bSuicideType = bSuicidedType;
velocity = vect(0,0,0);
acceleration = vect(0,0,0);
m_fFallingHeight = Location.Z + 1000;
Landed( vect(0,0,0) );
}