Author |
Message |
domtech
Joined: Tue Apr 28, 2009 4:48 pm Posts: 29
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
back around the time of buid 20 i made an ACrab hummer with turning wheels for legs and a turret on the roof. when i tried this humvee i loved the suspension but i hated the lack of turnability or weapons i decided to make a custom version of this humvee with turning and a gun. To do this i first made it an ACrab, this allowed me to add a turret. making it an ACrab also made it turnable i added null legs like the ones on the small turret. then i added the turret from my old hummer. making it an ACrab allso adds the option to buy it in the bodies menu the gun dosent shoot straight but im too lazy to fix that today Attachment:
File comment: turnable humvee with a glitchy gun
Humvee.rte.rar [1.09 MiB]
Downloaded 210 times
|
Wed Jun 24, 2009 6:31 pm |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
Nice solution.
I was too busy fiddling with HFlipped to try that. I'll try to see if I can fix the gun, though.
|
Wed Jun 24, 2009 7:12 pm |
|
|
domtech
Joined: Tue Apr 28, 2009 4:48 pm Posts: 29
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
if you look at some of the image files you'll see that i started to work on adding gibs and alternate sprites. nothing original though
my old hummer moved like a Crab and was really slow. i might see if i can make it speed up and eat terrain like yours.
|
Wed Jun 24, 2009 8:39 pm |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
Strange thing is that your humvee appears to cause the screen to move down, and kinda messes up the code.
While it works, the screen shrink makes things odd.
Anyway, the movement on my humvee is done via lua.
Terrain eating is a side effect.
|
Wed Jun 24, 2009 8:54 pm |
|
|
domtech
Joined: Tue Apr 28, 2009 4:48 pm Posts: 29
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
ya since i dont know any lua i might make it move like the mammoth tank but faster. oh and with a jetpack
|
Wed Jun 24, 2009 9:28 pm |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
Code: self.throttle = self.throttle - 0.5
Code: self.throttle = self.throttle + 0.5 Change 0.5 on those lines.
|
Wed Jun 24, 2009 10:35 pm |
|
|
numgun
Joined: Sat Jan 13, 2007 11:04 pm Posts: 2932
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
mail2345 wrote: Strange thing is that your humvee appears to cause the screen to move down, and kinda messes up the code.
While it works, the screen shrink makes things odd.
When forces are applied to an AHuman or ACrab or ACraft, the screen shifts dynamically to show it. Take a Mk1 Rocket and keep flying in one direction as fast as you can. Notice how the screen starts to shift off.
|
Wed Jun 24, 2009 10:43 pm |
|
|
domtech
Joined: Tue Apr 28, 2009 4:48 pm Posts: 29
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
numgun wrote: mail2345 wrote: Strange thing is that your humvee appears to cause the screen to move down, and kinda messes up the code.
While it works, the screen shrink makes things odd.
When forces are applied to an AHuman or ACrab or ACraft, the screen shifts dynamically to show it. Take a Mk1 Rocket and keep flying in one direction as fast as you can. Notice how the screen starts to shift off. aha the forces from the lua cause it to shift the screen i thaught it must be the lua since my old hummer never did that the solution might be changing the amount of force put on it in the script file
|
Wed Jun 24, 2009 10:53 pm |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
I actually put no forces. The terrain is putting force on the humvee, which the lua code neutralizes, otherwise you would have it flying all over the place.
|
Thu Jun 25, 2009 4:38 am |
|
|
Exalion
Joined: Fri Mar 02, 2007 6:59 am Posts: 1726 Location: NSW, Australia
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
Is it possible to make the humvee available as a vehicle? that'd rock.
Also, the humvee bomb isn't showing up.
|
Thu Jun 25, 2009 7:21 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
Due to the way I have it moving though terrain, forces are generated which lua neutralizes. Those forces are strong enough due to the velocity to knock off the vehicle. A side effect is that the screen is dragged down when using the humvee.
Also, I don't know why it is not showing up.
|
Thu Jun 25, 2009 7:30 am |
|
|
ProjektTHOR
Banned
Joined: Tue Feb 27, 2007 4:05 pm Posts: 2527
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
Its not the Lua that shifts the screen, its the enginer. As far as I can tell, there is nothing in the Lua functionality that dictates that screen motion. It's just a "feature" of the engine.
I honestly cannot think of a justification for that action, either. All I know is that its really annoying if something is moving fast to have it disappear from my screen.
|
Thu Jun 25, 2009 2:08 pm |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
@Exalion Do you mean a rideable vehicle, like the vehicle demo? The problem with that is the the vehicle if it stays in one place too long, starts to make a crater.
|
Thu Jun 25, 2009 5:58 pm |
|
|
deathbringer
Joined: Sun Dec 21, 2008 8:16 am Posts: 293
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
mail2345 wrote: Humvee Added! OH. MY. GOD. WHAT. THE. FUDGE. BAR. BE. Q CUE. This is the most awesome thing in the awesomest of awesoming awesomeness of being awesome in the awesomization. I was waiting for this since the beginning, and i salute you for creating such a marvel. Truly. I'm going to worship you until the end of my life even if my back doesn't want to. Screw my back.
|
Fri Jun 26, 2009 1:40 am |
|
|
numgun
Joined: Sat Jan 13, 2007 11:04 pm Posts: 2932
|
Re: *Lua Tech Inc.* V2.151 - Humvee tweaked!
deathbringer wrote: mail2345 wrote: Humvee Added! OH. MY. GOD. WHAT. THE. FUDGE. BAR. BE. Q CUE. This is the most awesome thing in the awesomest of awesoming awesomeness of being awesome in the awesomization. I was waiting for this since the beginning, and i salute you for creating such a marvel. Truly. I'm going to worship you until the end of my life even if my back doesn't want to. Screw my back. Doing any other wheeled vehicle is fully possible with this code. aka bikes, trucks, cars, steamrollers...
|
Fri Jun 26, 2009 2:05 am |
|
|
|