Author |
Message |
SouthSide
Joined: Sun Mar 01, 2009 7:48 am Posts: 10
|
My gun explodes
Im modding the reg. heavy sniper and i resprited it, but when i fire the thing the gun just dies I figure the gun must be firing in itself to cause this.
Last edited by SouthSide on Sat Mar 07, 2009 5:56 pm, edited 1 time in total.
|
Sat Mar 07, 2009 2:13 am |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
Re: My gun explodes
Give us the new sprite. Your problem is that your MuzzleOffset is off, probably behind or inside the gun. You have to move it, with the sprite I can give you the correct co-ordinates... Also, large blocks of text are generally frowned upon, try uploading a .txt next time, it preserves the tabbing.
|
Sat Mar 07, 2009 2:33 am |
|
|
zalo
Joined: Sat Feb 03, 2007 7:11 pm Posts: 1496
|
Re: My gun explodes
Add 10 to the Muzzle offset so x = 20 goes to x = 30, but the y var stays the same. If that doesn't work, add another 10 to it until it does work. I would be more precise, but I need to see the sniper sprite. Basically the X var is the amount of pixels away from the Sprite offset (should be center of gun) that the muzzle is.
Also, your bullets weigh 4 kilograms. Can you imagine a hand held sniper that shoots 4 small cannonballs welded together?
Also, it only shoots at 1 Km/s so it looks like it is the Sharp Objects coming from the emitter it fires that Gibs the object.
|
Sat Mar 07, 2009 3:15 am |
|
|
SouthSide
Joined: Sun Mar 01, 2009 7:48 am Posts: 10
|
Re: My gun explodes
positive or negitive 30 and sorry for the crap load of text
|
Sat Mar 07, 2009 3:49 am |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
Re: My gun explodes
Try Code: MuzzleOffset = Vector X = -38 Y = 1 I'm surprised it doesn't kill the actor instead of the gun, any further and it would have shot behind you.
|
Sat Mar 07, 2009 3:58 am |
|
|
SouthSide
Joined: Sun Mar 01, 2009 7:48 am Posts: 10
|
Re: My gun explodes
I did what you said and it fires, yet very inacuratly and he holds it all funky
|
Sat Mar 07, 2009 4:06 am |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
Re: My gun explodes
Your offsets are ♥♥♥♥. Here's an explanation of the different offsets: SpriteOffset: how the game should center the sprite, should be two negative numbers. this one is important, because all the other offsets are relative to this one. JointOffset: where the actor's front hand goes. SupportOffset: where the actor's back hand goes. StanceOffset: where the hand is positioned in relation to the arm joint when walking. SharpStanceOffset: where the hand is positioned in relation to the arm joint when aiming accurately ("sharp-aiming") MuzzleOffset: where the bullets come out and the muzzleflash is displayed. EjectionOffset: where the shells/casings come out.
you also might want to make the spriteoffsets on your emitters.
|
Sat Mar 07, 2009 6:15 am |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
Re: My gun explodes
If you release it as a .rte then people can do the offsets for you...
|
Sat Mar 07, 2009 6:58 am |
|
|
SouthSide
Joined: Sun Mar 01, 2009 7:48 am Posts: 10
|
Re: My gun explodes
I was making another now in my own faction its kindof like a rovolver rocket luancher Ive got it almost done, yet i woulkd like for the casing to fire back and out instead of infront of me
any ideas?
|
Sat Mar 07, 2009 5:59 pm |
|
|
|