Data Realms Fan Forums http://45.55.195.193/ |
|
How to make an MOSRotating hit terrain like I want it to? http://45.55.195.193/viewtopic.php?f=1&t=19993 |
Page 1 of 1 |
Author: | Awesomeness [ Thu Oct 21, 2010 2:18 am ] |
Post subject: | How to make an MOSRotating hit terrain like I want it to? |
I have a cannonball. It has high mass and medium velocity. It never gibs. The problem is it just disappears when it hits the walls instead of leaving a settled cannonball. How do I fix this? |
Author: | Disst [ Thu Oct 21, 2010 2:43 am ] |
Post subject: | Re: How to make an MOSRotating hit terrain like I want it to? |
AFAIK/IIRC you must increase the GibImpulseLimit. If that doesn't work, make it slower if it goes at a high velocity. |
Author: | Awesomeness [ Fri Oct 22, 2010 3:23 am ] | ||
Post subject: | Re: How to make an MOSRotating hit terrain like I want it to? | ||
It doesn't gib. I'm going to try using rays to check if the ball is about to hit land. How can I cast a ray that only hits terrain? Here, take the whole mod I'm making. Maybe someone can see what's wrong with the cannonballs. (Yes, I know the offsets of the cannon have not been changed yet)
|
Author: | Mehman [ Fri Oct 22, 2010 12:07 pm ] |
Post subject: | Re: How to make an MOSRotating hit terrain like I want it to? |
Here it works: I added GibImpulseLimit = -1 that way it will never gib on impact DeepCheck = 1 that way it will damage terrain instead of dissapearing to the ini and self.ToDelete = false; that way even if the ini fails to prevent it from dissapearing, the lua will. to the lua. Attachment: |
Author: | Awesomeness [ Fri Oct 22, 2010 11:36 pm ] |
Post subject: | Re: How to make an MOSRotating hit terrain like I want it to? |
Thanks, worked perfectly! By the way, how do I change the rotating velocity of an MOSRotating? Oh, and how can I get the offsets of the cannon to work? I can do any other gun but this cannon is so fat and long I can't get it to work. I could give you my best attempt but I don't think it'd help you. The effect I want to get is the user holding it with his hands under it, like this image, except horizontal, not vertical. I'm sorry to ask so many questions... It's just this cannon is very different from any weapon I've made before. |
Author: | Awesomeness [ Sat Oct 23, 2010 1:10 pm ] |
Post subject: | Re: How to make an MOSRotating hit terrain like I want it to? |
Yeah, I tried it... For me it works for other guns but the cannon ended up being inside my shoulder. Could someone help me? |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |