IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Trying Crouch Cover System But Does Not Work

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 10:04
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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.
PM
  Top
 

 
The_Sorrow  
Posted: Thursday, Apr 19 2012, 10:23
Quote Post


Heaven, I'm in heaven(8)
Group Icon
Group: Members
Joined: May 31, 2010

en.gif

XXXXX



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
Users WebsitePMMSN
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Apr 19 2012, 10:26
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



Good Timing Sorrow!

//<- Given script removed ->\\

What you want the Script to do ?

This post has been edited by Ashwin the new boy on Thursday, Apr 19 2012, 10:29
Users WebsitePM
  Top
 

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 10:26
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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.
PM
  Top
 

 
JACK JONES  
Posted: Thursday, Apr 19 2012, 10:36
Quote Post


firearms and adrenaline
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



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

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 10:36
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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

This post has been edited by Saint Burak on Thursday, Apr 19 2012, 10:38
PM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Apr 19 2012, 10:46
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



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

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 10:50
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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.
PM
  Top
 

 
JACK JONES  
Posted: Thursday, Apr 19 2012, 10:54
Quote Post


firearms and adrenaline
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



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

This post has been edited by JACK JONES on Thursday, Apr 19 2012, 10:57
PM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Apr 19 2012, 10:55
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



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.com/files/SASCM.rar) on 13.10.2007

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

also means SA,

This post has been edited by Ashwin the new boy on Thursday, Apr 19 2012, 10:58
Users WebsitePM
  Top
 

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 11:05
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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.com/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.
PM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Apr 19 2012, 11:10
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



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
Users WebsitePM
  Top
 

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 11:17
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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
PM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Apr 19 2012, 11:28
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



What is the Problem then ?
Users WebsitePM
  Top
 

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 11:30
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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.
PM
  Top
 

 
JACK JONES  
Posted: Thursday, Apr 19 2012, 12:56
Quote Post


firearms and adrenaline
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



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.

This post has been edited by JACK JONES on Thursday, Apr 19 2012, 13:24
PM
  Top
 

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 13:14
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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
PM
  Top
 

 
JACK JONES  
Posted: Thursday, Apr 19 2012, 13:27
Quote Post


firearms and adrenaline
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



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

 
Saint Burak  
Posted: Thursday, Apr 19 2012, 13:32
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



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.
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG