View unanswered posts | View active topics It is currently Fri Dec 27, 2024 7:18 am



Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
 Craft (un)Invincibility 
Author Message
User avatar

Joined: Fri Mar 13, 2009 2:31 am
Posts: 217
Location: Earth... I think
Reply with quote
Post 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


Last edited by ZevN47 on Fri Aug 21, 2009 3:34 am, edited 3 times in total.



Fri Aug 21, 2009 2:56 am
Profile
A HUMAN BRAIN, SAFELY INSULATED FROM THE TERRORS OF HYPERSPACE
User avatar

Joined: Sun Jan 28, 2007 8:54 pm
Posts: 1070
Location: Somewhere beyond the endless sea of hyperspace, fighting for your right to call a planet home.
Reply with quote
Post Re: Craft (un)Invincibility
Make the gib impulse reeeeealllly low?

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


Fri Aug 21, 2009 2:57 am
Profile
User avatar

Joined: Fri Mar 13, 2009 2:31 am
Posts: 217
Location: Earth... I think
Reply with quote
Post 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:


Fri Aug 21, 2009 3:30 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Fri Aug 21, 2009 5:34 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Craft (un)Invincibility
Use findaltitude.


Fri Aug 21, 2009 5:47 am
Profile
User avatar

Joined: Fri Mar 13, 2009 2:31 am
Posts: 217
Location: Earth... I think
Reply with quote
Post 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


Fri Aug 21, 2009 9:29 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: Craft (un)Invincibility
mail2345 wrote:
Use findaltitude.


But what if you fly through a tunnel?


Fri Aug 21, 2009 11:37 pm
Profile
User avatar

Joined: Sun Aug 09, 2009 9:26 am
Posts: 1633
Reply with quote
Post 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.


Sat Aug 22, 2009 12:45 am
Profile

Joined: Thu Dec 11, 2008 5:16 am
Posts: 26
Location: Somewhere close
Reply with quote
Post 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...


Sat Aug 22, 2009 5:00 am
Profile
User avatar

Joined: Fri Mar 13, 2009 2:31 am
Posts: 217
Location: Earth... I think
Reply with quote
Post 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


Sun Aug 23, 2009 8:13 am
Profile
User avatar

Joined: Mon Feb 12, 2007 12:46 am
Posts: 1765
Location: ..............
Reply with quote
Post Re: Craft (un)Invincibility
Here's what I think.
GetHitByMOS = 0

And really low gib impulse.


Sun Aug 23, 2009 2:14 pm
Profile
User avatar

Joined: Fri Mar 13, 2009 2:31 am
Posts: 217
Location: Earth... I think
Reply with quote
Post 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:


Mon Aug 24, 2009 2:52 am
Profile
User avatar

Joined: Sat Mar 28, 2009 2:33 pm
Posts: 718
Reply with quote
Post 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?


Thu Aug 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: 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.


Fri Aug 28, 2009 2:44 pm
Profile
User avatar

Joined: Sun Jul 13, 2008 9:57 am
Posts: 4886
Location: some compy
Reply with quote
Post 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.


Sat Aug 29, 2009 4:40 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 29 posts ]  Go to page 1, 2  Next

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.054s | 13 Queries | GZIP : Off ]