Data Realms Fan Forums http://45.55.195.193/ |
|
Projectiles not firing from gun http://45.55.195.193/viewtopic.php?f=1&t=45544 |
Page 1 of 1 |
Author: | OmegaX17 [ Wed Jan 08, 2014 1:17 am ] |
Post subject: | Projectiles not firing from gun |
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. And the Mod itself, for all intensive purposes. Attachment: Most of the sprites are placeholders. |
Author: | Arcalane [ Wed Jan 08, 2014 1:25 am ] |
Post subject: | Re: Projectiles not firing from gun |
First things first: *for all intents and purposes That aside; you set the ParticlesPerMinute to 0. It needs to be at least 1 in order for the weapon to work. Here's a similar emitter projectile to demonstrate, albeit for a shotgun; |
Author: | OmegaX17 [ Wed Jan 08, 2014 1:27 am ] |
Post subject: | Re: Projectiles not firing from gun |
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. |
Author: | Arcalane [ Wed Jan 08, 2014 1:36 am ] |
Post subject: | 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. |
Author: | OmegaX17 [ Wed Jan 08, 2014 1:39 am ] |
Post subject: | 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. |
Author: | Shook [ Wed Jan 08, 2014 11:20 pm ] |
Post subject: | Re: Projectiles not firing from gun |
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. |
Author: | OmegaX17 [ Thu Jan 09, 2014 1:28 am ] |
Post subject: | 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. |
Author: | dragonxp [ Thu Jan 09, 2014 6:54 am ] |
Post subject: | Re: Projectiles not firing from gun |
It's because you wrote PresetName instead of CopyOf under the magazine Change Code: RegularRound = Round PresetName = Omega Laser Round TracerRound = None to Code: RegularRound = Round CopyOf = Omega Laser Round TracerRound = None Edit: plus not enabling emitting, but that was said earlier soooo.... |
Author: | OmegaX17 [ Sat Jan 11, 2014 12:04 am ] |
Post subject: | Re: Projectiles not firing from gun |
... I need to go remove my face from my desk now. Thank you, just... just thank you. |
Author: | dragonxp [ Sat Jan 11, 2014 5:04 am ] |
Post subject: | Re: Projectiles not firing from gun |
We all do that at some point, don't worry |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |