crouch

Started by kokia, Oct 17, 2015, 07:04 AM

Previous topic - Next topic

kokia

how to disable crouch when a player crouched and tried to fire?

EK.IceFlake

Add this function
function onPlayerOnFireChange(player, firestatus)
{
    if (firestatus == true && player.IsCrouching == true)
    {
        player.SetAnim(0, 168);
    }
}
Beware of untestedness

KAKAN

#2
Quote from: NE.CrystalBlue on Oct 17, 2015, 08:20 AMAdd this function
function onPlayerOnFireChange(player, firestatus)
{
    if (firestatus == true && player.IsCrouching == true)
    {
        player.SetAnim(0, 168);
    }
}
Beware of untestedness
LOL!
Use this:-
function onPlayerCrouchChange( player, IsCrouchingNow ) {
if( IsCrouchingNow == true ) return 0;
else return 1;
}
oh no

EK.IceFlake

@KAKAN
He said how to disable crouch when a player crouched and tried to fire?
Not how to disable crouch itself.