From 82f0ac05f5da2d89c4a544ca22ff47e116e6dd97 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 10 Nov 2013 15:11:49 +0000 Subject: Introduced global variables for reputation hostile/friendly thresholds, do not allow players to dock at hostile bases, indicate target reputation in the hud target info widget. --- src/core/range.h | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) (limited to 'src/core') diff --git a/src/core/range.h b/src/core/range.h index a133695..c5265c4 100644 --- a/src/core/range.h +++ b/src/core/range.h @@ -12,19 +12,36 @@ namespace core /** * @brief range and scale constants + * These global constants are shared between client and server. + * Changing them is generally a bad idea. */ namespace range { -/// maximal visible range (world distance) -/** This is the distance of the frustum far plane, - * the maximal distance at which entities can be drawn. - * the maximal radar range - * and the maximal range to send entity updates + +/** + * @brief maximal visible range (world distance) + * This is the distance of the frustum far plane, + * the maximal distance at which entities can be drawn. + * the maximal radar range + * and the maximal range to send entity updates */ const float maxdistance = 1024.0f; -/// detail/fx distance (world distance) +/** + * @brief maximal range in which graphics effects are drawn + * */ const float fxdistance = 256.0f; + +/** + * @brief reputation limit to indicate hostile targets + * */ +const float reputation_hostile = -70.0f; + +/** + * @brief reputation limit to indicate friendly targets + * */ +const float reputation_friendly = 70.0f; + } } -- cgit v1.2.3