Data Realms Fan Forums
http://45.55.195.193/

Jetpack halp
http://45.55.195.193/viewtopic.php?f=1&t=18501
Page 1 of 1

Author:  Koiro [ Sat Apr 17, 2010 3:12 am ]
Post subject:  Jetpack halp

Hello. I would like to make a 'jump' jetpack for a faction. Not really a jetpack, but jumping, like some actors have. Anyone know how to do that?

Author:  Cooljoesmith [ Sat Apr 17, 2010 3:15 am ]
Post subject:  Re: Jetpack halp

there is two ways to do that, one the old fashion way, or with lua

the vanilla zombies have the old fashion way, the actual code is in Pyro.ini
Code:
AddEffect = AEmitter
   PresetName = Jump Light
   Mass = 0.0001
   HitsMOs = 0
   GetsHitByMOs = 0
   SpriteFile = ContentFile
      FilePath = Base.rte/Null.bmp
   FrameCount = 1
   SpriteOffset = Vector
      X = 0
      Y = 0
   AtomGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 2
      Depth = 5
   DeepGroup = AtomGroup
      AutoGenerate = 1
      Material = Material
         CopyOf = Military Stuff
      Resolution = 3
      Depth = 5
   DeepCheck = 0
   JointStrength = 10000
   JointStiffness = 1
   DrawAfterParent = 0
   AddEmission = Emission
      EmittedParticle = MOPixel
         CopyOf = Jump Pixel Light
      Spread = 0.1
      MaxVelocity = 20
      MinVelocity = 20
      PushesEmitter = 1
/*
   BurstSound = Sound
      AddSample = ContentFile
         FilePath = Base.rte/Effects/Pyro/JetStart.wav
*/
   EmissionEnabled = 1
   EmissionsIgnoreThis = 1
   ParticlesPerMinute = 1
   BurstSize = 18
   BurstSpacing = 920
   BurstScale = 1
   BurstTriggered = 1
   EmissionDamage = 0
   Flash = None
   FlashOnlyOnBurst = 0

Author:  Twwig [ Sat Apr 17, 2010 3:23 am ]
Post subject:  Re: Jetpack halp

So on your actor's .ini, find the line that says "Jetpack = AEmitter" and where the next line says "CopyOf = [jetpack preset name here]", change the present to "Jump Light".

On a similar topic (brace for super noob question): does the force the jump rely on something like the actor's JumpLimbPath variables (like PushForce, etc.), or should I just make a new version of Jump Light if I don't want my actors jumping like Mario?

Author:  Cooljoesmith [ Sat Apr 17, 2010 3:24 am ]
Post subject:  Re: Jetpack halp

as far as I know, the Limb paths do nothing, you have to edit the the mass of the particles emitted, how many or how fast.

Author:  Duh102 [ Sat Apr 17, 2010 3:25 am ]
Post subject:  Re: Jetpack halp

Twwig wrote:
make a new version of Jump Light if I don't want my actors jumping like Mario?

The jetpack is just a specialized emitter that spits out particles when you hold down the jump/up button. You can change the length of time it can be enabled somewhere, too lazy to look, possibly in the Actor.

Author:  Cooljoesmith [ Sat Apr 17, 2010 3:26 am ]
Post subject:  Re: Jetpack halp

the length of time is in the actor code
Code:
JumpTime = 0 // Secs

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/