View Single Post
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