View unanswered posts | View active topics It is currently Fri Jan 10, 2025 11:20 am



Reply to topic  [ 26 posts ]  Go to page Previous  1, 2
 Jeep - Need Lua help; Advanced module provided. 
Author Message
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
Multiply the angle you're rotating it to by -1 when it's hflipped? Or add math.pi, they should do the same thing.


Fri Jun 26, 2009 11:50 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
Not working, it just flips over.


Sat Jun 27, 2009 12:17 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
If the rotangle is above 3.14 or less than -3.14 set it to 0. That's what I did for the plane. Then within that statement, if it's hflipped, flip it, and if not, leave it.


Sat Jun 27, 2009 12:19 am
Profile
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
I saw the jeep gif in the epic moments thread, and it is WAY overpowered.


Sat Jun 27, 2009 5:01 am
Profile WWW
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
Reduce impulse damage/gib impulse.
Oh, and it really is not pushing doors, that was just a little extra I added since I was pissed at the invincible doors.


Sat Jun 27, 2009 5:04 am
Profile

Joined: Sat Jan 13, 2007 11:04 pm
Posts: 2932
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
mail2345 wrote:
Not working, it just flips over.


@_@

I still dont get it, what do you need this for?
If its for making the jeep to flip if its upside down, I already have a decent and working idea for that.
I'm gonna have a delay after the jeep has checked that its idling on its roof and not the wheels and after that it will simply do something like this:

RotAngle = 0
AnglularVel = 0

On the rocket dock, those instantly got the rocket upright so there should be a problem why it wouldnt work on this.

Btw, mail2345, are you still using the old Actor based jeep or the newer AHuman?


Sat Jun 27, 2009 1:50 pm
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
Tried both.
Apparently it glitches out when you go in reverse on the AHuman.


Sat Jun 27, 2009 6:34 pm
Profile
User avatar

Joined: Tue Apr 28, 2009 4:48 pm
Posts: 29
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
mail2345 wrote:
Tried both.
Apparently it glitches out when you go in reverse on the AHuman.


ACrab works way beter


Sat Jun 27, 2009 10:16 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Jeep - Need LUA help; Advanced module provided.
I made an ACRocket, which isn't even supposed to be able to flip flip around perfectly. I doubt there's any major issue with ahumans.


Mon Jun 29, 2009 12:38 am
Profile
User avatar

Joined: Fri Jun 19, 2009 5:57 pm
Posts: 84
Reply with quote
Post Re: Jeep - Need Lua help; Advanced module provided.
How about a dropship attached to an AHuman? (or vice versa) The Human part would carry weapons, the dropship part would be better conforming to the physics involved in driving across terrain. Make it like the luaguns hovering drones, either you drive and shoot, or you just drive and the AI shoots. Make the dropship's engines be the wheels, or rather the supporting force for them. The engines would have to alter their throttle based on being near terrain - a sensor of some sort would have to check for that. The forward motion could be done with pure thrust, timed to simulate acceleration, and since the engine throttle would be reduced (or outright removed) in flight, the brakes would only work on the ground. Essentially, you will have a dropship that hugs the ground and depends on its two wheel-shaped animating engines to move along it.

I've no idea how to do that exactly, but here you go - an idea. Feel free to leverage. :)


Wed Jul 01, 2009 10:57 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Jeep - Need Lua help; Advanced module provided.
Actually, by having somthing that is just a frame and two wheels, while attaching the flipping part in lua and having virtual offsets, you have solved the problem.
See, the problem I had was the wheels turning, but by having the wheels always point in the same direction and the vehicle body in the direction it should, there is no need for new code to handle flipping.


Wed Jul 01, 2009 5:50 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 26 posts ]  Go to page Previous  1, 2

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.069s | 14 Queries | GZIP : Off ]