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

 Sounds and sound effects

 In Vice City
 
JACK JONES  
Posted: Saturday, Jul 7 2012, 12:18
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Hallo. I need to know is there any way I could activate sfx sound effects in CLEO. Also is it possible to put new Mp3 and wav sounds (added not replaced) in audio and use those new sounds in CLEO scrypts? I know about the 057D but it's working only in a car. Any ideas?
PM
  Top
 

 
Frank.s  
Posted: Saturday, Jul 7 2012, 12:28
Quote Post


IV Scripter, Modeler.
Group Icon
Group: Members
Joined: Apr 15, 2008

en.gif

Member Award




You need to replace some of the existing .wav files in the audio folder, VC uses a hardcoded list of wav file names which are the only ones allowed to be loaded and played by the game. You could choose to replace the "mono_" wav files, those are the internal monologues that Tommy occasionally says say after a cutscene, or the "mob_" wav's which are the mobile phone calls.


As for loading and playing wav's, use the normal method:

CODE
:Label_100
03CF: load_wav 'MOB_52A' as 1 // in VC, 1 and 2 are supported, dunno about any more.

:Label_150
0001: wait 0 ms
00D6: if
03D0:  wav 1 loaded
004D: jump_if_false @Label_150

03D1: play_wav 1

:Label_200
00D6: if
03D2:  wav 1 ended
004D: jump_if_false @Label_200
0001: wait 500 ms
040D: unload_wav 1
004E: end_thread (this should be end_custom_thread for cleo)



This post has been edited by Frank.s on Saturday, Jul 7 2012, 12:37
PM
  Top
 

 
JACK JONES  
Posted: Saturday, Jul 7 2012, 12:37
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Yes I know about that thanks. But how should I do the same with sfx files? I mean I can't use 03CF to load them because they are in SFX archive.
PM
  Top
 

 
Frank.s  
Posted: Saturday, Jul 7 2012, 12:41
Quote Post


IV Scripter, Modeler.
Group Icon
Group: Members
Joined: Apr 15, 2008

en.gif

Member Award




That won't work because the sfx sounds use a different playing method, 018C: play_sound 1 at 0.0 0.0 0.0 .

Here is info on the id's of sounds, playing sfx sounds are limited to the stuff used in R*'s original missions
PM
  Top
 

 
JACK JONES  
Posted: Saturday, Jul 7 2012, 12:49
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Thanks Frank that's right what I was looking for. But what about the replaced Mp3? How to activate it when the player is not in a car?
PM
  Top
 

 
Ashwin the new boy  
Posted: Saturday, Jul 7 2012, 15:07
Quote Post


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

ia.gif

XXXXX



i tried to do that last month,
i though i'll get a add by which i'll toggle off/on the Mp3
but i find something else instead
a add at which if we write NOP (0x90), the mp3 song will not stop, not even in Menu lol.gif
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