Quantcast

Jump to content

» «
Photo

Trying Crouch Cover System But Does Not Work

18 replies to this topic
Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#1

Posted 19 April 2012 - 10:04 AM

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'

:JSCDRS_11
wait 0
if
0597:   actor $PLAYER_ACTOR crouching
00E1:   player 0 pressed_key 17
else_jump @JSCDRS_11
wait 0
04EB: AS_actor $PLAYER_ACTOR crouch 0
wait 0
if
80E1:   not player 0 pressed_key 17
else_jump @JSCDRS_11
04EB: AS_actor $PLAYER_ACTOR crouch 1
wait 0
jump @JSCDRS_11


it does not get up while aiming.I dont know what I have to do.

ChopTheDog.
  • ChopTheDog.

    War. War never changes.

  • Members
  • Joined: 31 May 2010
  • None

#2

Posted 19 April 2012 - 10:23 AM

QUOTE (Saint Burak @ Thursday, Apr 19 2012, 11:04)
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'

:JSCDRS_11
wait 0
if
0597:   actor $PLAYER_ACTOR crouching
00E1:   player 0 pressed_key 17
else_jump @JSCDRS_11
wait 0
04EB: AS_actor $PLAYER_ACTOR crouch 0
wait 0
if
80E1:   not player 0 pressed_key 17
else_jump @JSCDRS_11
04EB: AS_actor $PLAYER_ACTOR crouch 1
wait 0
jump @JSCDRS_11


it does not get up while aiming.I dont know what I have to do.

CODE
{$CLEO}
0000:

:1
wait 0
if and
0597:   actor $PLAYER_ACTOR crouching
00E1:   player 0 pressed_key 17
jf @1
04EB: AS_actor $PLAYER_ACTOR crouch 0
if
80E1:   not player 0 pressed_key 17
jf @1
04EB: AS_actor $PLAYER_ACTOR crouch 1
jump @1

Ashwin.Star
  • Ashwin.Star

    I'm a Business Boy Now !

  • Members
  • Joined: 14 Nov 2010
  • India

#3

Posted 19 April 2012 - 10:26 AM Edited by Ashwin the new boy, 19 April 2012 - 10:29 AM.

Good Timing Sorrow!

//<- Given script removed ->\\

What you want the Script to do ?

Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#4

Posted 19 April 2012 - 10:26 AM

QUOTE (The_Sorrow @ Thursday, Apr 19 2012, 10:23)
QUOTE (Saint Burak @ Thursday, Apr 19 2012, 11:04)
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'

:JSCDRS_11
wait 0
if
0597:   actor $PLAYER_ACTOR crouching
00E1:   player 0 pressed_key 17
else_jump @JSCDRS_11
wait 0
04EB: AS_actor $PLAYER_ACTOR crouch 0
wait 0
if
80E1:   not player 0 pressed_key 17
else_jump @JSCDRS_11
04EB: AS_actor $PLAYER_ACTOR crouch 1
wait 0
jump @JSCDRS_11


it does not get up while aiming.I dont know what I have to do.

CODE
{$CLEO}
0000:

:1
wait 0
if and
0597:   actor $PLAYER_ACTOR crouching
00E1:   player 0 pressed_key 17
jf @1
04EB: AS_actor $PLAYER_ACTOR crouch 0
if
80E1:   not player 0 pressed_key 17
jf @1
04EB: AS_actor $PLAYER_ACTOR crouch 1
jump @1

cant stand up while aiming.

Jack...
  • Jack...

    Wanted Level modifications

  • Members
  • Joined: 06 Dec 2011
  • Serbia

#5

Posted 19 April 2012 - 10:36 AM

Key 6 is for aiming. Key 17 is for firying. If you want the both then put them both in the conditional checking.

Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#6

Posted 19 April 2012 - 10:36 AM Edited by Saint Burak, 19 April 2012 - 10:38 AM.

I want to do Crouch Cover System.if I am crouching and firing, get up.I cant explain.

I have tried checking aim and firing but still does not work

Ashwin.Star
  • Ashwin.Star

    I'm a Business Boy Now !

  • Members
  • Joined: 14 Nov 2010
  • India

#7

Posted 19 April 2012 - 10:46 AM

you want the player to get up if you Fires during crouch ?

Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#8

Posted 19 April 2012 - 10:50 AM

QUOTE (Ashwin the new boy @ Thursday, Apr 19 2012, 10:46)
you want the player to get up if you Fires during crouch ?

yes that's what I want.

Jack...
  • Jack...

    Wanted Level modifications

  • Members
  • Joined: 06 Dec 2011
  • Serbia

#9

Posted 19 April 2012 - 10:54 AM Edited by JACK JONES, 19 April 2012 - 10:57 AM.

For what game are you building the scrypt? VC, SA or GTAIII? I'm asking because the opcode 0597 working only for San Andreas.

Ashwin.Star
  • Ashwin.Star

    I'm a Business Boy Now !

  • Members
  • Joined: 14 Nov 2010
  • India

#10

Posted 19 April 2012 - 10:55 AM Edited by Ashwin the new boy, 19 April 2012 - 10:58 AM.

its Easy,
CODE

{$CLEO}
thread 'Crouch'

:0
wait 0
if and
0597:   actor $PLAYER_ACTOR crouching
00E1:   player 0 pressed_key 17
jf @0
04EB: AS_actor $PLAYER_ACTOR crouch 0
jump @0


::Edit::

@JJ
QUOTE
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder....files/SASCM.rar) on 13.10.2007

means it SA,
some time if not written
CODE
{$VERSION 3.1.0027}

also means SA,

Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#11

Posted 19 April 2012 - 11:05 AM

QUOTE (Ashwin the new boy @ Thursday, Apr 19 2012, 10:55)
its Easy,
CODE

{$CLEO}
thread 'Crouch'

:0
wait 0
if and
0597:   actor $PLAYER_ACTOR crouching
00E1:   player 0 pressed_key 17
jf @0
04EB: AS_actor $PLAYER_ACTOR crouch 0
jump @0


::Edit::

@JJ
QUOTE
// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder....files/SASCM.rar) on 13.10.2007

means it SA,
some time if not written
CODE
{$VERSION 3.1.0027}

also means SA,

But not just fire I mean using aim and fire same time.

Ashwin.Star
  • Ashwin.Star

    I'm a Business Boy Now !

  • Members
  • Joined: 14 Nov 2010
  • India

#12

Posted 19 April 2012 - 11:10 AM

can't you add one condition ? sneaky2.gif
--------------
add another line
CODE
00E1:   player 0 pressed_key 6

after this
CODE
00E1:   player 0 pressed_key 17

Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#13

Posted 19 April 2012 - 11:17 AM

QUOTE (Ashwin the new boy @ Thursday, Apr 19 2012, 11:10)
can't you add one condition ? sneaky2.gif
--------------
add another line
CODE
00E1:   player 0 pressed_key 6

after this
CODE
00E1:   player 0 pressed_key 17

I have already tried before u say that wink.gif

Ashwin.Star
  • Ashwin.Star

    I'm a Business Boy Now !

  • Members
  • Joined: 14 Nov 2010
  • India

#14

Posted 19 April 2012 - 11:28 AM

What is the Problem then ?

Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#15

Posted 19 April 2012 - 11:30 AM

QUOTE (Ashwin the new boy @ Thursday, Apr 19 2012, 11:28)
What is the Problem then ?

player does not get up while aiming.When I stop aiming, it gets up.

Jack...
  • Jack...

    Wanted Level modifications

  • Members
  • Joined: 06 Dec 2011
  • Serbia

#16

Posted 19 April 2012 - 12:56 PM Edited by JACK JONES, 19 April 2012 - 01:24 PM.

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
0A93: end_custom_thread

If I'm right the player should get up either he fires or aims. If it's still not working then try 0 again.

Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#17

Posted 19 April 2012 - 01:14 PM Edited by Saint Burak, 19 April 2012 - 01:17 PM.

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

Jack...
  • Jack...

    Wanted Level modifications

  • Members
  • Joined: 06 Dec 2011
  • Serbia

#18

Posted 19 April 2012 - 01:27 PM

Read some tutorials about the coding next time and focus on the "if" commands. By the way what do you mean "wait was wrong"?

Saint Burak
  • Saint Burak

    Square Civilian

  • Members
  • Joined: 04 Nov 2010

#19

Posted 19 April 2012 - 01:32 PM

QUOTE (JACK JONES @ Thursday, Apr 19 2012, 13:27)
Read some tutorials about the coding next time and focus on the "if" commands. By the way what do you mean "wait was wrong"?

if I use wait code, mod does not work.I know how to use if.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users