Data Realms Fan Forums
http://45.55.195.193/

Emissions damaging the weapons they're fired from?
http://45.55.195.193/viewtopic.php?f=1&t=17618
Page 1 of 1

Author:  Ameefmu [ Wed Jan 20, 2010 4:26 am ]
Post subject:  Emissions damaging the weapons they're fired from?

Hi all,

I seem to be having a bit of trouble with this sniper I'm currently working on. Everything works perfectly except for the fact that the emissions seem to be fired from inside the gun, apart from all the tweaking I've done with offsets, and emissions ignoring parent weapons. I think it's pretty nifty as it gives the weapon a 'charge' system, as it can only fire 4-5 times before breaking. However this is not what I was aiming for with this weapon, maybe for another one.

I'll attach a Pastebin with the current code on it, the sprite I'm using is just a plain Dummy Sniper at this point in time, I'll make the modifications once I get the .ini all working.

There's probably something very obvious in there that's screwing up my whole operation, but I'd be much obliged if someone who's got some idea what they're doing could take a quick look and tell me what I've messed up.

Thanks in advance!

http://pastebin.com/m7b0a777f

-Ameefmu

Author:  Grif [ Wed Jan 20, 2010 4:35 am ]
Post subject:  Re: Emissions damaging the weapons they're fired from?

FireIgnoresThis = 1?

Author:  411570N3 [ Wed Jan 20, 2010 5:20 am ]
Post subject:  Re: Emissions damaging the weapons they're fired from?

It fires an emitter that emits the rounds Grif.
I am sure you can't do this with .ini code alone; you'll have to do a little Lua.

Author:  Grif [ Wed Jan 20, 2010 5:31 am ]
Post subject:  Re: Emissions damaging the weapons they're fired from?

your muzzleoffset is pretty damn close to your gun

give it a wacky value like 100 and see what the different is then step down until you can compromise form and function

Author:  Ameefmu [ Wed Jan 20, 2010 5:37 am ]
Post subject:  Re: Emissions damaging the weapons they're fired from?

Grif: I set the muzzleoffset up to 75, I can see the projectile originating from a point that's very far away from the gun, except the sniper still gets hit by something when firing. I wonder if I messed up something with the muzzleflash...

Author:  CaveCricket48 [ Wed Jan 20, 2010 5:43 am ]
Post subject:  Re: Emissions damaging the weapons they're fired from?

The spread of the emitter is a full circle right now, so the particles will fire in every direction and damage things, inlucing your gun. Change it to 0, or something low.

Author:  Ameefmu [ Thu Jan 21, 2010 3:48 am ]
Post subject:  Re: Emissions damaging the weapons they're fired from?

Well I've got it fixed, it now doesn't damage the weapon it's fired from. Now it just passes straight through any actors it hits though. Maybe the AEmitter is too small for the game to register it actually colliding, or maybe I messed something else up in my desperate variable-modifying flurry to fix the weapon damage issue.
Anyway thanks for your help all :)

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