Jump to content

coding sirens


yair1221

Recommended Posts

create a copcar at 0.0 0.0 0.0 and turn its siren on BUT:

 

- people on street won't care about you

- you can't use the horn of the copcar

 

and I think it should be possible to extract the siren sounds and play them with your script. Should work

 

but people still won't care

 

cheers

Link to comment
https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114679
Share on other sites

- Redacted: No useless images -

Oh whatever

 

Sorry, joke aside.

 

This should be simple enough for the most part. Get a siren sound, then use the MP3/audiostream opcodes to load and play it. As for making the cars move aside, well

 

I apologise for these opcodes, they are CLEO4 (most modders still use CLEO3 for some reason)

 

 

0AAC: $hMP3 = load_audiostream "CLEO\playlist\01.mp3" //IF and SET

 

 

Load a siren sound, then check it with the same opcode.

Edited by james227uk
Link to comment
https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114706
Share on other sites

joke: point taken blush.gif

 

problem:

yes i understood

but cant i just create a car in the exact same place?

like SilentPL offered

and activate the siren

then create a light like that

 

repeatwait 00407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset -0.337 1.566 0.657 09E5: create_flash_light_at 1@ 2@ 3@ RGB_mask 255 0 0 radius 5.0 wait 5000407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset 0.337 1.566 0.657 09E5: create_flash_light_at 1@ 2@ 3@ RGB_mask 0 0 255 radius 5.0 until 0ab0: 13

 

Link to comment
https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114714
Share on other sites

like SilentPL offered

Hmm, what?

 

@james227uk

How did you got that list? biggrin.gif

Link to comment
https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060114900
Share on other sites

  • 1 month later...

here is some full code to load an mp3 file and loop it in CLEO4 which may help you:

 

Audiostream.Load($siren, "CLEO\siren.mp3")Audiostream.PerformAction($siren, PLAY)Audiostream.Loop($siren, 1)

 

 

to stop:

 

Audiostream.PerformAction($siren, STOP)Audiostream.Loop($siren, 0)

 

 

to unload:

 

Audiostream.Release($siren)

 

 

the problem i find is it if you switch on the standard siren you still hear the default siren sounds as well. anyone know a way of muting that without putting a blank wave file through SAAT?

 

 

Link to comment
https://gtaforums.com/topic/458624-coding-sirens/#findComment-1060154979
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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