View unanswered posts | View active topics It is currently Wed Jan 08, 2025 10:24 pm



Reply to topic  [ 11 posts ] 
 Need help Creating a Rocket launcher 
Author Message
User avatar

Joined: Mon Feb 15, 2010 4:54 pm
Posts: 27
Reply with quote
Post Need help Creating a Rocket launcher
so uhm:

I just wanted to create a Rocket laucher, but I failed pretty much....
The problem is the CopyOf´s...

can someone tell me something about it?


Mon Mar 15, 2010 5:23 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Need help Creating a Rocket launcher
An example of what you made so far and any error you're getting would be nice.

CopyOf is what you use if you want to duplicate some existing weapon/actor/etc.


Mon Mar 15, 2010 5:26 pm
Profile
User avatar

Joined: Mon Feb 15, 2010 4:54 pm
Posts: 27
Reply with quote
Post Re: Need help Creating a Rocket launcher
I tried to modify a "Rocket Launcher Template". The problem is actually caused by the CopyOf´s, the don´t match so good...
What I got so far?
A pile of non-working code:

Code:
AddAmmo = AEmitter
   PresetName = Particle Rocket Launcher
   LifeTime = 2000
   Mass = 4
   GlobalAccScalar = 0.3
   RestThreshold = -500
   HitsMOs = 1
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = ZoneTrooper.rte/Devices/RocketLauncher/RocketB.bmp
   FrameCount = 1
   OrientToVel = 0.6
   SpriteOffset = Vector
      X = -1
      Y = -5
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 1
   DeepCheck = 0
   EmissionAngle = Matrix
      AngleDegrees = 180
   ScreenEffect = ContentFile
      FilePath = ZoneTrooper.rte/Effects/SmallBlast01000.bmp
   EffectStartTime = 0
   EffectStopTime = 55
   EffectStartStrength = 1.0
   EffectStopStrength = 0
   EffectAlwaysShows = 1
   BurstTriggered = 1
   AddEmission = Emission
      EmittedParticle = MOPixel
      ParticlesPerMinute = 6000
      StopTimeMS = 500
      BurstSize = 1
      Spread = 0.5
      MaxVelocity = 1
      MinVelocity = 1
      PushesEmitter = 1
   AddEmission = Emission
      EmittedParticle = MOSParticle
      ParticlesPerMinute = 12000
      StartTimeMS = 100
      StopTimeMS = 500
      BurstSize = 1
      Spread = 3.1
      MaxVelocity = 1
      MinVelocity = 0
      PushesEmitter = 0
//   EmissionSound = Sound
//      AddSample = ContentFile
//         FilePath = Base.rte/Effects/Pyro/Jet.wav
//      LoopSetting = -1 // Means loop infinitely until stopped
//   BurstSound = Sound
//      AddSample = ContentFile
//         FilePath = Base.rte/Effects/Pyro/JetStart.wav
//   EndSound = Sound
//      AddSample = ContentFile
//         FilePath = Base.rte/Effects/Pyro/JetEnd.wav
   EmissionEnabled = 1
   EmissionsIgnoreThis = 0
//   ParticlesPerMinute = 6500
   BurstSize = 1
   BurstScale = 1
   BurstTriggered = 1
   BurstSpacing = 500
   EmissionDamage = 0
   Flash = Attachable
      CopyOf = Muzzle Flash Shotgun
   FlashOnlyOnBurst = 0
   GibSound = Sound
      AddSample = ContentFile
         Path = Base.rte/Sounds/Explode2.wav
   GibImpulseLimit = 20
   AddGib = Gib
      GibParticle = MOPixel
      Count = 100
      Spread = 2.25
      MaxVelocity = 100
      MinVelocity = 95
      InheritsVel = 0
   AddGib = Gib
      GibParticle = MOSParticle
      Count = 10
      MinVelocity = 28
      MaxVelocity = 30


AddAmmo = AEmitter
   PresetName = Shell Rocket Launcher
   LifeTime = 2000
   Mass = 2
   GlobalAccScalar = 0.2
   AirResistance = 0.0
   RestThreshold = -500
   HitsMOs = 1
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = ZoneTrooper.rte/Devices/RocketLauncher/RocketB.bmp
   FrameCount = 1
   OrientToVel = 0.6
   SpriteOffset = Vector
      X = -4
      Y = -3
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 1
   DeepCheck = 0
   EmissionAngle = Matrix
      AngleDegrees = 180
   ScreenEffect = ContentFile
      FilePath =ZoneTrooper.rte/Effects/YellowBig.bmp
   EffectStartTime = 0
   EffectStopTime = 55
   EffectStartStrength = 1.0
   EffectStopStrength = 0
   EffectAlwaysShows = 1
   BurstTriggered = 1
   AddEmission = Emission
      EmittedParticle = MOPixel
         CopyOf = Coalition Rocket Launcher Blast
         PresetName = Shell Coalition Rocket Launcher Trigger
         HitsMOs = 0
         LifeTime = 3
      ParticlesPerMinute = 5000
      BurstSize = 1
      Spread = 0.5
      MaxVelocity = 10
      MinVelocity = 10
      PushesEmitter = 1
//   EmissionSound = Sound
//      AddSample = ContentFile
//         FilePath = Base.rte/Effects/Pyro/Jet.wav
//      LoopSetting = -1 // Means loop infinitely until stopped
//   BurstSound = Sound
//      AddSample = ContentFile
//         FilePath = Base.rte/Effects/Pyro/JetStart.wav
//   EndSound = Sound
//      AddSample = ContentFile
//         FilePath = Base.rte/Effects/Pyro/JetEnd.wav
   EmissionEnabled = 1
   EmissionsIgnoreThis = 0
//   ParticlesPerMinute = 6500
   BurstSize = 1
   BurstScale = 1
   BurstTriggered = 1
   BurstSpacing = 500
   EmissionDamage = 0
//   Flash = Attachable
//      CopyOf = Muzzle Flash Shotgun
   FlashOnlyOnBurst = 0
   GibImpulseLimit = 5
   AddGib = Gib
      GibParticle = MOSParticlel
      Count = 25
      Spread = 3.1
      MaxVelocity = 5
      MinVelocity = 0
      LifeVariation = 0.50
      InheritsVel = 1
   AddGib = Gib
      GibParticle = MOPixel
      Count = 10
      Spread = 3.1
      MaxVelocity = 7
      MinVelocity = 2
      LifeVariation = 0.50


AddAmmo = Round
   PresetName = Round Rocket Launcher
   ParticleCount = 1
   Particle = AEmitter
   Shell = AEmitter
   FireVelocity = 30
   ShellVelocity = 5
   Separation = 5


AddAmmo = Magazine
   PresetName = Magazine Rocket Launcher
   Mass = 5
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Base.rte/null.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = -4
      Y = -5
   ParentOffset = Vector
      X = -7
      Y = -5
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 2
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 3
      Depth = 1
   DeepCheck = 0
   JointStrength = 200
   JointStiffness = 1
   DrawAfterParent = 0
   RoundCount = 3
   RTTRatio = 0
   RegularRound = Round
   TracerRound = None


AddDevice = HDFirearm
   PresetName = Rocket Launcher
   AddToGroup = Weapons
   Description = Best method to get fast rid of silly Dropships... And remember, respect is everything!
   Mass = 64
   HitsMOs = 0
   GetsHitByMOs = 1
   SpriteFile = ContentFile
      FilePath = ZoneTrooper.rte/Devices/RocketLauncher/RocketLauncher.bmp
   FrameCount = 2
   SpriteOffset = Vector
      X = -19
      Y = -5
   EntryWound = AEmitter
      CopyOf = Dent Metal
   ExitWound = AEmitter
      CopyOf = Dent Metal
   GoldValue = 240
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 0
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 4
      Depth = 10
   DeepCheck = 0
   JointStrength = 75
   JointStiffness = 0.5
   JointOffset = Vector
      X = -1
      Y = 4
   DrawAfterParent = 0
   StanceOffset = Vector
      X = 4
      Y = 1
   SharpStanceOffset = Vector
      X = 3
      Y = 1
   SupportOffset = Vector
      X = 4
      Y = -1
   SharpLength = 210
   Magazine = Magazine
   Flash = Attachable
      CopyOf = Muzzle Flash Shotgun
   FireSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/Cannons/BlamWhoshClick.wav
   EmptySound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/EmptyClick3.wav
   ReloadStartSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/ReloadStart.wav
   ReloadEndSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Devices/ReloadEnd.wav
   RateOfFire = 44
   ReloadTime = 3100
   FullAuto = 0
   FireIgnoresThis = 1
   ShakeRange = 10
   SharpShakeRange = 1
   NoSupportFactor = 3
   ParticleSpreadRange = 3
   ShellSpreadRange = 8
   ShellAngVelRange = 0
   MuzzleOffset = Vector
      X = 22
      Y = 1
   EjectionOffset = Vector
      X = -20
      Y = 1
   AddGib = Gib
      GibParticle = MOSRotating
         CopyOf = Rocket Launcher Gib
      Offset = Vector
         X = 11.5
         Y = -1
   GibWoundLimit = 4


a Spoiler would be pretty helpful here....


Mon Mar 15, 2010 5:45 pm
Profile
User avatar

Joined: Wed Feb 04, 2009 4:07 pm
Posts: 380
Location: Galacia
Reply with quote
Post Re: Need help Creating a Rocket launcher
When you edit those templates, you should use search and replace. That's just a guess at improvement.


Mon Mar 15, 2010 5:49 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Need help Creating a Rocket launcher
And what is the error message? (Specifically the line number where it goes wrong.)


Mon Mar 15, 2010 5:49 pm
Profile
User avatar

Joined: Mon Feb 15, 2010 4:54 pm
Posts: 27
Reply with quote
Post Re: Need help Creating a Rocket launcher
It´s at Line 45...

And argh!
Can someone tell me a MOSParticle for a Asssault rifle? Just understand the "CopyOf" a little bit now, because everthing gets declared at the beginning....


Mon Mar 15, 2010 5:54 pm
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Need help Creating a Rocket launcher
Line 45 doesn't make sense. You need to post your mod you made so far, because this isn't going anywhere. :???:


Mon Mar 15, 2010 6:09 pm
Profile
User avatar

Joined: Mon Feb 15, 2010 4:54 pm
Posts: 27
Reply with quote
Post Re: Need help Creating a Rocket launcher
so... really?

Tell me, maybe there should be a "CopyOf"?
Because, I deleted all CopyOf, I was... pissed... :P

the only thing is:

When I use a template HDfirearm, there´s everywere things like "Rocket Launcher Template", how I should edit them? I don´t want to insert a template to my mod... I mean Rocket Launcher Template.rte


Mon Mar 15, 2010 7:47 pm
Profile
User avatar

Joined: Fri Dec 28, 2007 4:19 am
Posts: 1119
Reply with quote
Post Re: Need help Creating a Rocket launcher
Code:
AddAmmo = Round
   InstanceName = DSWB05MAC Shot
   ParticleCount = 1
   Particle = AEmitter //<Specify what kind of object you are going to shoot>
      CopyOf =  DSWB05MAC Shot //<The AEmitter that's being shot>
   Shell = AEmitter //<Specify type of object that's being used for the shell>
      CopyOf = MAC Trail //<The AEmitter that's being used as a shell>
   FireVelocity = 100
   ShellVelocity = 10
   Separation = 0


Ctrl+H is your friend. Its the find and replace. So you can go through the gun template and replace all the template filepaths with your own. I would suggest using a MOPixel first before you start trying to shoot something else, easier that way.


Mon Mar 15, 2010 8:36 pm
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post Re: Need help Creating a Rocket launcher
Code:
   JointStiffness = 1
   DrawAfterParent = 0
   RoundCount = 3
   RTTRatio = 0
   RegularRound = Round
   TracerRound = None


yeah, your gonna come up with a little doo-hicky right here too... you havent defined the round...

EDIT: oh, just noticed your post earlier :oops: here just replace the RegularRound = Round with
Code:
 RegularRound = Round
  CopyOf = Round Rocket Launcher


Tue Mar 16, 2010 1:46 am
Profile
User avatar

Joined: Mon Feb 15, 2010 4:54 pm
Posts: 27
Reply with quote
Post Re: Need help Creating a Rocket launcher
well... it didn´t helped so much, guess so Im talking to my old friend StoneCrow....


Thu Mar 18, 2010 10:53 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.034s | 13 Queries | GZIP : Off ]