From 7af6a17bb62de7ab05bea03086df9514b4d0b7ec Mon Sep 17 00:00:00 2001 From: PlasmaSheep Date: Mon, 23 Aug 2010 14:22:00 +0000 Subject: [PATCH] Added examples (Commit created by redmine exporter script from page "Domination" version 2) --- Domination.textile | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/Domination.textile b/Domination.textile index 27d8c3d..99914f3 100644 --- a/Domination.textile +++ b/Domination.textile @@ -8,10 +8,47 @@ h2. dom_team dom_team entites declare the teams available in the game and what models are shown when they take a control point. To create it, right click and go to "domination>dom_team". There must be at least 3 per map: Two teams and one empty team (for when the control point is not taken). -SHOW REQUIRED FIELDS HERE. +
+// entity 244
+{
+"classname" "dom_team"
+"origin" "-24.000000 0.000000 96.000000"
+"message" "Blue team has captured a control point"
+"model" "models/domination/dom_blue.md3"
+"netname" "^4Blue Team^3"
+"noise" "domination/claim.wav"
+"noise1" "domination/claim.wav"
+"cnt" "13"
+}
+// entity 245
+{
+"classname" "dom_team"
+"origin" "16.000000 0.000000 96.000000"
+"cnt" "4"
+"message" "Red team has captured a control point"
+"model" "models/domination/dom_red.md3"
+"netname" "^1Red Team^3"
+"noise" "domination/claim.wav"
+"noise1" "domination/claim.wav"
+}
+// entity 246
+{
+"classname" "dom_team"
+"origin" "-8.000000 0.000000 128.000000"
+"model" "models/domination/dom_unclaimed.md3"
+}
+
+ +These are the three dom_team entites you must have on your map. It does not matter where they are placed. The first two examples here declare two dom teams: blue and red. The third declares the "empty team". It is best to copy these verbatim into your map, as their structure does not change (of course, the coordinates do change depending on where you placed them). h2. dom_controlpoint -These are the actual control points that players will capture. They do not have any required fields, but it is often useful to name them. +These are the actual control points that players will capture. They do not have any required fields, but it is often useful to name them. Here is an example of a declaration of a dom_controlpoint entity in the .map file. -SHOW HOW TO DO THAT HERE. +
+"classname" "dom_controlpoint"
+"origin" "0.000000 2240.000000 608.000000"
+"message" " has captured ^1Red Base^3"
+
+ +The key here is the "message" field, which allows you to set the message shown when a controlpoint is captured. Generally, the format of this is " has captured CONTROLPOINTNAME". You can also use color codes in these messages, as shown in the above example. -- 2.39.2