CA Evelations question ?

CA Evelations question ?

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
elias79
Posts: 57
Joined: 11 May 2008, 23:29

CA Evelations question ?

Post by elias79 »

When playing CA if raising the elevation on a ground piece and then building a plasma tower or something that fires things that go down by gravity, do
the projectiles then travel longer (like in reality) or is the distance "faked" meaning it is artificially fixed ?

So does CA support gravity physics ?
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: CA Evelations question ?

Post by lurker »

I'm not aware of any spring game that disables the gravity-based range boost for plasma cannon shots. Though hardcore might... So yes, you can get a very nice range boost on whatever you put up there. (Tip: vanguards can climb up and down sheer cliffs to shoot farther.)
Jasper1984
Posts: 196
Joined: 25 Jan 2008, 20:04

Re: CA Evelations question ?

Post by Jasper1984 »

I hope giant pillars with artillery on it shooting across the map isnt viable :/
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: CA Evelations question ?

Post by Pxtl »

lurker wrote:Though hardcore might.
Yup.

Anyways, this problem is probably mitigated by the lack of static plasmas in CA - mobile-only arty means it's harder for artillery to get entrenched.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: CA Evelations question ?

Post by lurker »

With mobile arty you make a stairway to heaven (ramp) instead of a spire.
User avatar
Elkvis
Posts: 222
Joined: 03 Nov 2006, 05:18

Re: CA Evelations question ?

Post by Elkvis »

or airdrop it on a platform.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Re: CA Evelations question ?

Post by manored »

But I remember reading somewhere the range system was changed from a cone to a sphere, meaning that even if the unit could reach farther with the boost of gravit, it wouldnt know it, isnt that right? And wouldnt force-firing in the ground make the unit try to hit that spot, instead of whatever was beyond?
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Re: CA Evelations question ?

Post by Pressure Line »

it depends on the weapon.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Re: CA Evelations question ?

Post by manored »

Pressure Line wrote:it depends on the weapon.
I suppose so... tough Id rather know what are the weapons before building the hell/heaven elevator :)
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: CA Evelations question ?

Post by Google_Frog »

Lasers have spherical range so if they go higher they can hit a smaller area on the ground.

Rockets don't care about elevation and will use their normal range. This makes them good for hitting things on spires.

Plasma gets a range bonus from height.
User avatar
Evil4Zerggin
Posts: 557
Joined: 16 May 2007, 06:34

Re: CA Evelations question ?

Post by Evil4Zerggin »

Code: Select all

	if (wd.type == "Cannon") {
		wd.heightmod = wdTable.GetFloat("heightMod", 0.8f);
	} else if (wd.type == "BeamLaser") {
		wd.heightmod = wdTable.GetFloat("heightMod", 1.0f);
	} else {
		wd.heightmod = wdTable.GetFloat("heightMod", 0.2f);
	}

Code: Select all

r=GetRange2D(heightDiff*heightMod)
Beamlasers:

Code: Select all

	float rangeMod=1.3f;
#ifdef DIRECT_CONTROL_ALLOWED
	if(owner->directControl)
		rangeMod=0.95f;
#endif

	float maxLength=range*rangeMod;
Note the hardcoded 30% overshoot >_>

There might be other factors though.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: CA Evelations question ?

Post by jK »

The 30% were once just for targetting, but since then the code was changed a lot, so a bug found it way in and now it even shoot with that range. But fixing isn't that easy because you want to attack the 2nd best target if the first one isn't shootable, but that needs again a code overhaul.
manored
Posts: 3179
Joined: 15 Nov 2006, 00:37

Re: CA Evelations question ?

Post by manored »

Google_Frog wrote:Lasers have spherical range so if they go higher they can hit a smaller area on the ground.

Rockets don't care about elevation and will use their normal range. This makes them good for hitting things on spires.

Plasma gets a range bonus from height.
Thanks
Post Reply

Return to “Game Development”