View unanswered posts | View active topics It is currently Sat Oct 05, 2024 8:34 pm



Reply to topic  [ 7 posts ] 
 Emissions damaging the weapons they're fired from? 
Author Message

Joined: Sat Aug 22, 2009 11:56 am
Posts: 25
Reply with quote
Post 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


Wed Jan 20, 2010 4:26 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Emissions damaging the weapons they're fired from?
FireIgnoresThis = 1?


Wed Jan 20, 2010 4:35 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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.


Wed Jan 20, 2010 5:20 am
Profile WWW
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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


Wed Jan 20, 2010 5:31 am
Profile

Joined: Sat Aug 22, 2009 11:56 am
Posts: 25
Reply with quote
Post 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...


Wed Jan 20, 2010 5:37 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13143
Location: Here
Reply with quote
Post 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.


Wed Jan 20, 2010 5:43 am
Profile

Joined: Sat Aug 22, 2009 11:56 am
Posts: 25
Reply with quote
Post 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 :)


Thu Jan 21, 2010 3:48 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: Google [Bot]


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.034s | 14 Queries | GZIP : Off ]