Jump to content

A mush smaller task ;)


dertyjerzian

Recommended Posts

dertyjerzian

 

087B: set_player $PLAYER_CHAR clothes "BBALLJACKRSTAR" "BBJACK"  0 087B: set_player $PLAYER_CHAR clothes "JEANSDENIM" "JEANS"  2 087B: set_player $PLAYER_CHAR clothes "SNEAKERBINCBLK" "SNEAKER"  3 087B: set_player $PLAYER_CHAR clothes "PLAYER_FACE" "HEAD"  1 

 

 

Ok, Above I have the code to dress CJ from the stripped SCM by steve. I know the opcode is the name of the comand... But what are those parameters at the end? 0,2,3,1 down the line there.

 

When edited to:

 

 

087B: set_player $PLAYER_CHAR clothes "BBALLJACKRSTAR" "BBJACK"  0 087B: set_player $PLAYER_CHAR clothes "worktrcamogrn" "JEANS"  2 087B: set_player $PLAYER_CHAR clothes "SNEAKERBINCBLK" "SNEAKER"  3 087B: set_player $PLAYER_CHAR clothes "PLAYER_FACE" "HEAD"  1 

 

 

I left it not-caps there to stand out easier what was changed.

 

Well, it worked. CJ will wear woodland camo at start. Butm when I change BBJACKRSTAR to TSHIRTWHITE and compile, crashola. Must have something to do with the aspects of the code I don't fully comprehend yet. So, I'm back in mission editing discussion to learn how to dress CJ in SCM and the params and maybe relationships to other types of code. I have become very determined, but must be tought some stuff confused.gif Like clothes tounge.gif

Link to comment
Share on other sites

random_download

I think the last parameter is to do with what type of clothing it is eg. shirt, shoes etc. I'm not sure though, see if anybody knows for sure.

Try doing:

 

087B: set_player $PLAYER_CHAR clothes "TSHIRTWHITE" "TSHIRT"  0

 

Link to comment
Share on other sites

 

I think the last parameter is to do with what type of clothing it is eg. shirt, shoes etc. I'm not sure though, see if anybody knows for sure.

Try doing:

 

087B: set_player $PLAYER_CHAR clothes "TSHIRTWHITE" "TSHIRT"  0

 

yeah this is the way which works perfect wink.gif

 

--- greetz ---

MadHacker04

Link to comment
Share on other sites

ITs Used Like This

 

 

 

087B: set_player $PLAYER_CHAR clothes "DFF" "TXD"  body_part 0

 

 

and the numbers at the end are

 

0=torso

1=haircut

2=legs

3=feet

13=chains

14=watches

15=shades

16=hats

17=special (aka full body)

Link to comment
Share on other sites

dertyjerzian

 

0=torso

1=haircut

2=legs

3=feet

13=chains

14=watches

15=shades

16=hats

17=special (aka full body)[/color]

Thank you for you're help guys, especially demonj0e's list of parameters. Would you say that I now understand opcode 087B? Is there more to it then we're discussed? Thanks again everyone!

 

EDIT: Does the woodland camo use the same model as the jeans?!?!?

 

How come I get what I want, the woudland camo, when I request:

 

 

087B: set_player $PLAYER_CHAR clothes "worktrcamogrn" "JEANS"  2 

 

 

 

If Jeans is the TXD???

 

EDIt again:

Ok, looking through the player image, it seems contrary to what you said, demonj0e, it is txd first and dff second?

Edited by dertyjerzian
Link to comment
Share on other sites

I would say it probably is as if you look back at previous posts in this thread, it would seem to imply that.
Link to comment
Share on other sites

dertyjerzian

 

I would say it probably is as if you look back at previous posts in this thread, it would seem to imply that.

yep, but it was backwards tounge.gif

I have managed to add a necklace to CJ, so I guess I know opcode 087B now biggrin.gif yay!

 

Thanks again everybody! Should I keep this as my learning topic since next questions will be totally unrelated? Or should I post a new topic for new SCM questions?

Edited by dertyjerzian
Link to comment
Share on other sites

dertyjerzian

New post because many of you may not revisit, but you gus really helped me to get my clothes changed, but didnt answer my question fully, no offense, thank you a lot I assure you.

 

from SADB:

 

087b- set_player_wearing - takes playerID, models and location as arguments 

 

 

How do I understand the above. No, rather, since this was what wasnt explained anyway: What is this:

 

 

  087B: set_player $PLAYER_CHAR 

 

Link to comment
Share on other sites

$player_char is a reference to the player in memory, so the game knows which player this will be applied to (only possibly of any other use in a multiplayer, but alot of opcodes require it. So set_player $player_char means set the player called $player_char 's clothes to the following.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.