Add scheme and weaponset for Construction Mode.
authormikade <redgrinner@gmail.com>
Tue, 25 Nov 2014 22:38:19 +0900
changeset 10549 6b08a29cadea
parent 10548 28584bcb73a2
child 10550 825991c25319
Add scheme and weaponset for Construction Mode.
QTfrontend/hwconsts.cpp.in
QTfrontend/model/ammoSchemeModel.cpp
QTfrontend/weapons.h
share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.cfg
--- a/QTfrontend/hwconsts.cpp.in	Mon Nov 24 22:33:44 2014 +0100
+++ b/QTfrontend/hwconsts.cpp.in	Tue Nov 25 22:38:19 2014 +0900
@@ -70,6 +70,9 @@
         << qMakePair(QString("Highlander"), QString(
             AMMOLINE_HIGHLANDER_QT AMMOLINE_HIGHLANDER_PROB
             AMMOLINE_HIGHLANDER_DELAY AMMOLINE_HIGHLANDER_CRATE ))
+		<< qMakePair(QString("Construction Mode"),   QString(
+            AMMOLINE_CONSTRUCTION_QT AMMOLINE_CONSTRUCTION_PROB
+            AMMOLINE_CONSTRUCTION_DELAY AMMOLINE_CONSTRUCTION_CRATE ))
         ;
 
 unsigned int colors[] = HW_TEAMCOLOR_ARRAY;
--- a/QTfrontend/model/ammoSchemeModel.cpp	Mon Nov 24 22:33:44 2014 +0100
+++ b/QTfrontend/model/ammoSchemeModel.cpp	Tue Nov 25 22:38:19 2014 +0900
@@ -84,6 +84,7 @@
                          << "Timeless"
                          << "Thinking with Portals"
                          << "King Mode"
+						 << "Construction Mode"
                          ;
 
     numberOfDefaultSchemes = predefSchemesNames.size();
@@ -604,7 +605,53 @@
             << QVariant()              // scriptparam    42
             ;
 
-
+	QList<QVariant> construction;
+    construction
+            << predefSchemesNames[11]  // name           0
+            << QVariant(false)         // fortsmode      1
+            << QVariant(false)         // team divide    2
+            << QVariant(false)         // solid land     3
+            << QVariant(false)         // border         4
+            << QVariant(false)         // low gravity    5
+            << QVariant(false)         // laser sight    6
+            << QVariant(false)         // invulnerable   7
+            << QVariant(false)         // reset health   8
+            << QVariant(false)         // vampiric       9
+            << QVariant(false)         // karma          10
+            << QVariant(false)         // artillery      11
+            << QVariant(true)          // random order   12
+            << QVariant(false)          // king           13
+            << QVariant(false)         // place hog      14
+            << QVariant(false)         // shared ammo    15
+            << QVariant(true)         // disable girders 16
+            << QVariant(true)         // disable land objects 17
+            << QVariant(false)         // AI survival    18
+            << QVariant(true)         // inf. attack    19
+            << QVariant(false)         // reset weps     20
+            << QVariant(true)         // per hog ammo   21
+            << QVariant(false)         // no wind        22
+            << QVariant(false)         // more wind      23
+            << QVariant(false)         // tag team       24
+            << QVariant(false)         // bottom border  25
+            << QVariant(100)           // damage modfier 26
+            << QVariant(45)            // turn time      27
+            << QVariant(100)           // init health    28
+            << QVariant(15)            // sudden death   29
+            << QVariant(5)             // case prob      30
+            << QVariant(3)             // mines time     31
+            << QVariant(0)             // mines number   32
+            << QVariant(0)             // mine dud pct   33
+            << QVariant(0)             // explosives     34
+            << QVariant(35)            // health case pct 35
+            << QVariant(25)            // health case amt 36
+            << QVariant(47)            // water rise amt 37
+            << QVariant(5)             // health dec amt 38
+            << QVariant(100)           // rope modfier   39
+            << QVariant(100)           // get away time  40
+            << QVariant(0)             // world edge     41
+            << QVariant()              // scriptparam    42
+            ;
+			
     schemes.append(defaultScheme);
     schemes.append(proMode);
     schemes.append(shoppa);
@@ -616,6 +663,7 @@
     schemes.append(timeless);
     schemes.append(thinkingportals);
     schemes.append(kingmode);
+	schemes.append(construction);
 
 
     int size = fileConfig.beginReadArray("schemes");
--- a/QTfrontend/weapons.h	Mon Nov 24 22:33:44 2014 +0100
+++ b/QTfrontend/weapons.h	Tue Nov 25 22:38:19 2014 +0900
@@ -67,6 +67,12 @@
 #define AMMOLINE_HIGHLANDER_DELAY "00000000000000000000000000000000000000000000000000000000"
 #define AMMOLINE_HIGHLANDER_CRATE "00000000000000000000000000000000000000000000000000000000"
 
+#define AMMOLINE_CONSTRUCTION_QT    "11000190000000100100000000000000000000000000000000000000"
+#define AMMOLINE_CONSTRUCTION_PROB  "11111101111111111111111111111111111111111111111111111111"
+#define AMMOLINE_CONSTRUCTION_DELAY "00000000000000000000000000000000000000000000000000000000"
+#define AMMOLINE_CONSTRUCTION_CRATE "11111101111111111111111111111111111111111111111111111111"
+
+
 //When adding new weapons also insert one element in cDefaultAmmos list (hwconsts.cpp.in)
 
 
--- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.cfg	Mon Nov 24 22:33:44 2014 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.cfg	Tue Nov 25 22:38:19 2014 +0900
@@ -1,2 +1,2 @@
-Fort_Mode
-Clean_Slate
+Construction_Mode
+Construction_Mode