Hello Mr. Polyacov,
I am writing in regards to the controls for dualgun effects/sounds. Currently, I am working on getting dualgun effects set up more correctly for a sound mod. I see there already exists a way to set separate effects for the L/R guns; however, I cannot seem to find a way to set the effects for when a double (charged) shot is fired.
I have studied how it works in the default game, perhaps this may be of some use (if not to you personally, then maybe to others):
By default, it appears that the dualgun firing effects are set separately from the main effects, within a “_siege_mode” version of the same vehicle’s XML (for example, R170_IS_2_II.xml controls the standard firing effects/sounds, while "R170_IS_2_II_siege_mode.xml" controls the firing effects/sounds for when you fire a double-shot). Despite the double firing both guns at once, the effects appear to be set separately for both guns in the _siege_mode XML (meaning, there are still two individual effects, split into L and R). EDIT: The firing sound for the double-shot appears to be tied to the right (_R) gun, but the rest of the effects parameters are still defined separately.
Using IS-2-II as an example, the standard firing effects/sounds for the two guns while being used cyclically are defined in R170_IS_2_II.xml, and are set as shot_dualgun1_mainext_L and shot_dualgun1_mainext_R. Meanwhile, the double-shot effects/sounds are set as shot_dualgun_mainext_L and shot_dualgun_mainext_R. As far as the effects themselves go, the “dualgun” (charged) firing sounds are different (wpn_main_extra_dual_PC) from the “dualgun1” (cyclic) firing sounds (wpn_main_extra_PC), the blast wave is larger for firing a charged shot, the groundwave effects appear to be slightly different, etc.
This being said, I have not been able to find a way to set the charged effects in soundEventInjector. Since I could not find a way to set the “double-shot” sound/effect in the normal manner (adding an entry to the normal effects json), I tried adding an exception specifically for the _siege_mode version, as follows:
"effects": ["shot_85mm_dualgun_double_L", "shot_85mm_dualgun_double_R"],
"effects": ["shot_100mm_D10_dualgun_double_L", "shot_100mm_D10_dualgun_double_R"],
While the regular firing effects within the principles.json are as follows:
"effects": ["shot_100mm_D10_dualgun_L", "shot_100mm_D10_dualgun_R"],
(Each of the effects listed is defined in the guns_effects.json, with the origin set to the respective firing effect, i.e. “shot_dualgun1_mainext_mb_R” for the standard [dualgun1] firing effect and “shot_dualgun_mainext_L” for the charged [dualgun] effect.)
Testing this out in a replay plays the regular firing sounds regardless of whether the vehicle is firing cyclically or using the charged (double) shot. Furthermore, while the effects do work for the two guns firing individually, firing a charged shot does not produce a different effect (which would normally be a larger muzzle blast + different ground effects).
I have also tried defining both the standard vehicle and its _siege_mode variant in the exceptions file, removing the gun definition from the principles.json entirely, but this does not appear to work either.
As such, I would like to ask two questions:
Ffirstly, does there already exist a way to define the charged shot sounds/effects for the two guns SEPARATELY from the standard firing sounds (which I understand are already defined as [”shot_L”,“shot_R”]) in soundEventInjector?
Secondly, if there does not already exist a method to do this within soundEventInjector, would such a thing be possible to implement, and/or would you be willing to do so in the future?
Thank you for your ongoing work with this mod. Приветствую