Ticket #951 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Battleship floods its decks

Reported by: Saktoth Owned by:
Priority: major Milestone:
Component: CA Version:
Keywords: Cc:

Description

Cant figure out where exactly in the script its being lowered, but it sinks too low into the water.

Change History

Changed 3 years ago by evil4zerggin

Decrease its waterLine.

Changed 3 years ago by Saktoth

  • owner set to Saktoth

Oh, right. It'll be in my next commit.

Changed 3 years ago by evil4zerggin

ud.waterline = udTable.GetFloat("waterline", 0.0f);
	if ((ud.waterline >= 5.0f) && ud.canmove) {
		// make subs travel at somewhat larger depths
		// to reduce vulnerability to surface weapons
		ud.waterline += 10.0f;
	}

I hate Spring sometimes.

Changed 3 years ago by Scikar

It's too far up now. The Core artillery sub and advanced torpedo launcher can hit it but regular subs miss, the torpedo just runs underneath the ship.

Changed 3 years ago by evil4zerggin

Change the model I guess then.

Changed 3 years ago by Saktoth

Possibly a hitbox issue.

Changed 3 years ago by Saktoth

  • owner Saktoth deleted

Right, the hitbox is large enough and the weapons will hit. The sub is just aiming too high so the projectile flies out of the water, turns downwards due to gravity, falls back into the water, then continues dowards and goes underneath. Same problem as radar.

I thought Sweetspot determines where a unit fires so maybe it was too high on the model: nope! Sweet spot is under the water level, they arent shooting the sweetspot.

There are numerous solutions (bit of tracking on torps etc) but id like them to aim at the right spot, anyone know whats up here?

Changed 3 years ago by Google Frog

Due to the hitbox bug the ship won't take any damage when hit on the front or back.

Changed 3 years ago by Saktoth

I tried it with decades, they hit. Does it depend on weapontype?

Changed 3 years ago by evil4zerggin

Weapons with impactOnly should do fine, otherwise they might not damage the battleship unless they have large AoE.

Changed 3 years ago by evil4zerggin

(Decades have impactOnly.)

Also, SweetSpot? is a lie. It doesn't exist in the source.

Changed 3 years ago by KingRaptor

  • status changed from new to closed
  • resolution set to invalid

Old battleship is no longer in use, new battleship is fine.

Note: See TracTickets for help on using tickets.