Quantcast

Jump to content

» «
Photo

HELP please! VC CLEO

5 replies to this topic
goodModsRcool
  • goodModsRcool

    GTA Vice Sexy

  • Members
  • Joined: 06 Dec 2012
  • United-States

#1

Posted 20 April 2014 - 02:05 AM Edited by goodModsRcool, 20 April 2014 - 02:12 AM.

I am trying to make for Vice City what I assume would be a simple CLEO to make, but I am having problems. My goal here is to make a CLEO that when the player steps in a certain area, the players skin will be switched. I am kind of trying to replicate what it is like when you get a clothing pickup, I need to get the skin switch correct before I will worry about also putting in the model of the clothing pickup. The game crashes for me as soon as I walk into the area. Here is the code if anyone may be able to help.

 

{$CLEO .cs}
 
//-------------MAIN---------------
thread 'C1' 
 
:Pickup
wait 0
if
00FE: actor $PLAYER_ACTOR in_sphere 0 near_point 512.862 501.284 10.6187 radius 1.0 1.0 5.0
then
01B4: set_player $PLAYER_CHAR frozen_state  0 (frozen)
016a: fade 0 1000 ms
jump @LOAD1
 
:LOAD1
023C: load_special_actor 1 'PLAY11'
038B: load_requested_models
jump @LOAD
 
:LOAD
wait 0
if
023D:   special_actor 1 loaded
then
0352: set_actor $PLAYER_ACTOR skin_to 'PLAY11'
jump @RESPAWN
 
:RESPAWN
wait 100
01B4: set_player $PLAYER_CHAR frozen_state  1 (unfrozen)
016a: fade 1 1500 ms
end
jump @WAIT
 
:WAIT
wait 20000
end
jump @Pickup

Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#2

Posted 20 April 2014 - 04:21 AM

to change the Skin,

all you need to do is in given Sequence,

  0352: set_actor $PLAYER_ACTOR skin_to 'PLAY11'
  038B: load_requested_models
  0353: refresh_actor $PLAYER_ACTOR

goodModsRcool
  • goodModsRcool

    GTA Vice Sexy

  • Members
  • Joined: 06 Dec 2012
  • United-States

#3

Posted 20 April 2014 - 02:41 PM

Thank you so much Ashwin! That greatly helped, it is working now.  :)


goodModsRcool
  • goodModsRcool

    GTA Vice Sexy

  • Members
  • Joined: 06 Dec 2012
  • United-States

#4

Posted 20 April 2014 - 03:37 PM

Here is what I have now, but I would like for it to work only when player is on foot and not in a vehicle. I'm not sure how to do that.

 

 

{$CLEO .cs}
 
//-------------MAIN---------------
thread 'C1' 
 
:Pickup
wait 0
if
00FE: actor $PLAYER_ACTOR in_sphere 0 near_point 512.862 501.284 10.6187 radius 1.0 1.0 5.0
then
01B4: set_player $PLAYER_CHAR frozen_state  0 (frozen)
016a: fade 0 1000 ms
wait 1000
0352: set_actor $PLAYER_ACTOR skin_to 'PLAY11'
038B: load_requested_models
0353: refresh_actor $PLAYER_ACTOR
01B4: set_player $PLAYER_CHAR frozen_state  1 (unfrozen)
016a: fade 1 2000 ms
wait 20000
end
jump @Pickup

Ashwin.Star
  • Ashwin.Star

    i'll be back...

  • Members
  • Joined: 14 Nov 2010
  • India

#5

Posted 20 April 2014 - 04:53 PM

WHENEVER YOU NEED SOMETHING LIKE THAT,
press 'Ctrl' + 'Alt' + '@' in sanny builder for opcode search tool,
type need related words & Chose the most Suitable one from the list,
like i did,
i Searched for, "actor foot sphere" & here is what i got,
use it,
0102:   actor $3 stopped_near_point_on_foot 512.862 501.284 10.6187 radius 1.0 1.0 5.0 sphere 0 
 
two things that i wanna say,
do you know you have turned off the Pink sphere to off ?
are you sure you wanna wait 20 seconds ?
 
Anyway,
:Ash
wait 0
if
0102:   actor $3 stopped_near_point_on_foot 512.862 501.284 10.6187 radius 5.0 5.0 5.0 sphere 1
jf @Ash
01B4: set_player $2 frozen_state  0
016a: fade 0 1000 ms
wait 1000
0352: set_actor $3 skin_to 'PLAY11'
038B: load_requested_models
0353: refresh_actor $3
01B4: set_player $2 frozen_state  1
016a: fade 1 2000 ms
wait 5000
jump @Ash

goodModsRcool
  • goodModsRcool

    GTA Vice Sexy

  • Members
  • Joined: 06 Dec 2012
  • United-States

#6

Posted 20 April 2014 - 10:00 PM

Thanks you for the tips Ashwin. I had the sphere turned off because I planned on loading/destroying the model of a clothing pickup instead of having a sphere, but I tried that many different ways and it kept coming out bad haha, I am going to use it with the sphere turned on. The wait 20000 that was a simple mistake, I added one extra zero in there by accident  :p. Hey anyways I greatly appreciate your help :cookie:  :cookie:  :cookie: , everything is now working perfect!  





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users