View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:02 pm



Reply to topic  [ 10 posts ] 
 Projectiles not firing from gun 
Author Message
User avatar

Joined: Mon Dec 26, 2011 9:52 pm
Posts: 78
Reply with quote
Post 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:
File comment: The Mod.
Rocket Propelled Awesome.rte.rar [127.45 KiB]
Downloaded 300 times

Most of the sprites are placeholders.


Wed Jan 08, 2014 1:17 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post 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;



Wed Jan 08, 2014 1:25 am
Profile YIM
User avatar

Joined: Mon Dec 26, 2011 9:52 pm
Posts: 78
Reply with quote
Post 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.


Wed Jan 08, 2014 1:27 am
Profile
User avatar

Joined: Sun Jan 28, 2007 10:32 pm
Posts: 1609
Location: UK
Reply with quote
Post Re: Projectiles not firing from gun
OmegaX17 wrote:
And also, thank you. The temptation to facepalm is nearly overwhelming.


:lol: 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
Profile YIM
User avatar

Joined: Mon Dec 26, 2011 9:52 pm
Posts: 78
Reply with quote
Post 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.


Wed Jan 08, 2014 1:39 am
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post 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.


Wed Jan 08, 2014 11:20 pm
Profile WWW
User avatar

Joined: Mon Dec 26, 2011 9:52 pm
Posts: 78
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post 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....


Thu Jan 09, 2014 6:54 am
Profile
User avatar

Joined: Mon Dec 26, 2011 9:52 pm
Posts: 78
Reply with quote
Post Re: Projectiles not firing from gun
...
I need to go remove my face from my desk now.
Thank you, just... just thank you.


Sat Jan 11, 2014 12:04 am
Profile
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post Re: Projectiles not firing from gun
We all do that at some point, don't worry :-o


Sat Jan 11, 2014 5:04 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.044s | 14 Queries | GZIP : Off ]