Well now I am confused.... I saved the .wav with 22050Hz, 16bit and mono setting...still it won't work... I tried in with 8bit and mono as well and so on (allways PCM) but no joy so far... It still won't work with any other projectile... but as well no other sound will be played for that torpedo...(I tried different sounds that work with other projectiles)
Here is the projectile... mk4.py:
###############################################################################
import App
###############################################################################
# Create(pTorp)
#
# Creates a photon torpedo.
#
# Args: pTorp - the torpedo, ready to be filled-in
#
# Return: zero
###############################################################################
def Create(pTorp):
kGlowColor = App.TGColorA()
kGlowColor.SetRGBA(255.0 / 255.0, 45.0 / 255.0, 0.0, 1.000000)
kCoreColor = App.TGColorA()
kCoreColor.SetRGBA(255.0 / 255.0, 252.0 / 255.0, 100.0 / 255.0, 1.000000)
# Params are:
pTorp.CreateTorpedoModel(
"data/Textures/Tactical/DucatST6Core.tga",
kCoreColor,
0.1,
1.0,
"data/Textures/Tactical/DucatST6Glow.tga",
kGlowColor,
1.0,
0.8,
0.8,
"data/Textures/Tactical/TorpedoFlares.tga",
kGlowColor,
20,
1.0,
0.2)
pTorp.SetDamage( GetDamage() )
pTorp.SetDamageRadiusFactor(0.13)
pTorp.SetGuidanceLifetime( GetGuidanceLifetime() )
pTorp.SetMaxAngularAccel( GetMaxAngularAccel() )
# Multiplayer specific stuff. Please, if you create a new torp
# type. modify the SpeciesToTorp.py file to add the new type.
import Multiplayer.SpeciesToTorp
pTorp.SetNetType (Multiplayer.SpeciesToTorp.PHOTON)
return(0)
def GetLaunchSpeed():
return(23.0)
def GetLaunchSound():
return("mk4photon")
def GetPowerCost():
return(20.0)
def GetName():
return("Mk IV Photon")
def GetDamage():
return 1600.0
def GetGuidanceLifetime():
return 30.0
def GetMaxAngularAccel():
return 0.99
def GetLifetime():
return 100.0
And the attachment is the .wav-file ...I had to zip it because .wav is not allowed as an attachment....
(I even tried it with audacity, but still it's not working...
)
Hope anyone can fix it, would totally make my day!
Tallyho...