View unanswered posts | View active topics It is currently Sun Jan 05, 2025 4:48 am



Reply to topic  [ 4 posts ] 
 Rocket Help 
Author Message
User avatar

Joined: Wed Jul 16, 2008 12:49 am
Posts: 226
Reply with quote
Post Rocket Help
Is there a way, be it .ini or fancy lua magic, to make it so rockets don't scuttle when upside down.

Example: Remember the A-1 Mole Machine? When you flipped it it would scuttle. Same goes for current rockets and etc. Lets say I make a mole machine of my own. Anyway to make it so it wont scuttle when flipped or better yet, at all.

DISCLAIMER
I am not making a mole machine or anything even similar.


Thu Jul 08, 2010 4:16 am
Profile
User avatar

Joined: Sun Apr 25, 2010 12:04 am
Posts: 303
Location: Australia
Reply with quote
Post Re: Rocket Help
Code:
if self.RotAngle > 6.283185 then
    self.RotAngle = self.RotAngle - 6.283185
elseif self.RotAngle < -1.570796 then
    self.RotAngle = self.RotAngle + 6.283185
end



I tried it but it didn't work. Though it might work for you.
Try putting an extra 'end' on the end.

Oh and. All credit goes to Abdul.


Not sure if i spelt it right.


Edited: Oh and yeah this should go in the lua forum.


Thu Jul 08, 2010 4:38 am
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Rocket Help
I think that this is one of those thins like IsScrap that we modders cannot change. Hopefully Data puts an option in to change it.


Someone might have come up with some crazy lua script though.


Thu Jul 08, 2010 6:31 am
Profile WWW
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Rocket Help
You can have a lua script flip the actual actor, and then switch to a sprite that's "upside down".

I did something similar (sort of) on the original Plane, though it's not perfect. Abdul probably improved upon it with his UAVs.

Important thing to remember with the script is that math.pi * 2 = a full circle, and adding or subtracting math.pi = the opposite side of the circle.

And it's better to use math.pi than decimals, just for reference.


Thu Jul 08, 2010 6:50 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 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.039s | 13 Queries | GZIP : Off ]