Planes shooting while landed

Planes shooting while landed

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Planes shooting while landed

Post by Gota »

I looked but couldn't find if there is a tag that prevents planes from shooting when they are on the ground.
Another thing is bombers bombing while in the air but after they are killed(they throw bombs while falling down)
Last edited by Gota on 09 Dec 2009, 18:11, edited 2 times in total.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Planes hooting while landed

Post by KDR_11k »

Just block the weapon in COB.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Planes hooting while landed

Post by smoth »

the fuck you say?

Image
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Planes hooting while landed

Post by lurker »

I think you mean bombing while crashing. All planes can fire while crashing unless you do something to block it.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Planes hooting while landed

Post by CarRepairer »

This thread is a hoot.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Planes hooting while landed

Post by Gota »

KDR_11k wrote:Just block the weapon in COB.
Hmm yep sounds like a good solution.
In an ideal world,though,where everything is in its place and done right wouldn't it make sense to have tags for these things?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Planes shooting while landed

Post by zwzsg »

In an ideal world, where everything is in its place and done right, there wouldn't be an ever growing forest of tags for unit behaviors that be controlled with ease and more versability otherwise.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Planes shooting while landed

Post by Gota »

If not using tags how else would you do it and preserve the flexibility of behaviors and combination of behaviors a unit can exhibit?
I think the main issue with tags is documentation and dividing into certain well defined groups with intuitive titles so game makers can easily connect between what they want to achieve and the place they need to look for tags to achieve it.
Maybe when someone(including myself) decides to rearrange the documentation about the different tags, finding and choosing the right ones would be a breeze.
Last edited by Gota on 09 Dec 2009, 19:52, edited 1 time in total.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Planes shooting while landed

Post by Tobi »

COB. (or the Lua replacement of it.)
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Planes shooting while landed

Post by Gota »

to me personally its much easier when everything connected to unit behaviors is concentrated in one place.
hmm if the time comes when it is easy to convert cob to lua i guess you could just have one big lua file that describes almost everything about the specific unit(if you have hundreds of units converting cob files manually sounds very hard and boring work).
I guess when creating new units/games now you could have that already.
User avatar
SinbadEV
Posts: 6475
Joined: 02 May 2005, 03:56

Re: Planes shooting while landed

Post by SinbadEV »

Yes, and the cool thing with the Lua system is that you could, presumably, make your own "tag-like" variables that are defined in some central Lua code-thingy for your given project and reference it when you want to decide how a unit behaves... right?
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Re: Planes shooting while landed

Post by Saktoth »

Gota wrote:to me personally its much easier when everything connected to unit behaviors is in unitdefs because i dont know how to script
Fixed.

There are an innumerable number of conditions under which you will want to block the firing of a weapon.

There are innumerable number of things you may want to do with a crashing or landed aircraft.

This kind of conditional If -> Then stuff is exactly what cob is good at.

BlockShot1(unit, block)
{
if (get CRASHING)
{
block = 1;
}
}

How bloody easy was that? You can do the same thing to make it emit smoke (In fact, that shit shouldnt be hardcoded), sparks, change the model, change the velocity, direction, or any other movement settings, call lua to make a unit jump out of it with a parachute, just blow it up rather than going through the whole crashing routine or any number of other things.

Take a look at the current wing folding behaviour for decent (but not perfect) detection of landing/flying.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Planes shooting while landed

Post by Gota »

Saktoth wrote:post
good point.
It would probably still be more convenient to have it all in one place including the script.
Saktoth
Zero-K Developer
Posts: 2665
Joined: 28 Nov 2006, 13:22

Re: Planes shooting while landed

Post by Saktoth »

Gota wrote:
Saktoth wrote:post
good point.
It would probably still be more convenient to have it all in one place including the script.
To have it 'all in one place' would be 'all hardcoded into the engine'.

At the very least it would all be in the script, rather than the unitdef, since the script does things the unitdef simply never can. Do you want to have to make every change to a unit through the script? That'd make spring less accessible by far. And hell, why not shove the model data in there too, each vertex.

Its good to have several layers of complexity to handle different tasks: unitdef, script, lua, engine. It is that level of accessibility that has made OTA a modders paradise.
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Planes shooting while landed

Post by Gota »

As far as i know its now possible to make scripts using lua.
Or its planned to be.
User avatar
MidKnight
Posts: 2652
Joined: 10 Sep 2008, 03:11

Re: Planes shooting while landed

Post by MidKnight »

It is currently possible, and implemented in 2-3 games already. :P
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Planes shooting while landed

Post by Argh »

Yes, and the cool thing with the Lua system is that you could, presumably, make your own "tag-like" variables that are defined in some central Lua code-thingy for your given project and reference it when you want to decide how a unit behaves... right?
Been doing that for over a year now.
Post Reply

Return to “Game Development”