Dfox
Rep: 101.8 votes: 4
|
Posted: Mon Sep 27, 2010 9:20 pm Post subject: Question to modders about editing grenades |
|
|
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 |
|
|
Back to top |
|
|
|
Pzt_Kanov
Rep: 14.2 votes: 9
|
Posted: Tue Sep 28, 2010 1:47 am Post subject: Re: Question to modders about editing grenades |
|
|
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. |
|
|
Back to top |
|
|
Dfox
Rep: 101.8 votes: 4
|
Posted: Tue Sep 28, 2010 8:33 am Post subject: Re: Question to modders about editing grenades |
|
|
Thank you, Pzt_Kanov !
And what is about questions 3 and 4 ?
Regards,
Dfox |
|
|
Back to top |
|
|
Pzt_Kanov
Rep: 14.2 votes: 9
|
Posted: Tue Sep 28, 2010 4:05 pm Post subject: Re: Question to modders about editing grenades |
|
|
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. |
|
|
Back to top |
|
|
squadleader_id
Rep: 53.2 votes: 7
|
Posted: Wed Sep 29, 2010 1:07 am Post subject: Re: Question to modders about editing grenades |
|
|
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. |
|
|
Back to top |
|
|
yukongold
Rep: 7
|
|
Back to top |
|
|
platoon_michael
Rep: 56.2 votes: 25
|
Posted: Wed Sep 29, 2010 1:54 pm Post subject: Re: Question to modders about editing grenades |
|
|
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. |
|
|
Back to top |
|
|
Cathartes
Rep: 101.3 votes: 15
|
Posted: Wed Sep 29, 2010 2:18 pm Post subject: Re: Question to modders about editing grenades |
|
|
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. |
|
|
Back to top |
|
|
CSO_Talorgan
Rep: 72.5 votes: 1
|
Posted: Tue Oct 12, 2010 6:36 pm Post subject: Re: Question to modders about editing grenades |
|
|
I wish hard coding didn't muck up the base files! |
|
|
Back to top |
|
|