View Issue Details

IDProjectCategoryLast Update
0022494AI War 2Gameplay IssueJul 14, 2021 11:05 am
ReporterChris_McElligottPark Assigned ToChris_McElligottPark  
Status closedResolutionno change required 
Product VersionBETA 1.101 Ship Cap Reversions 
Summary0022494: For Chris: look into making minefields work a bit differently.
DescriptionEssentially I need to make their weapon not fire on a timer, but instead run every sim-frame and hit any enemy that is in their range, but not hit that enemy more than once every X seconds. Unless the enemy is a stack, perhaps. This is going to be a huge PITA and take a lot of work and balancing, but is what will make minefields work correctly on higher speeds than 1x.

Alternatively I could do some line-circle intersections based on prior location and current location, but that might be more costly, I don't know. Essentially if a range check fails for the current frame, then look at the prior location to current location and see if that line intersects the circle or square of range (whichever is more efficient to calculate, which I can't remember because SIMD throws off some of what I would normally think of as more costly to calculate) with the line the ship traveled through. If the ship traveled through that line, it's a hit.

This may be something we also want to apply to melee units, but again it's going to be a PITA (though less so, I suppose). Melee probably fares extra well on higher sim speeds, but it's hard to be sure.

I don't view this as a priority issue at the moment compared to things like multiplayer, since it only mostly affects some player defenses and doesn't impact the overall difficulty of the game in most cases.
TagsNo tags attached.

Activities

Chris_McElligottPark

Jul 14, 2021 11:05 am

administrator   ~0062399

Minefields have matured just fine over the years.

Issue History

Date Modified Username Field Change
Jan 3, 2020 12:54 pm Chris_McElligottPark New Issue
Jan 3, 2020 12:54 pm Chris_McElligottPark Status new => assigned
Jan 3, 2020 12:54 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Jul 14, 2021 11:05 am Chris_McElligottPark Status assigned => closed
Jul 14, 2021 11:05 am Chris_McElligottPark Resolution open => no change required
Jul 14, 2021 11:05 am Chris_McElligottPark Note Added: 0062399