]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Start random items enums from 1.
authorLyberta <lyberta@lyberta.net>
Sat, 7 Oct 2017 13:48:44 +0000 (16:48 +0300)
committerLyberta <lyberta@lyberta.net>
Sat, 7 Oct 2017 13:48:44 +0000 (16:48 +0300)
qcsrc/common/mutators/mutator/random_items/sv_random_items.qc
qcsrc/common/t_items.qc

index f470408f20df317d5c53e1ac1fa69af6c9933919..eb4a34c229b516dc8a65385b7566be0c733f56b4 100644 (file)
@@ -7,7 +7,7 @@
 
 enum
 {
-       RANDOM_ITEM_TYPE_HEALTH,
+       RANDOM_ITEM_TYPE_HEALTH = 1,
        RANDOM_ITEM_TYPE_ARMOR,
        RANDOM_ITEM_TYPE_RESOURCE,
        RANDOM_ITEM_TYPE_WEAPON,
@@ -16,7 +16,7 @@ enum
 
 enum
 {
-       RANDOM_ITEM_SUBTYPE_HEALTH_SMALL,
+       RANDOM_ITEM_SUBTYPE_HEALTH_SMALL = 1,
        RANDOM_ITEM_SUBTYPE_HEALTH_MEDIUM,
        RANDOM_ITEM_SUBTYPE_HEALTH_BIG,
        RANDOM_ITEM_SUBTYPE_HEALTH_MEGA
@@ -24,7 +24,7 @@ enum
 
 enum
 {
-       RANDOM_ITEM_SUBTYPE_ARMOR_SMALL,
+       RANDOM_ITEM_SUBTYPE_ARMOR_SMALL = 1,
        RANDOM_ITEM_SUBTYPE_ARMOR_MEDIUM,
        RANDOM_ITEM_SUBTYPE_ARMOR_BIG,
        RANDOM_ITEM_SUBTYPE_ARMOR_MEGA
@@ -32,7 +32,7 @@ enum
 
 enum
 {
-       RANDOM_ITEM_SUBTYPE_RESOURCE_SHELLS,
+       RANDOM_ITEM_SUBTYPE_RESOURCE_SHELLS = 1,
        RANDOM_ITEM_SUBTYPE_RESOURCE_BULLETS,
        RANDOM_ITEM_SUBTYPE_RESOURCE_ROCKETS,
        RANDOM_ITEM_SUBTYPE_RESOURCE_CELLS,
@@ -42,7 +42,7 @@ enum
 
 enum
 {
-       RANDOM_ITEM_SUBTYPE_WEAPON_BLASTER,
+       RANDOM_ITEM_SUBTYPE_WEAPON_BLASTER = 1,
        RANDOM_ITEM_SUBTYPE_WEAPON_SHOTGUN,
        RANDOM_ITEM_SUBTYPE_WEAPON_MACHINEGUN,
        RANDOM_ITEM_SUBTYPE_WEAPON_MORTAR,
@@ -66,7 +66,7 @@ enum
 
 enum
 {
-       RANDOM_ITEM_SUBTYPE_POWERUP_STRENGTH,
+       RANDOM_ITEM_SUBTYPE_POWERUP_STRENGTH = 1,
        RANDOM_ITEM_SUBTYPE_POWERUP_SHIELD,
        RANDOM_ITEM_SUBTYPE_POWERUP_FUEL_REGEN,
        RANDOM_ITEM_SUBTYPE_POWERUP_JETPACK
@@ -74,7 +74,7 @@ enum
 
 enum
 {
-       RANDOM_ITEM_SUBTYPE_INSTAGIB_VAPORIZER_CELLS,
+       RANDOM_ITEM_SUBTYPE_INSTAGIB_VAPORIZER_CELLS = 1,
        RANDOM_ITEM_SUBTYPE_INSTAGIB_INVISIBILITY,
        RANDOM_ITEM_SUBTYPE_INSTAGIB_EXTRA_LIFE,
        RANDOM_ITEM_SUBTYPE_INSTAGIB_SPEED
@@ -82,7 +82,7 @@ enum
 
 enum
 {
-       RANDOM_ITEM_SUBTYPE_OVERKILL_HEALTH_MEGA,
+       RANDOM_ITEM_SUBTYPE_OVERKILL_HEALTH_MEGA = 1,
        RANDOM_ITEM_SUBTYPE_OVERKILL_ARMOR_SMALL,
        RANDOM_ITEM_SUBTYPE_OVERKILL_ARMOR_MEDIUM,
        RANDOM_ITEM_SUBTYPE_OVERKILL_ARMOR_BIG,
index e6fa5ddfdbd987033473f4aaf2ad5a6f15e69573..1575fc9931c6654608752fc442e1ee49232269f9 100644 (file)
@@ -1443,8 +1443,6 @@ void setItemGroupCount()
        }
 }
 
-// support old misnamed entities
-
 void target_items_use(entity this, entity actor, entity trigger)
 {
        if(actor.classname == "droppedweapon")