View unanswered posts | View active topics It is currently Thu Jan 09, 2025 10:24 pm



Reply to topic  [ 3 posts ] 
 Gib problem 
Author Message
User avatar

Joined: Sun Nov 16, 2008 6:04 am
Posts: 29
Reply with quote
Post Gib problem
I am trying to convert flak cannon so it's shell will gib into dropship door (attempts to make it shoot the darn door itself end messily because of it's mass as I figured out), so I CAN HAS REVENGE on all the dropships. :E

Incredibly, I even made it so far that CC loads (which almost never happened before when I tried to "mod" something :(), and the shell actually gibs into the dropship door. But this is where the troubles begin: it doesn't fly where I intend it to fly, i.e. where the shell was flying. Instead, it always flies to the right (which again ended messily first time I tried to shoot horizontally to the left >_<).

So my question is: what the... ugh... what am I doing wrong, and how do I fix this weird behaviour?


Wed Aug 26, 2009 4:53 pm
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Re: Gib problem
Well, there's a few things you need to do. We'll look at this example gib code:
Code:
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Spark Yellow 1
      Count = 1
      Spread = 2.25
      MaxVelocity = 20
      MinVelocity = 8

To ensure that the spark flies at the same direction as the object that spawned it, it needs to look like this:
Code:
   AddGib = Gib
      GibParticle = MOPixel
         CopyOf = Spark Yellow 1
      Count = 1
      Spread = 0 <--
      MaxVelocity = 0.001 <--
      MinVelocity = 0 <--

And that's about it, really. Max velocity is 0.001 because i have bad experiences with it being 0. Also, be sure to not include the arrows. ;)
If you have something that says "InheritsVel = 0", then remove that line, as it makes the gib not inherit the objects velocity.


Wed Aug 26, 2009 5:03 pm
Profile WWW
User avatar

Joined: Sun Nov 16, 2008 6:04 am
Posts: 29
Reply with quote
Post Re: Gib problem
Hooray, it works now! Thank you! :grin:


Wed Aug 26, 2009 5:06 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.038s | 13 Queries | GZIP : Off ]