]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/health.qc
func_door: fix erratic behaviour of spawned trigger field
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / health.qc
index 47df52ebeb72afb2a67c2880ed421b648194c59b..49a34c1c8ee280f159139311ae4b245c91a23c4f 100644 (file)
@@ -1,49 +1 @@
 #include "health.qh"
-#include "../../../server/t_items.qh"
-
-#define REGISTER_HEALTH(id, model, sound, resp, name, itemid, botvalue) \
-REGISTER_ITEM(id, Health, LAMBDA({                                      \
-    this.m_model = model;                                               \
-    this.m_sound = sound;                                               \
-    this.m_respawntime = resp;                                          \
-    this.m_respawntimejitter = resp;                                    \
-    this.m_name = name;                                                 \
-    this.m_itemid = itemid;                                             \
-    this.m_botvalue = botvalue;                                         \
-}))
-
-REGISTER_HEALTH(HealthSmall
-    , "models/items/g_h1.md3"
-    , "misc/minihealth.wav"
-    , SPAWNTIME_SHORT
-    , "5 Health"
-    , IT_5HP
-    , BOT_PICKUP_RATING_LOW
-)
-
-REGISTER_HEALTH(HealthMedium
-    , "models/items/g_h25.md3"
-    , "misc/mediumhealth.wav"
-    , SPAWNTIME_SHORT
-    , "25 Health"
-    , IT_25HP
-    , BOT_PICKUP_RATING_MID
-)
-
-REGISTER_HEALTH(HealthLarge
-    , "models/items/g_h50.md3"
-    , "misc/mediumhealth.wav"
-    , SPAWNTIME_MEDIUM
-    , "50 Health"
-    , IT_25HP
-    , BOT_PICKUP_RATING_MID
-)
-
-REGISTER_HEALTH(HealthMega
-    , "models/items/g_h100.md3"
-    , "misc/megahealth.wav"
-    , SPAWNTIME_LONG
-    , "100 Health"
-    , IT_HEALTH
-    , BOT_PICKUP_RATING_HIGH
-)