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



Reply to topic  [ 6 posts ] 
 How to make an MOSRotating hit terrain like I want it to? 
Author Message
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post 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?


Thu Oct 21, 2010 2:18 am
Profile
User avatar

Joined: Thu Feb 12, 2009 1:47 am
Posts: 1182
Reply with quote
Post 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.


Thu Oct 21, 2010 2:43 am
Profile
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post 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)


Attachments:
File comment: Yeah, I'm making (the first?) Ronin extension.
RoninExtended.rte.zip [120.87 KiB]
Downloaded 187 times
Fri Oct 22, 2010 3:23 am
Profile
User avatar

Joined: Tue Nov 17, 2009 7:38 pm
Posts: 909
Location: France
Reply with quote
Post 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:
File comment: Now it works
RoninExtended.rte.rar [88.51 KiB]
Downloaded 168 times


Fri Oct 22, 2010 12:07 pm
Profile
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post 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.


Fri Oct 22, 2010 11:36 pm
Profile
User avatar

Joined: Sat Jun 19, 2010 5:02 pm
Posts: 331
Location: Mekkan
Reply with quote
Post 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?


Sat Oct 23, 2010 1:10 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 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.040s | 14 Queries | GZIP : Off ]