ItsMods

Full Version: Slow down prone...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any way to tell when the prone key is pushed? i tried...


if(self buttonPressed( "prone" )
if(self buttonPressed( "+prone" )
if(self buttonPressed( "goprone" )


all dont seem to work, any suggestions or other ways i could do it?


You can't see if that button is pressed.
if(self getStance() == "prone")
(07-04-2011, 09:56)Tomsen1410 Wrote: [ -> ]if(self getStance() == "prone")

that can mean you pressed the button 1minute ago...
(07-04-2011, 10:24)Pozzuh Wrote: [ -> ]
(07-04-2011, 09:56)Tomsen1410 Wrote: [ -> ]if(self getStance() == "prone")

that can mean you pressed the button 1minute ago...

i know, i thoughed that the question was that
...lol
Code:
doslowprone()
{
self thread doslowprone2();
slowprone = undefined;
slowprone = true;
while( 1 )
    {
        if( slowprone != false && self GetStance() == "prone" )
        {
        wait 0.01;
        slowprone = false;
        wait 0.01;
        self setstance( "crouch" );
        wait 2;
        self setstance( "prone" );
        wait 0.01;
        }
    }
}

doslowprone2()
{
while( 1 )
    {
        if( self getstance() == "stand" )
        {
        wait 0.01;
        slowprone = true;
        wait 0.01;
        }
    }
}


wrote this tired as hell, guna go pass out n check back in the morning.. halp Big Grin it failed obviously, but i guess u get the idea.
getstance or setstance doesn't work does it?
both work, i just dont have the loop right some how...