Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (84,702 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

goodModsRcool

HELP please! VC CLEO

Recommended Posts

goodModsRcool

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
Edited by goodModsRcool

Share this post


Link to post
Share on other sites
Ashwin.Star

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

Share this post


Link to post
Share on other sites
goodModsRcool

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

Share this post


Link to post
Share on other sites
goodModsRcool

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

Share this post


Link to post
Share on other sites
Ashwin.Star
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

Share this post


Link to post
Share on other sites
goodModsRcool

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!

Share this post


Link to post
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

×

Important Information

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