]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/powerup.qc
Merge branch 'master' into terencehill/itemstime
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / powerup.qc
index 7270664d41f61504b98a7c50dcf782ef75c2e06c..f10a97e54ff8770b2660ecad293f5cc70d0a67b0 100644 (file)
         ,   respawntime         =         GET(g_pickup_respawntime_powerup) \
         ,   respawntimejitter   =   GET(g_pickup_respawntimejitter_powerup) \
         )                                                                   \
-        MAP(IDENTITY, __VA_ARGS__)                                          \
+        UNWORDS(__VA_ARGS__)                                          \
     ))
 
 DEFINE(Strength
-    ,IF(ALL, CONFIGURE
+    ,APPLY(CONFIGURE
     ,   model               =   "models/items/g_strength.md3"
     ,   sound               =   "misc/powerup.wav"
     ,   name                =   "Strength Powerup"
+    )
+    ,IF(SV, CONFIGURE
     ,   itemid              =   IT_STRENGTH
     )
 )
 DEFINE(Shield
-    ,IF(ALL, CONFIGURE
+    ,APPLY(CONFIGURE
     ,   model               =   "models/items/g_invincible.md3"
     ,   sound               =   "misc/powerup_shield.wav"
     ,   name                =   "Shield"
+    )
+    ,IF(SV, CONFIGURE
     ,   itemid              =   IT_INVINCIBLE
     )
 )