Author |
Message |
Exalion
Joined: Fri Mar 02, 2007 6:59 am Posts: 1726 Location: NSW, Australia
|
Inherits Velocity
Hi guys.
I'm making a mine-deployer weapon (similar to findude's rigger, but coded totally differently), and a problem I'm having is that depending on how the device is detonated, the explosives all go in weird directions.
for example: if a soldier shoots the mine from the left, all the explosives will travel mainly to the left.
first of all, that's backwards, and second of all, even if it wasn't it'd still make the device less useful.
Oh, and the 'explosive' is actually an AHuman. and has to be for the code to work.
|
Sun Nov 30, 2008 4:03 am |
|
|
Azukki
Joined: Sat Nov 03, 2007 9:44 pm Posts: 1916 Location: Flint Hills
|
Re: Inherits Velocity
Maybe your AHuman mine is overdoing it with the recoil/impulse based detonation, and sending itself into a high velocity before gibbing.
And are the gibs set to inherit velocity?
I don't really understand your explanation of what it's doing and what you want it to be doing.
|
Sun Nov 30, 2008 4:07 am |
|
|
findude
Joined: Tue Dec 12, 2006 3:10 pm Posts: 495 Location: Uncertain quantum state
|
Re: Inherits Velocity
GlobalAccScalar = 0 without pinning makes them float about even without any velocity.
|
Sun Nov 30, 2008 10:27 am |
|
|
Exalion
Joined: Fri Mar 02, 2007 6:59 am Posts: 1726 Location: NSW, Australia
|
Re: Inherits Velocity
That's probably it Azzuki, I modified the gun they wield to blow them up... hmm, I'll work it out...
|
Sun Nov 30, 2008 11:21 am |
|
|
Geti
Joined: Sun Jul 13, 2008 9:57 am Posts: 4886 Location: some compy
|
Re: Inherits Velocity
just in case (as you havnt specified) all the gibs are "inheritsvel = 0" yeah? all of them. on the gun and the ahuman. yes?
|
Mon Dec 01, 2008 9:28 am |
|
|
Exalion
Joined: Fri Mar 02, 2007 6:59 am Posts: 1726 Location: NSW, Australia
|
Re: Inherits Velocity
nope, I put that in.
And it crashed -.-
|
Mon Dec 01, 2008 12:07 pm |
|
|
findude
Joined: Tue Dec 12, 2006 3:10 pm Posts: 495 Location: Uncertain quantum state
|
Re: Inherits Velocity
InheritsVel = 0 only goes to the GibParticle. Where the Spread and Count is. Check the vanilla stuff!
|
Mon Dec 01, 2008 1:10 pm |
|
|
Exalion
Joined: Fri Mar 02, 2007 6:59 am Posts: 1726 Location: NSW, Australia
|
Re: Inherits Velocity
Thanks Findude! I couldn't find it in the vanilla code, that's why I'd put it in the wrong place.
|
Tue Dec 02, 2008 6:41 am |
|
|
|