battlecode / battlecode-server-2017

Official Battlecode game engine.
http://www.battlecode.org/
GNU Affero General Public License v3.0
23 stars 10 forks source link

Immediate bullet collision check #433

Closed nmccoy closed 7 years ago

nmccoy commented 7 years ago

Check for collisions as soon as a bullet is spawned by a unit. This means if two robots are <0.05 apart and one fires a bullet at the other, damage is done immediately (within the robot's turn). This resolves #431 because point-blank combat makes a bit more sense now. In the edge case that this happens to a scout/tree combo, the scout is hit by the bullet and not the tree.

jbloxham commented 7 years ago

Currently, if a scout and a radius 1 tree occupy the same location, isn't the tree always hit first by an incoming bullet? This seems inconsistent with that behavior, and might confuse teams.

HalfVoxel commented 7 years ago

Not since version 1.1.7. From the changelog:

Scouts in trees take damage before the tree if the bullet hits both at the same time.