View unanswered posts | View active topics It is currently Mon Oct 07, 2024 11:56 pm



Reply to topic  [ 3 posts ] 
 [Needs Lock] Orientating Rounds? 
Author Message
User avatar

Joined: Wed Jan 25, 2006 8:15 pm
Posts: 66
Reply with quote
Post [Needs Lock] Orientating Rounds?
Could a mod please lock this?

Hey ho.

I'm working on a new mod, a medium-range mortar, and I was wondering if there was a solution to a small bug I'm having.

I have most of the basics figured out (getting it to shoot, etc.) but at current there's a small thing bothering me. The rounds fired out of the mortar face the right direction initially, but as they arc they stay facing the same direction, when in reality they would be turning to face the ground (or at least that's how I'd like it)

I'm not too sure how to solve this; my first idea was to add an Attachable that weighed more to the head of the shell. It did nothing, predictably. The shells were TDExplosives, so I tried using MOSRotating instead; nada. I'm running fairly short on ideas.

Lua is a new and frightening thing to me. My old mods were made back when there was no Lua; back then we had to make our own code, using bits of twine and balsa wood. The codes we made back in those days, helped us defeat the Kaiser it did, back in 1857 when onions were the style of the time

Aaaanyway. I'm willing to learn a bit of Lua (or hack my way through any example code people provide) if it will help. Does anyone have any ideas? Cheers!

EDIT: Edited for spelling purposes.


Last edited by Fat Zombie on Sun Feb 07, 2010 2:50 pm, edited 3 times in total.



Fri Feb 05, 2010 7:05 pm
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post Re: Orientating Rounds?
You mean point in the direction it is traveling? OrientToVel = 1 will do that. Otherwise, I'm not sure what you mean.


Fri Feb 05, 2010 7:21 pm
Profile
User avatar

Joined: Wed Jan 25, 2006 8:15 pm
Posts: 66
Reply with quote
Post Re: Orientating Rounds?
Duh102 wrote:
You mean point in the direction it is traveling? OrientToVel = 1 will do that. Otherwise, I'm not sure what you mean.


Ah, so I just put that in the code? If it's that simple that I feel a right dunderhead. One minute.

EDIT: Yep, that works! Fantastic.


Fri Feb 05, 2010 8:15 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.028s | 15 Queries | GZIP : Off ]