Raised This Month: $ Target: $400
 0% 

Looking for the driving sounds and how to access them.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
toben
Member
Join Date: Sep 2005
Old 05-28-2007 , 18:43   Looking for the driving sounds and how to access them.
Reply With Quote #1

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?
__________________

Last edited by toben; 05-28-2007 at 18:49.
toben is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 05-28-2007 , 20:05   Re: Looking for the driving sounds and how to access them.
Reply With Quote #2

client_cmd(0,"spk ambience/car1")

__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-28-2007 , 21:04   Re: Looking for the driving sounds and how to access them.
Reply With Quote #3

You can use JHLMV and open up the half-life.gcf in the steamapps folder.
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
toben
Member
Join Date: Sep 2005
Old 05-29-2007 , 00:55   Re: Looking for the driving sounds and how to access them.
Reply With Quote #4

OK I found the car sounds. how do I get the sound to continue to run. As in engine.wav
__________________

Last edited by toben; 05-29-2007 at 02:10.
toben is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 05-29-2007 , 04:12   Re: Looking for the driving sounds and how to access them.
Reply With Quote #5

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
__________________
regalis is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 05-31-2007 , 02:47   Re: Looking for the driving sounds and how to access them.
Reply With Quote #6

ambient_generic entity should loop the sound by default.
VEN is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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