AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Looking for the driving sounds and how to access them. (https://forums.alliedmods.net/showthread.php?t=55748)

toben 05-28-2007 18:43

Looking for the driving sounds and how to access them.
 
I am writing a mod and need access to a sound of something like a car driving. I am avoiding too many extras so I want to use the sounds in hl or cs already. Any help?

Vet 05-28-2007 20:05

Re: Looking for the driving sounds and how to access them.
 
client_cmd(0,"spk ambience/car1")


Cheap_Suit 05-28-2007 21:04

Re: Looking for the driving sounds and how to access them.
 
You can use JHLMV and open up the half-life.gcf in the steamapps folder.

toben 05-29-2007 00:55

Re: Looking for the driving sounds and how to access them.
 
OK I found the car sounds. how do I get the sound to continue to run. As in engine.wav

regalis 05-29-2007 04:12

Re: Looking for the driving sounds and how to access them.
 
I don't know if there is a better way, but in entity-think you can play the sound and set the next think at the end of the time the sound needs to play!?

Or in emit_sound there is a stop-flag (1<<5) maybe there is a flag for loop the sound!?
PHP Code:

#define SND_STOP (1<<5) 

PHP Code:

emit_sound(g_recharge_id[r], CHAN_WEAPON"HealthArmor-Stations/ArmorRecharge.wav"1.0ATTN_NORMSND_STOPPITCH_NORM); 

I needed this flag because this sound i used loop indefinitely...

greetz regalis

VEN 05-31-2007 02:47

Re: Looking for the driving sounds and how to access them.
 
ambient_generic entity should loop the sound by default.


All times are GMT -4. The time now is 10:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.