Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-11-10 15:11:49 +0000
committerStijn Buys <ingar@osirion.org>2013-11-10 15:11:49 +0000
commit82f0ac05f5da2d89c4a544ca22ff47e116e6dd97 (patch)
treeae48728db2c85aa68387b942f49055a416d09464 /src/core
parent4db4ba29453ef17022ab71d99e1029c32687c6da (diff)
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.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/range.h29
1 files changed, 23 insertions, 6 deletions
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;
+
}
}