Raised This Month: $12 Target: $400
 3% 

Play Random sounds in TF2 using Script


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucasdidur
Senior Member
Join Date: Jan 2011
Location: Brazil
Old 02-05-2012 , 14:40   Play Random sounds in TF2 using Script
Reply With Quote #1

Hello gyus


I have some problem, I tried to change some weapons/voices of the game, add a some random files in file Scripts folder

ex.

In game_sounds_weapons.txt


PHP Code:
"Weapon_FlameThrower.AirBurstAttack"
{
    
"channel"    "CHAN_WEAPON"
    "volume"    "1.0"
    "pitch"        "95,105"
    "soundlevel"    "SNDLVL_90db"
    
    "rndwave"
    
{
        
"wave"        "weapons/flame_thrower_airblast.wav"
        "wave"        "ehaqui/weapons/flame_thrower_airblast_skyrim_fus.mp3"
    
}
    

But in game, they only play the first sound


Annoter exemple:

PHP Code:
"Weapon_Minigun.Fire"    
{
    
"channel"    "CHAN_STATIC"
    "soundlevel"    "SNDLVL_94dB"
    "volume"    "1.0"
    
    "rndwave"
    
{
        
"wave"        "weapons/minigun_shoot.wav"
        "wave"        "weapons/minigun_shoot.wav"
        "wave"        "ehaqui/weapons/minigun_shoot_woooa.mp3"
    
}


Not working too


But, this work


Dispenser explode
PHP Code:
"Building_Dispenser.Explode"
{
    
"channel"        "CHAN_STATIC"
    "volume"        "1.0"
    "soundlevel"        "SNDLVL_74dB"
    
    "rndwave"
    
{
        
"wave"            "weapons/dispenser_explode.wav"
        "wave"            "ehaqui/weapons/dispenser_explode.mp3"
    
}
    


And Uber Charge
PHP Code:
"TFPlayer.InvulnerableOn"
{
    
"channel"    "CHAN_STATIC"
    "volume"    ".5"
    "soundlevel"      "SNDLVL_86dB"
    
    "rndwave"
    
{
        
"wave"        "player/invulnerable_on.wav"
        "wave"        "ehaqui/player/invulnerable_on_guiletheme.wav"
        "wave"        "ehaqui/player/invulnerable_on_speedupdoctor.wav"
        "wave"        "ehaqui/player/invulnerable_on_wowfightthepower.wav"
    
}


How to make play the random sounds? Is possible?
__________________



lucasdidur is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 02-06-2012 , 13:13   Re: Play Random sounds in TF2 using Script
Reply With Quote #2

Some of the sounds are played client side (meaning you can't change the sound), for the ones that are not, I would just do a sound hook.
__________________

Last edited by pheadxdll; 02-06-2012 at 13:14.
pheadxdll is offline
Reply


Thread Tools
Display Modes

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 21:16.


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