Question to modders about editing grenades
Select messages from
# through # Forum FAQ
[/[Print]\]

Close Combat Series -> Modding Workshop

#1: Question to modders about editing grenades Author: Dfox PostPosted: Mon Sep 27, 2010 9:20 pm
    —
Hi all,

My question is about editing grenades.

In "Soldiers" file for every soldier the Grenade Weapon is "1" from Class column of "Weapons" file. And there are others grenades in "Weapons" file:

129 - Smoke Grenade
130 - Hand Grenade
131 - Stielhandgranate
132 - Nebelhandgranate

But looks like these grenades are not used in the game...

1) Is it right ?
2) Can I make "130" or "132" ( from Class column of "Weapons" file ) the Grenade Weapon for soldier or it's hardcoded and the game will crash in case of any change ?
3) Where can I edit the sound of Grenade explosion ? Not throwing but explosion !
4) Where can I edit the data and sound of Smoke Grenade ?  

Thanks in advance,

Dfox

#2: Re: Question to modders about editing grenades Author: Pzt_KanovLocation: México PostPosted: Tue Sep 28, 2010 1:47 am
    —
AFAIK both sides use the grenade 1 and the other entries (129 to 132) are just for the names. It's hardcoded in the sense that only the grenade 1 will appear on the little squares in the BG screen. You can make other grenade weapons (ie the gammon) but these appear together with the rifles, MG's and pistols and when they are used in game the soldier retains them when idle as if it was his primary weapon but with the legend 'NO AMMO', very weird.

Other Hardcoded entries are the 81mm mortar that serves as the mortar barrage weapon too. The Big explosion is the one used in Naval barrages and the Arty explosion is the one used by flammable objects like barrels or cars.

#3: Re: Question to modders about editing grenades Author: Dfox PostPosted: Tue Sep 28, 2010 8:33 am
    —
Thank you, Pzt_Kanov !

And what is about questions 3 and 4 ?

Regards,

Dfox

#4: Re: Question to modders about editing grenades Author: Pzt_KanovLocation: México PostPosted: Tue Sep 28, 2010 4:05 pm
    —
The weapon sounds are found in the Sound.sfx file, to link a weapon with a sound you need to look at the Weapon Sound column almost at the end of the Weapons.txt file. The smoke grenade is the smoke attributes of Grenade 1, it has the same sound as normal grenade.

The actual explosion sounds are in Sounds.sfx file too but you will have to look for them as I don't remember what index number they are.

#5: Re: Question to modders about editing grenades Author: squadleader_idLocation: Soerabaja PostPosted: Wed Sep 29, 2010 1:07 am
    —
Dfox, try to get hold of Yukongold's CC Sounds workbook...this should give you all the info you need.
I'm not sure if the workbook is available at CCS though...but try the downloads section.

#6: Re: Question to modders about editing grenades Author: yukongoldLocation: Whitehorse,Canada PostPosted: Wed Sep 29, 2010 4:53 am
    —
Found it!
http://www.closecombatseries.net/CCS/modules.php?name=Forums&file=viewtopic&t=4679
 
Please feel free to add to or correct the workbook with any new findings.
I'm not sure if the link for the test sound file will still work........maybe?

cheers
yg

#7: Re: Question to modders about editing grenades Author: platoon_michaelLocation: Right behind you PostPosted: Wed Sep 29, 2010 1:54 pm
    —
Pzt_Kanov wrote (View Post):
AFAIK both sides use the grenade 1 and the other entries (129 to 132) are just for the names. It's hardcoded in the sense that only the grenade 1 will appear on the little squares in the BG screen. You can make other grenade weapons (ie the gammon) but these appear together with the rifles, MG's and pistols and when they are used in game the soldier retains them when idle as if it was his primary weapon but with the legend 'NO AMMO', very weird.

Other Hardcoded entries are the 81mm mortar that serves as the mortar barrage weapon too. The Big explosion is the one used in Naval barrages and the Arty explosion is the one used by flammable objects like barrels or cars.


Thank-you for this thread,helped me find a bug in my stuff today.

What are all the hard codded weapons for WAR?

I did not know this and discovered today that it was the weapon class's 129-132 that was causing my game to crash.
Without them every time I moused over the hand grenade and smoke grenades the game would display about 20-30Y's and then crash.

#8: Re: Question to modders about editing grenades Author: Cathartes PostPosted: Wed Sep 29, 2010 2:18 pm
    —
you can't edit the grenade sound explosion in the data, the sound that is data-linked is the grunt/throwing sound.

the hard-coded sound linked to the explosion is 0043 wav, but keep in mind, if you change this, you will also be changing the sound of an AP shell striking the ground, also hard-coded.

#9: Re: Question to modders about editing grenades Author: CSO_Talorgan PostPosted: Tue Oct 12, 2010 6:36 pm
    —
I wish hard coding didn't muck up the base files!



Close Combat Series -> Modding Workshop


output generated using printer-friendly topic mod. All times are GMT

Page 1 of 1