Data Realms Fan Forums
http://45.55.195.193/

Craft (un)Invincibility
http://45.55.195.193/viewtopic.php?f=73&t=16304
Page 1 of 2

Author:  ZevN47 [ Fri Aug 21, 2009 2:56 am ]
Post subject:  Craft (un)Invincibility

Ok I have a craft that I've made to be almost Invincible however I want it to break when it hits the ground!

So how can I get a craft to take almost no dmg while in the air under fire(how it currently is) but instantly gib when it hits/touches the ground... using Lua of course (yes I finally stopped copying and started building stuff!)
I need this to work like this so it won't tunnel into the ground (as it currently does)

ALSO second question/problem :lol:
I'm trying to make a rocket have some kind of shield from this link http://www.datarealms.com/forum/viewtopic.php?f=1&t=15138&start=15 (the forceshield and co.)

and I can't get Lua to like me enough to do it so can someone please help me attach the shield to say a Dropship? and honestly if you don't have to use Lua for this one I would be fine with that but I am trying to learn more and more of it so the know/how would be nice.

Edit: Gib impulse limit is not what I looking for! I'm not an idiot I checked if that would work already

Author:  Dauss [ Fri Aug 21, 2009 2:57 am ]
Post subject:  Re: Craft (un)Invincibility

Make the gib impulse reeeeealllly low?

Seriously. You don't even need lua for that ♥♥♥♥.

Author:  ZevN47 [ Fri Aug 21, 2009 3:30 am ]
Post subject:  Re: Craft (un)Invincibility

Dauss wrote:
Make the gib impulse reeeeealllly low?

Seriously. You don't even need lua for that crap.




Reeeeeealllly low eh? ok now my invincible rocket gets killed by a stone... Thank you so much! :roll:

Author:  Grif [ Fri Aug 21, 2009 5:34 am ]
Post subject:  Re: Craft (un)Invincibility

If you can't figure out how to do those then you need to start smaller.

Make less complicated lua mods first.

Author:  mail2345 [ Fri Aug 21, 2009 5:47 am ]
Post subject:  Re: Craft (un)Invincibility

Use findaltitude.

Author:  ZevN47 [ Fri Aug 21, 2009 9:29 am ]
Post subject:  Re: Craft (un)Invincibility

mail2345 wrote:
Use findaltitude.


This is yet another one of those "DUH!" moments

thank you Mail2345 that's like the 3rd time in 2days you've made me say that :P

Grif wrote:
If you can't figure out how to do those then you need to start smaller.

Make less complicated lua mods first.


I know most of the basic stuff now its just things I haven't messed with yet (like Findaltitude.) that I can't do
... I made several mods that I haven't submitted b/c they are for practice or personal use :)

Edit: What about my second question is that possible... if nobody answers I quess I'll just have to go figure it out myself (OH THE HORROR!)..joking of course

Author:  Grif [ Fri Aug 21, 2009 11:37 pm ]
Post subject:  Re: Craft (un)Invincibility

mail2345 wrote:
Use findaltitude.


But what if you fly through a tunnel?

Author:  Benpasko [ Sat Aug 22, 2009 12:45 am ]
Post subject:  Re: Craft (un)Invincibility

Yeah, you should use speed, and when it stops, gib it, so you can land it anywhere. And if possible, make it gib after 3 seconds of no motion, so you can occasionally slow down.

Author:  A.K.A.Steve [ Sat Aug 22, 2009 5:00 am ]
Post subject:  Re: Craft (un)Invincibility

How often does a flying spaceship loaded with your precious units fly through a tunnel anyways?
Although, if it is invincible it may be of use....
then again, attacking with high speed gibs is always entertaining...

Author:  ZevN47 [ Sun Aug 23, 2009 8:13 am ]
Post subject:  Re: Craft (un)Invincibility

Benpasko wrote:
Yeah, you should use speed, and when it stops, gib it, so you can land it anywhere. And if possible, make it gib after 3 seconds of no motion, so you can occasionally slow down.

I need it to gib like .01 seconds after it hits the ground so pretty much instantly

A.K.A.Steve wrote:
How often does a flying spaceship loaded with your precious units fly through a tunnel anyways?
Although, if it is invincible it may be of use....
then again, attacking with high speed gibs is always entertaining...


Its not quite invincible... It can't survive the tek nuke or yplosion cannon but it can take quite a bit of pounding... if you are familiar with the NukeCorp (or something like that) it survives the shockwave very easily and bullets basically bounce off the armor) also if you haven't edited the activities (made it so mods can be A.I.) then the A.I. Have very very very little hope of destroying it

But speaking of the tek faction It does WIERD things when you hit it with the rock gun for too long

Makes for an interesting Ram of sorts :grin:

Blargh Ya know what I'm gonna Upload the thing once I fix the crashing issue (hits things to hard, Game
crashes 40% of the time)

Grif wrote:
mail2345 wrote:
Use findaltitude.


But what if you fly through a tunnel?


Hrm... I guess I play flat lands to much... Never crossed my mind maybe I can use some terrain detecting thingamawhat and make it gib if it gets to close to the terrain however much help on this would be required for I have never made a terrain detecting thingamawhat and I don't know who has :???:

Also Grif this might be interesting to use with your PLANE-Various fixes- Mod because planes can't land without wheels... or without crash landing anyway

Author:  Roy-G-Biv [ Sun Aug 23, 2009 2:14 pm ]
Post subject:  Re: Craft (un)Invincibility

Here's what I think.
GetHitByMOS = 0

And really low gib impulse.

Author:  ZevN47 [ Mon Aug 24, 2009 2:52 am ]
Post subject:  Re: Craft (un)Invincibility

Roy-G-Biv wrote:
Here's what I think.
GetHitByMOS = 0

And really low gib impulse.


I'm going for aesthetic quality while that might work it won't look cool :wink:

Author:  lafe [ Thu Aug 27, 2009 10:16 pm ]
Post subject:  Re: Craft (un)Invincibility

Grif wrote:
mail2345 wrote:
Use findaltitude.


But what if you fly through a tunnel?


couldent GetAltitude(self.Pos.Y,5)
work?

Author:  Grif [ Fri Aug 28, 2009 2:44 pm ]
Post subject:  Re: Craft (un)Invincibility

Nope, because altitude is the height OFF THE GROUND. If you fly through a tunnel, it's going to report negative (because there's terrain above you) which in that example script would instantly kill you dead.

Author:  Geti [ Sat Aug 29, 2009 4:40 am ]
Post subject:  Re: Craft (un)Invincibility

i think findaltitude reports hight from the center of the spriteoffset to the nearest directly below non-air non-ignored material pixel. ie works in tunnels.

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/