UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: SilentR9 on September 13, 2018, 04:05:24 am

Title: Exploding Barrels?
Post by: SilentR9 on September 13, 2018, 04:05:24 am
Hi everyone! im working on my first map to be released early december called "Beyond The Grave" 
i had a fantastic idea of making an area off my map blocked by explosive barrels and when shot will explode and allow access. 
i saw a post awhile back about this but saw that the poster got the prefab that comes with the game to work, but no sound:(! 
id like to simply get the sound working.
super appreciated if someone can help me make this happen!! 
Thanks All! :))
Title: Re: Exploding Barrels?
Post by: gympie6 on September 13, 2018, 11:26:18 pm
Hi everyone! im working on my first map to be released early december called "Beyond The Grave"
i had a fantastic idea of making an area off my map blocked by explosive barrels and when shot will explode and allow access.
i saw a post awhile back about this but saw that the poster got the prefab that comes with the game to work, but no sound:(!
id like to simply get the sound working.
super appreciated if someone can help me make this happen!!
Thanks All! :))
I think you have downloaded a mod for explosive barrels, you will find me stupid but why do you have to download something if it is already in cod waw?If I look here for example: C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\map_source\_prefabs\scripter
you see there are explosive barrels as prefab.

When I look at the dlc_share.csv file at C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\raw\soundaliases
I see the sounds are already included so I guess the only thing you have to do is pick these prefabs from the map_source and put them into the game.
Title: Re: Exploding Barrels?
Post by: IZaRTaX on September 13, 2018, 11:38:14 pm
You can find the sound in \raw\soundaliases\destructibles.csv

Code Snippet
Plaintext
# Barrels,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
explo_redbarrel,,SFX/Destruction/exp/barrel_##,!wii,0.8,1,0.9,1.05,500,5000,10000,,,,,explosion,,3d,,,,,all_mp,curve2,,,,exp_debris,,curve3,,,,0.5,,,,,,,50,95,0.25,1,,,,,
ignition_redbarrel,,SFX/Destruction/exp/flare_##,!wii,0.4,0.5,0.9,1.05,50,500,1000,,,,,explosion,,3d,,,,,all_mp,curve2,,,,,,curve3,,,,,,,,,,,50,95,0.25,1,,,,,
exp_debris,,SFX/Destruction/exp/debris_##,!wii,0.7,0.7,0.9,1.05,50,1200,2400,,,,,explosion,,3d,,,,,all_mp,curve2,,,,barrel_explode_trail_l,,curve3,600,,,0.1,0.4,,,,,,50,95,0.25,1,,,
barrel_fuse,,null.wav,,,,,,,,,,,,,,,,,,,,see2 ber1 ber2 ber3 ber3b all_mp,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
barrel_explode_trail_l,,SFX/Weapon/Gren/Gen_Gren/gren_trail_##,!wii,0.4,0.6,0.9,1,500,2000,10000,3,oldest,,,explosion,,3d,,,,,all_mp,,,,,barrel_explode_trail_r,,curve5,50,,,,,,,,,,90,90,0.25,1,left_player,6,yes
barrel_explode_trail_r,,SFX/Weapon/Gren/Gen_Gren/gren_trail_##,!wii,0.4,0.6,0.9,1,500,2000,10000,3,oldest,,,explosion,,3d,,,,,all_mp,,,,,barrel_explode_dist,,curve5,50,,,,,,,,,,90,90,0.25,1,right_player,6,yes
barrel_explode_dist,,SFX/Destruction/explosion_dist_##,!wii,0.9,1,0.9,1.1,3000,12000,13000,3,oldest,,,explosion,,3d,,,,,all_mp,,,,,barrel_explode_distR,,curve5,,,,0.4,,,,,,,90,90,0.55,1,left_player,6,yes
barrel_explode_distR,,SFX/Destruction/explosion_dist_##,!wii,0.9,1,0.9,1.1,3000,12000,13000,3,oldest,,,explosion,,3d,,,,,all_mp,,,,,,,curve5,,,,0.4,,,,,,,90,90,0.55,1,right_player,6,yes
#Wii Assets,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
explo_redbarrel,,SFX/destruction/red_barrel/barrel_asplode_alt.wav,wii,0.9,1,0.9,1.1,500,5000,10000,,,,,explosion,,3d,,,,,all_mp,curve2,,,,exp_debris,,curve3,,,,0.5,,,,,,,50,95,0.25,1,,,
ignition_redbarrel,,SFX/Destruction/exp/flare/flare_01.wav,wii,0.4,0.5,0.9,1.05,50,500,1000,,,,,explosion,,3d,,,,,all_mp,curve2,,,,,,curve3,,,,,,,,,,,50,95,0.25,1,,,
exp_debris,,SFX/Destruction/exp/debris_##,wii,0.7,0.7,0.9,1.05,50,1200,2400,,,,,explosion,,3d,,,,,all_mp,curve2,,,,,,curve3,575,,,0.1,0.4,,,,,,50,95,0.25,1,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Don't forget to add it in zone_source\your_map_name.csv or in your mod.csv
or as  gympie6 (https://www.ugx-mods.com/forum/mlist/gympie6_12254)
said everything is already in prefabs
Title: Re: Exploding Barrels?
Post by: SilentR9 on September 13, 2018, 11:47:26 pm
perfect guys! much appreciated.
what part of that should i add to my mod.csv?
Title: Re: Exploding Barrels?
Post by: gympie6 on September 14, 2018, 11:32:04 am
perfect guys! much appreciated.
what part of that should i add to my mod.csv?
I think nothing but you can try to add:
Code Snippet
cpp
sound,destructibles,,all_sp
to your mod.csv if you still don't hear sounds in your game.
(This is where IZaRTaX (https://www.ugx-mods.com/forum/mlist/izartax_139672) has found another soundalias)