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

 Adding MP3 sound to a CLEO script

 
koragg  
Posted: Sunday, May 20 2012, 17:03
Quote Post


Knight Rider Forever
Group Icon
Group: Members
Joined: Feb 25, 2012

bu.gif

XXXXX



Hey guys, can someone try and make this script play a sound file named "TURBOBOOST.MP3" which is in the "...\CLEO\PLAYLIST" folder.
I wanna make it sound like the Turbo Boost from the Knight Rider Mods (but I've made my own sound ; I didn't steal it) :

// 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 'CARJUMP'

:CARJUMP_11
wait 0
if and
Player.Defined($PLAYER_CHAR)
Actor.Driving($PLAYER_ACTOR)
84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
0AB0: key_pressed 16
else_jump @CARJUMP_11
if
8AB0: not key_pressed 88
else_jump @CARJUMP_124
if
8AB0: not key_pressed 67
else_jump @CARJUMP_145
1@ = 0.15
$2657 = 18
04F7: status_text $2657 type 1 line 1 GXT '' // global_variable
059C: enable_status_text $2657 flashing 0 // global_variable
jump @CARJUMP_166

:CARJUMP_124
wait 0
1@ = 0.45
jump @CARJUMP_368

:CARJUMP_145
wait 0
1@ = 0.75
jump @CARJUMP_368

:CARJUMP_166
wait 0
0087: 2@ = 1@ // (float)
2@ *= 133.3333
0090: $2657 = float 2@ to_integer
if
Actor.Driving($PLAYER_ACTOR)
else_jump @CARJUMP_564
if
8AB0: not key_pressed 9
else_jump @CARJUMP_280
if
0AB0: key_pressed 16
else_jump @CARJUMP_337
if
0.75 > 1@
else_jump @CARJUMP_166
1@ += 0.02
jump @CARJUMP_166

:CARJUMP_280
wait 100
if
Actor.Driving($PLAYER_ACTOR)
else_jump @CARJUMP_564
if
0AB0: key_pressed 16
else_jump @CARJUMP_337
if
0AB0: key_pressed 9
else_jump @CARJUMP_280
jump @CARJUMP_166

:CARJUMP_337
wait 0
0151: remove_status_text $2657
if
8AB0: not key_pressed 82
else_jump @CARJUMP_11
jump @CARJUMP_368

:CARJUMP_368
wait 0
03C0: 0@ = actor $PLAYER_ACTOR car
if or
81F3: not car 0@ in_air
04A7: actor $PLAYER_ACTOR driving_boat
else_jump @CARJUMP_11
0407: store_coords_to 11@ 12@ 13@ from_car 0@ with_offset 0.0 0.0 1@
0407: store_coords_to 14@ 15@ 16@ from_car 0@ with_offset 0.0 0.0 0.0
0063: 11@ -= 14@ // (float)
0063: 12@ -= 15@ // (float)
0063: 13@ -= 16@ // (float)
07D5: set_car 0@ velocity_in_direction_XYZ 11@ 12@ 13@ rotation_velocitiesXY 0.0 0.0 unk 0.0
if
04A7: actor $PLAYER_ACTOR driving_boat
else_jump @CARJUMP_11
0087: 3@ = 1@ // (float)
3@ *= 5000.0
0092: 4@ = float 3@ to_integer
wait 4@
jump @CARJUMP_11

:CARJUMP_564
wait 0
0151: remove_status_text $2657
jump @CARJUMP_11
Users WebsitePM
  Top
 

 
MichaelKnght1  
Posted: Sunday, May 20 2012, 17:57
Quote Post


Player Hater
Group Icon
Group: BUSTED!
Joined: May 20, 2012

XXXXX



Can Someone Also Find The Original Author lol.gif .
Script Made by Bennington and Has no any problem .

Download Link :

GTA Garage.com
PM
  Top
 

 
koragg  
Posted: Sunday, May 20 2012, 19:00
Quote Post


Knight Rider Forever
Group Icon
Group: Members
Joined: Feb 25, 2012

bu.gif

XXXXX



it doesn't have a problem.i just want it to play the sound file before executing the script sad.gif
Users WebsitePM
  Top
 

 
Han_M  
Posted: Wednesday, Oct 17 2012, 19:22
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 24, 2012

ba.gif

XXXXX



QUOTE (koragg @ Sunday, May 20 2012, 19:00)
it doesn't have a problem.i just want it to play the sound file before executing the script sad.gif

you can always use a "Knight Rider" mod

or may use one of it's script(Turbo Boost) wich do has sound
PM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Oct 18 2012, 05:07
Quote Post


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

ia.gif

XXXXX



Don't Bump Old Topics,
when it is not started by you.
Users WebsitePM
  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