EDIt2: Ok i got it working now. It seems a 16bit Mono .wav is very important. I converted it with audacity and found the clue to it in this thread:
viewtopic.php?t=184570 The post from Laureati
Hey i just started Weapon modding and got one weapon kinda working.
It can be bought and equip on ships. It is shooting. But not as i wanted it too but this i will get it to work somehow.
The Main problem is that i set up Weapon sounds but they wont work.
I want a big Gun that shoots two projectiles with a high reload time.
This is how it looks like:
libraries/effects.xml snipped:
Code: Select all
<element id="4" ref="effect_dummy_macro" forkeffect="none" duration="3.0" forklod="none">
<sound ref="wpn_620mm_turret_shoot"></sound>
</element>
Code: Select all
<add sel="//soundlibrary">
<sound id="wpn_620mm_turret_shoot" description="620mm shooting" repeat="1" is3d="1" preload="1"
<sample selection="random">
<select start="extensions\ImpWeaponPack\sfx\weapons\620mm_Cannon_01"/>
</sample>
<volume start="1.5" distance="11"/>
</sound>
Anybody got an idea why?
btw.: The File structure is a mess I can build a new weapon in Starsector in two files and here i need 6 to 8 and that's just XML not even the Graphics and such.
P.S.
Code: Select all
<ammunition value="1" reload="10" />
<bullet speed="22000" lifetime="1.75" amount="1" barrelamount="2" icon="weapon_laser_mk1" angle="0.05" delay="0" maxhits="1" ricochet="0" scale="0" attach="0" selfdestruct="0"/>
<reload rate="1" />
<damage value="4500" repair="0" />
ammunition value = Magazin Size
reload = Time it takes to reload the magazin
amount = Bullets at the same time
barrelamount = amount times Bullets at the same time
angle ?
delay ?
maxhits ?
ricochet ?
scale ?
attach ?
selfdestruct ?
reload rate ?