Author |
Message |
Abdul Alhazred
DRL Developer
Joined: Tue Aug 11, 2009 5:09 am Posts: 395
|
Safer Craft R2: safer thrusters
The standard MK2 rocket under AI control, assisted by a little bit of Lua code. Release two: The rockets all have harmless side thrusters to avoid accidentally killing the cargo on exit (thanks Asatruer).This mod contain the five standard delivery craft with a few simple scripts that improve stability drastically through the use of PID controllers. The scripts are only active in AI-mode and use the craft's engines, rather than changing the rotation and angular velocity of the craft directly. The B24 version includes a variant of "One Man Army" that use the safer crafts. With these improvements, especially the rockets are significantly harder to shoot down. The original craft AI is most likely implemented using similar methods, but I suspect that it was purposely built to handle poorly so craft are easy to shoot down. (Edit: I was apparently wrong) Please feel free to use my code for whatever you want.
Attachments:
File comment: 2010-12-22 - For B24 only
SaferCraft_R2.zip [8.06 KiB]
Downloaded 1438 times
Last edited by Abdul Alhazred on Wed Dec 22, 2010 11:24 pm, edited 1 time in total.
|
Tue Dec 21, 2010 10:11 pm |
|
|
unwoundpath
Joined: Sun Mar 07, 2010 7:19 am Posts: 1279 Location: Places. And things.
|
Re: Safer Craft (B23&24)
I can not describe the awesomeness this has. can someone make me one to replace the normal ones? please?
|
Tue Dec 21, 2010 10:23 pm |
|
|
killionaire
Joined: Thu Dec 09, 2010 5:22 am Posts: 82
|
Re: Safer Craft (B23&24)
Tested.
These things stabilize even when their engines or hulls have been shot to hell (but not destroyed)
Nice work.
|
Tue Dec 21, 2010 10:29 pm |
|
|
unwoundpath
Joined: Sun Mar 07, 2010 7:19 am Posts: 1279 Location: Places. And things.
|
Re: Safer Craft (B23&24)
Nonsequitorian wrote: killionaire wrote: These things stabilize even when their engines or hulls have been shot to hell (but not destroyed)
As I recall, the dent metal and dent metal spark wounds are only for looks, and don't actually push the rocket when they're there, so it really shouldn't matter if it's been shot to hell or not. It does as a matter of fact, shoot a dropship engine and try driving it! the exhaust pushes it.
|
Tue Dec 21, 2010 10:49 pm |
|
|
Data
DRL Developer
Joined: Tue Jul 27, 2004 8:02 pm Posts: 428 Location: AZ
|
Re: Safer Craft (B23&24)
Hah I wish i can say I made the current implementation intentionally shitty... That's impressive though! It motivates me to bump the task of making the AI update function exposed to lua.. ie if it is defined, the C++ implementation will be overriden and the Lua one used instead. I don't think I'll be porting the nightmarish C++ functions to lua myself though.. might release the source for them so someone else can tackle it though.. hint hint wink wink
|
Tue Dec 21, 2010 10:55 pm |
|
|
Joe
Joined: Tue Jul 21, 2009 4:36 am Posts: 347 Location: The place where asses go to be bad
|
Re: Safer Craft (B23&24)
Yeah, I recommended you take a look at some of Abdul's other AI fixes, Data. He's really outdone himself since he joined the forums! Like the Independant Combat Droid, or the Dummy Vehicles
|
Tue Dec 21, 2010 11:02 pm |
|
|
Foa
Data Realms Elite
Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
|
Re: Safer Craft (B23&24)
Abdul, I think you are being recruited...
|
Tue Dec 21, 2010 11:02 pm |
|
|
killionaire
Joined: Thu Dec 09, 2010 5:22 am Posts: 82
|
Re: Safer Craft (B23&24)
Abdul is well-known for pulling stuff like this off.
This has not disappointed me.
|
Tue Dec 21, 2010 11:04 pm |
|
|
Zaits
Joined: Sun Jun 21, 2009 11:57 pm Posts: 32
|
Re: Safer Craft (B23&24)
This is genius.
Now to practice this until I can just cartwheel over and over with a rocket.
|
Tue Dec 21, 2010 11:07 pm |
|
|
whitty
Joined: Sat Jun 16, 2007 2:31 am Posts: 2982 Location: Texas
|
Re: Safer Craft (B23&24)
He has proved once again that he is the god of Lua.
This is amazing.
|
Tue Dec 21, 2010 11:09 pm |
|
|
Joe
Joined: Tue Jul 21, 2009 4:36 am Posts: 347 Location: The place where asses go to be bad
|
Re: Safer Craft (B23&24)
Foa wrote: Abdul, I think you are being recruited going to be Data's heir...
|
Tue Dec 21, 2010 11:35 pm |
|
|
jaybud4
Joined: Tue Oct 24, 2006 10:07 pm Posts: 511 Location: ☼The Infinite World☼
|
Re: Safer Craft (B23&24)
Nonsequitorian wrote: As I recall, the dent metal and dent metal spark wounds are only for looks Apparently you weren't around before rockets gibbed as they do now. Stuff like this happened if you shot a rocket enough. http://img.photobucket.com/albums/v139/ ... ump003.jpg
|
Tue Dec 21, 2010 11:51 pm |
|
|
Foa
Data Realms Elite
Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
|
Re: Safer Craft (B23&24)
Joe wrote: Foa wrote: Abdul, I think you are being recruited going to be Data's heir... the Heir of Breath Data Whatever, close enough. Anyways, Data, look out for Abdul's other mods.
|
Wed Dec 22, 2010 12:03 am |
|
|
Asatruer
Joined: Thu May 28, 2009 3:59 pm Posts: 209
|
Re: Safer Craft (B23&24)
Fantastic! I did a little testing and most of it performs extraordinarily, except the Dummy Rocklet killed nearly all actors it dropped by burning their heads off with the top stabilizing thrusters.
|
Wed Dec 22, 2010 2:17 am |
|
|
jaybud4
Joined: Tue Oct 24, 2006 10:07 pm Posts: 511 Location: ☼The Infinite World☼
|
Re: Safer Craft (B23&24)
Every rocket I've seen since I applied this just uses the side thrusters repeatedly and thrusts itself into the ground. They don't usually die outright, but it's a bit disconcerting.
Could it be something to do with the fact that I applied it to the base.rte ones instead? I didn't notice any other changes in your upgraded versions, but...
|
Wed Dec 22, 2010 3:54 am |
|
|
|