Add Space Invasion game scheme with sane default configuration
authorWuzzy <Wuzzy2@mail.ru>
Sat, 17 Feb 2018 00:06:34 +0100
changeset 13030 261b8fd14235
parent 13029 a568bc16a99a
child 13031 ca7fdb431b34
Add Space Invasion game scheme with sane default configuration
ChangeLog.txt
QTfrontend/model/ammoSchemeModel.cpp
share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.cfg
--- a/ChangeLog.txt	Fri Feb 16 23:42:00 2018 +0100
+++ b/ChangeLog.txt	Sat Feb 17 00:06:34 2018 +0100
@@ -38,6 +38,7 @@
  + Battalion: Script parameter “mutatenames=true” to also change the hog names (default: false)
  + Battalion (King Mode): Kings always wear crowns and non-kings don't, regardless of settings
  + Battalion (King Mode): If the king dies, the hogs die normally instead of disappearing
+ + Space Invasion: Add a default Space Invasion game scheme
  * Battalion: Some texts in the mission panel were wrong and misleading
  * Construction Mode: Remove drill strike if added by weapon scheme (it's broken)
 
--- a/QTfrontend/model/ammoSchemeModel.cpp	Fri Feb 16 23:42:00 2018 +0100
+++ b/QTfrontend/model/ammoSchemeModel.cpp	Sat Feb 17 00:06:34 2018 +0100
@@ -85,6 +85,7 @@
                          << "Thinking with Portals"
                          << "King Mode"
                          << "Construction Mode"
+                         << "Space Invasion"
                          << "HedgeEditor"
                          ;
 
@@ -617,9 +618,57 @@
             << QVariant()              // scriptparam    43
             ;
 
+    QList<QVariant> spaceinvasion;
+    spaceinvasion
+            << 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(false)         // disable land objects 17
+            << QVariant(false)         // AI survival    18
+            << QVariant(false)         // inf. attack    19
+            << QVariant(false)         // reset weps     20
+            << QVariant(false)         // 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(50)            // sudden death   29
+            << QVariant(0)             // case prob      30
+            << QVariant(3)             // mines time     31
+            << QVariant(0)             // mines number   32
+            << QVariant(0)             // mine dud pct   33
+            << QVariant(0)             // explosives     34
+            << QVariant(0)             // air mines      35
+            << QVariant(0)             // health case pct 36
+            << QVariant(25)            // health case amt 37
+            << QVariant(0)             // water rise amt 38
+            << QVariant(0)             // health dec amt 39
+            << QVariant(100)           // rope modfier   40
+            << QVariant(100)           // get away time  41
+            << QVariant(0)             // world edge     42
+            << QVariant()              // scriptparam    43
+            ;
+
     QList<QVariant> hedgeeditor;
     hedgeeditor
-            << predefSchemesNames[11]  // name           0
+            << predefSchemesNames[12]  // name           0
             << QVariant(false)         // fortsmode      1
             << QVariant(false)         // team divide    2
             << QVariant(false)         // solid land     3
@@ -678,6 +727,7 @@
     schemes.append(thinkingportals);
     schemes.append(kingmode);
     schemes.append(construction);
+    schemes.append(spaceinvasion);
     schemes.append(hedgeeditor);
 
     if (!QDir(cfgdir->absolutePath() + "/Schemes").exists()) QDir().mkdir(cfgdir->absolutePath() + "/Schemes");
--- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.cfg	Fri Feb 16 23:42:00 2018 +0100
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.cfg	Sat Feb 17 00:06:34 2018 +0100
@@ -1,2 +1,2 @@
-Default
+Space_Invasion
 locked