Data Realms Fan Forums http://45.55.195.193/ |
|
Gib spread relative to velocity. Need help! http://45.55.195.193/viewtopic.php?f=1&t=15300 |
Page 1 of 1 |
Author: | AGENT15 [ Thu Jun 11, 2009 12:36 am ] |
Post subject: | Gib spread relative to velocity. Need help! |
I'm making a directional explosive, and I'm trying to use "Spread = X" on the gibs to make it semi accurate, but whenever I add a spread, it only affects the spread to the right. If I reduce it, I can fire to the right perfectly but if I explode it upwards, downwards, left, etc. none of the particles will go left outside the spread range. How can I make the gib spread be set to whatever direction the explosive is moving before it detonates? I already have OrientToVel = 1 for the explosive itself. Here's the code. Code: AddAmmo = TDExplosive PresetName = Frag CG Mass = 2 RestThreshold = -500 Buyable = 0 OrientToVel = 1 HitsMOs = 1 GetsHitByMOs = 0 SpriteFile = ContentFile FilePath = Coalition.rte/Devices/Cannons/CannonRound.bmp FrameCount = 1 SpriteOffset = Vector X = -2 Y = -2 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 = 1 JointStrength = 6 JointStiffness = 0.5 DrawAfterParent = 1 StanceOffset = Vector X = -12 Y = -5 StartThrowOffset = Vector X = -12 Y = -5 EndThrowOffset = Vector X = -12 Y = -5 TriggerDelay = 0 AddGib = Gib GibParticle = MOPixel CopyOf = Grenade Fragment Gray Count = 12 Spread = 3.14 LifeVariation = 0.7 // MaxVelocity = 250 // MinVelocity = 15 LifeVariation = 0.5 InheritsVel = 1 AddGib = Gib GibParticle = MOPixel CopyOf = Grenade Fragment Yellow Count = 8 Spread = 3.14 LifeVariation = 0.7 // MaxVelocity = 270 // MinVelocity = 25 LifeVariation = 0.5 InheritsVel = 1 AddGib = Gib GibParticle = MOSParticle CopyOf = Explosion Smoke 1 InstanceName = Cannon Smoke 1 AirResistance = 0.5 Count = 2 Spread = 3.14 MaxVelocity = 40 MinVelocity = 5 LifeVariation = 0.5 InheritsVel = 1 AddGib = Gib GibParticle = MOSParticle CopyOf = Explosion Smoke 2 InstanceName = Cannon Smoke 2 AirResistance = 0.4 Count = 2 Spread = 3.14 MaxVelocity = 40 MinVelocity = 5 LifeVariation = 0.5 InheritsVel = 1 AddGib = Gib GibParticle = MOSParticle CopyOf = Explosion Smoke 1 InstanceName = Cannon Smoke 3 AirResistance = 0.3 Count = 2 Spread = 3.14 MaxVelocity = 40 MinVelocity = 5 LifeVariation = 0.50 InheritsVel = 1 AddGib = Gib GibParticle = MOSParticle CopyOf = Explosion Smoke 2 InstanceName = Cannon Smoke 4 AirResistance = 0.2 Count = 2 Spread = 3.14 MaxVelocity = 40 MinVelocity = 5 LifeVariation = 0.50 InheritsVel = 1 GibImpulseLimit = 1 AddAmmo = Round PresetName = Round CG ParticleCount = 1 Particle = TDExplosive CopyOf = Frag CG Shell = None FireVelocity = 100 ShellVelocity = 10 Separation = 5 |
Author: | Grif [ Thu Jun 11, 2009 12:46 am ] |
Post subject: | Re: Spread relative to velocity |
InheritsVel? |
Author: | AGENT15 [ Thu Jun 11, 2009 1:00 am ] |
Post subject: | Re: Spread relative to velocity |
Yeah, I have that too. I added the code so everything is laid out, maybe you can spot the problem. I did some testing and it seems that inheritsvel will somewhat conflict with spread, so even though if I shoot left, the particles will be moving left, they will still only be shot in a reverse "C" shape, and a certain range will be left gibless. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |