I was trying to make a laser weapon, its projectile worked fine when I had the bullet set to just an MOPixel, but when I tried to run that MOPixel through an AEmitter to add a custom sprite as the bullet, the projectile just plain doesn't fire.
Here's the code for the weapon.
Code:
AddParticle = MOPixel PresetName = Omega Laser Effect Mass = .3 RestThreshold = 500 LifeTime = 700 Sharpness = 2 HitsMOs = 1 GetsHitByMOs = 0 Atom = Atom Material = Material CopyOf = Omega Laser Particle TrailColor = Color R = 155 G = 155 B = 255 TrailLength = 100 ScreenEffect = ContentFile FilePath = Rocket Propelled Awesome.rte/Effects/BlueSmall.bmp EffectStartTime = 10 EffectStopTime = 800 EffectStartStrength = .9 EffectStopStrength = .3
Pfft, I like intensive purposes better. And also, thank you. The temptation to facepalm is nearly overwhelming.
Edit:: The projectiles still don't fire, I first set the ParticlesPerMinute Value to 1, then to 1000, and fiddled with the EmissionsEnabled and BurstTriggered, trying each combination respectively. None worked.
Wed Jan 08, 2014 1:27 am
Arcalane
Joined: Sun Jan 28, 2007 10:32 pm Posts: 1609 Location: UK
Re: Projectiles not firing from gun
OmegaX17 wrote:
And also, thank you. The temptation to facepalm is nearly overwhelming.
The BurstSize just tells it how many to throw out with every emission triggered by the PPM count, I think. It's important to set the lifetime properly so that the AI can properly figure out how to use the weapon, but if you set the PPM higher than 1 or so things will get interesting. Replicating energy bolts, anyone?
Alternately you could do some shenanigans with spawning the various projectiles using lua and just use a dummy projectile for AI rangefinding, but that's overcomplicating things for the most part.
Wed Jan 08, 2014 1:36 am
OmegaX17
Joined: Mon Dec 26, 2011 9:52 pm Posts: 78
Re: Projectiles not firing from gun
Arcalane wrote:
but if you set the PPM higher than 1 or so things will get interesting. Replicating energy bolts, anyone?
Well, if I could put a cap on it at around 9000, I would, but that'd probably involve lots of lua. Also known as something I do wrong more often than right, to say the least.
Me thinks you may want to set the particles emission velocity lower than 500, since that's the point where particles disappear due to ridonkulous speed. If this IS the problem (which i cannot guarantee), then 450 should be fine, since emissions don't inherit velocity. I think.
Wed Jan 08, 2014 11:20 pm
OmegaX17
Joined: Mon Dec 26, 2011 9:52 pm Posts: 78
Re: Projectiles not firing from gun
Shook wrote:
Me thinks you may want to set the particles emission velocity lower than 500, since that's the point where particles disappear due to ridonkulous speed. If this IS the problem (which i cannot guarantee), then 450 should be fine, since emissions don't inherit velocity. I think.
Tried that, still nothing out of the barrel.
Thu Jan 09, 2014 1:28 am
dragonxp
Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
Re: Projectiles not firing from gun
It's because you wrote PresetName instead of CopyOf under the magazine
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