Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.
The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.
How does the game connects the molotov item with the SoudDataNode ? Is it through some hard-coded connection from the explosion.particleindex to the sound node, or is there a xml property somewhere ? I ask because I would like to change the sound of a custom molotov item, not the base one.you could remove the original molotov_explode1, 2 and 3 with xpath and then set it to some other matching sounds
Do you mean it exists in all "/molotov_exploden" (n=1,2,3) ? Removing molotov_explode1 is not enough ?All the molotov sound files has the broken glass sound in it
Yes, I am sure the particleindex is hardcoded.Thanks a lot Robeloto !
How does the game connects the molotov item with the SoudDataNode ? Is it through some hard-coded connection from the explosion.particleindex to the sound node, or is there a xml property somewhere ? I ask because I would like to change the sound of a custom molotov item, not the base one.
Do you mean it exists in all "/molotov_exploden" (n=1,2,3) ? Removing molotov_explode1 is not enough ?
I do not think you can keep the original file unaltered. If you remove only molotov_explode2, you still have 1 and 3 which has glass sound in it. Maybe you can set your custom molotov item to another explosion particleindex?The sound is indeed based on explosion.particleindex, so no easy way for me to keep the initial molotov unaltered. It seems that removing molotov_explode2 is enough.
<property name="Explosion.ParticleIndex" value="0"/> = No explosion
<property name="Explosion.ParticleIndex" value="1"/> = Explosion
<property name="Explosion.ParticleIndex" value="2"/> = Several explosions
<property name="Explosion.ParticleIndex" value="3"/> = Explosion with black smoke
<property name="Explosion.ParticleIndex" value="4"/> = Rocket launcher explosion
<property name="Explosion.ParticleIndex" value="5"/> = Several noisy explosions with sparks and black smoke
<property name="Explosion.ParticleIndex" value="6"/> = Several explosions with black smoke
<property name="Explosion.ParticleIndex" value="7"/> = FatCop Puke vomit
<property name="Explosion.ParticleIndex" value="8"/> = FatCop Explosion
<property name="Explosion.ParticleIndex" value="9"/> = Molotov explosion with glass shatter
<property name="Explosion.ParticleIndex" value="10"/> = Molotov bottle explode with fire on ground
<property name="Explosion.ParticleIndex" value="11"/> = Explosions with sparks
<property name="Explosion.ParticleIndex" value="12"/> = AmmoPipeBomb - TimedCharge - Explosions with sparks
<property name="Explosion.ParticleIndex" value="13"/> = ContactGrenade - Dynamite - Several explosions
<property name="Explosion.ParticleIndex" value="14"/> = Burning Barrels explosion
<property name="Explosion.ParticleIndex" value="15"/> = Burning Barrels explosion, more barrels
<property name="Explosion.ParticleIndex" value="16"/> = Burning Barrels explosion, even more barrels
<property name="Explosion.ParticleIndex" value="17"/> = Burning Barrels explosion, even more barrels
<property name="Explosion.ParticleIndex" value="18"/> = Burning Barrels explosion, fast barrel explosions
<property name="Explosion.ParticleIndex" value="19"/> = Explosions with sparks - different?
<property name="Explosion.ParticleIndex" value="20"/> = Burning Barrels explosion, even more barrels