Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

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

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    2. Support

    3. Suggestions

Cleo Script - addon -Is it Possible - Can Someone Help


Ezekiel
 Share

Recommended Posts

What I want is Sound to be Heard around my spawned ped in cleo which doing animation

 

22684264548_bf991f79a1_o.jpg

 

Can Someone compile this with my script,Am Ultra Noob With scripting in Cleo

00A4:   actor $PLAYER_ACTOR sphere 0 in_cube_cornerA  308.5  -1816  0  cornerB  319.5  -1806  300AAD: set_mp3 $7 perform_action 10AC0: audiostream $7 loop 1
Clean Script:

 

 

//-------------MAIN---------------03A4: name_thread 'SPACANM'0AAC: $7 = load_audiostream "CLEO\SOUNDS\MUSIC.MP3":SPACANM_390001: wait 0 ms00D6: if0256: player $PLAYER_CHAR defined004D: jump_if_false @SPACANM_43400BF: [email protected] = current_time_hours, [email protected] = current_time_minutes00D6: if and0029: [email protected] >= 6001B: 20 > [email protected]: jump_if_false @SPACANM_41900D6: if00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 315.364 -1811.82 6.76562 radius 100.5 100.5 100.5004D: jump_if_false @SPACANM_525:SPACANM_1400001: wait 0 ms0247: load_model #BFYST0248: model #BFYST available004D: jump_if_false @SPACANM_140009A: [email protected] = create_actor_pedtype 2 model #BFYST at 315.364 -1811.82 6.765620249: release_model #BFYST:SPACANM_1870001: wait 0 ms04ED: load_animation "park"04EE: animation "park" loaded004D: jump_if_false @SPACANM_1870812: AS_actor [email protected] perform_animation "tai_chi_in" IFP "park" framedelta 1.0 loopA 1 lockX 0 lockY 0 lockF 0 time -1 // versionB0002: jump @SPACANM_356:SPACANM_25900BF: [email protected] = current_time_hours, [email protected] = current_time_minutes00D6: if and0256: player $PLAYER_CHAR defined0029: [email protected] >= 6001B: 20 > [email protected]: jump_if_false @SPACANM_4340001: wait 0 ms00D6: if80FE: not actor $PLAYER_ACTOR sphere 0 in_sphere 315.364 -1811.82 6.76562 radius 100.5 100.5 100.5004D: jump_if_false @SPACANM_3560002: jump @SPACANM_434:SPACANM_35600D6: if051A: actor [email protected] damaged_by_actor $PLAYER_ACTOR004D: jump_if_false @SPACANM_4120792: disembark_instantly_actor [email protected]: set_actor [email protected] health_to 200AAE: release_mp3 $704EF: release_animation "park"01C2: remove_references_to_actor [email protected] // Like turning an actor into a random pedestrian0002: jump @SPACANM_518:SPACANM_4120002: jump @SPACANM_259:SPACANM_41904EF: release_animation "park"0002: jump @SPACANM_447:SPACANM_43404EF: release_animation "park"01C2: remove_references_to_actor [email protected] // Like turning an actor into a random pedestrian:SPACANM_4470256: player $PLAYER_CHAR defined004D: jump_if_false @SPACANM_5250001: wait 0 ms00D6: if80FE: not actor $PLAYER_ACTOR sphere 0 in_sphere 315.364 -1811.82 6.76562 radius 100.5 100.5 100.5004D: jump_if_false @SPACANM_5180002: jump @SPACANM_525:SPACANM_5180002: jump @SPACANM_434:SPACANM_5250002: jump @SPACANM_39

 

 

 

Here Script with Sound

http://www.mediafire.com/download/3oo1nrmoqshrbhn/Cleo_Help.rar

 

This is not so simple,because I have died trying,is it even possible to add it in this messy script

 

 

Idea for Script was

 

Thank you for your time!

Edited by Ezekiel
Link to comment
Share on other sites

Using the global variable $7 is not save. In main.scm I see statements like:

 

0059: $7 += $9 // (float) 00D6: if 0030:   $7 >= 170.0 004D: jump_if_false @GYMTREA_5243 000D: $7 -= 170.0 0653: $GYM_STAT_Fat = float_stat 21 00D6: if 
Try using a local variable. Edited by goodidea82
Link to comment
Share on other sites

spaceeinstein

You could at least try to bash out some code. You found the necessary lines to add:

 

03A4: name_thread 'SPACANM'0AAC: [email protected] = load_audiostream "CLEO\SOUNDS\MUSIC.MP3"0AC0: set audio stream loop//...:SPACANM_412if  00A4: player in areathen  0AAD: resume audio streamelse  0AAD: pause audio streamend
Or if you prefer the low-level way, you have existing code on which you can base your new code:

 

03A4: name_thread 'SPACANM'0AAC: [email protected] = load_audiostream "CLEO\SOUNDS\MUSIC.MP3"0AC0: set audio stream loop//...:SPACANM_412if  00A4: player in areajump_if_false @pause_audio0AAD: resume audio streamjump @end:pause_audio0AAD: pause audio stream:end
Edited by spaceeinstein
  • Like 2
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • 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.