diff options
Diffstat (limited to 'src/game/Object.h')
| -rw-r--r-- | src/game/Object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Object.h b/src/game/Object.h index 43ecca2afb0..b5546c04caa 100644 --- a/src/game/Object.h +++ b/src/game/Object.h @@ -34,11 +34,12 @@ #define CONTACT_DISTANCE 0.5f #define INTERACTION_DISTANCE 5.0f -#define ATTACK_DISTANCE 5.0f #define MAX_VISIBILITY_DISTANCE (5*SIZE_OF_GRID_CELL/2.0f) // max distance for visible object show, limited by active zone for player based at cell size (active zone = 5x5 cells) #define DEFAULT_VISIBILITY_DISTANCE (SIZE_OF_GRID_CELL) // default visible distance #define DEFAULT_WORLD_OBJECT_SIZE 0.388999998569489f // player size, also currently used (correctly?) for any non Unit world objects +#define DEFAULT_COMBAT_REACH 1.5f +#define ATTACK_DISTANCE (5.0f - DEFAULT_COMBAT_REACH * 2) // melee range: center to center for players enum TypeMask { |
