Author Topic: if I change the name of a torpedo  (Read 1081 times)

Offline Starforce2

  • Master Hardpointer
  • Retired Staff
  • Posts: 1483
  • Cookies: 882
  • Skype: LizardWranger
    • Facebook
if I change the name of a torpedo
« on: December 16, 2010, 06:54:41 AM »
If I change the name of a torpedo's projectile file, but leave everything else the same, do I need to change the autoload for the sound too?
I just realised something. I've released over 300 fully modded ships for bridge commander. Bow to your master :D
Read my mod blog!
http://bcs-tng.com/forums/index.php?action=viewblog;u=1129

Offline JimmyB76

  • Posts: 6423
  • Cookies: 421
Re: if I change the name of a torpedo
« Reply #1 on: December 16, 2010, 07:38:05 AM »
im gonna toss the thread into Scripting...


you wouldnt need to change anything in the autoload script - the autoload script defines what fire sound (dictated in the torp script) to use, so changing the name of the torp wouldnt matter...

in the torp's projectile script, using TOS photorp as example:
Code: [Select]
def GetLaunchSound():
return("TOSphotorp")

autoload script:
Code: [Select]
Foundation.SoundDef("sfx/Weapons/TOS_photorp.wav", "TOSphotorp", 1)