Square Civilian Group: Members
Joined: Nov 4, 2010
QUOTE (JACK JONES @ Thursday, Apr 19 2012, 12:56)
Maybe the last number in the opcode 04EB is the problem. Put 1 instead of 0 like this - I haven't tested it:
CODE
{$CLEO} thread 'Crouch'
:0 wait 0 if 0597: actor $PLAYER_ACTOR crouching else_jump @0 if or 00E1: player 0 pressed_key 6 00E1: player 0 pressed_key 17 else_jump @0 04EB: AS_actor $PLAYER_ACTOR crouch 1 jump @0
If I'm right the player should get up either he fires or aims. If it's still not working then try 0 again.
it worked thanks.Wait was wrong.Working Code:
CODE
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$VERSION 3.1.0027} {$CLEO .cs}
//-------------MAIN--------------- thread 'JSCDRS' 0662: NOP "Crouch Cover System" 0662: NOP "COPYRIGHT 2012 JajıkSeverCodders(Gtasan1-Mr. Marston) Thanks to JACK JONES for his help."
:JSCDRS_11 wait 0 if 0597: actor $PLAYER_ACTOR crouching else_jump @JSCDRS_11 if or 00E1: player 0 pressed_key 6 00E1: player 0 pressed_key 17 else_jump @JSCDRS_11 04EB: AS_actor $PLAYER_ACTOR crouch 0 jump @JSCDRS_11
This post has been edited by Saint Burak on Thursday, Apr 19 2012, 13:17