X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fmutator%2Finstagib%2Fitems.qh;fp=qcsrc%2Fcommon%2Fmutators%2Fmutator%2Finstagib%2Fitems.qh;h=6adda9e1958b1331336a319ca83f3d3894b56ddd;hp=13c61e6fce6ea53111659f9b7edfc82e76160b27;hb=ca2b4af3846cb6e38d166006cc3b32c89cf99142;hpb=f53ede36a1898c157e840c96ffac2534ab3c8e31 diff --git a/qcsrc/common/mutators/mutator/instagib/items.qh b/qcsrc/common/mutators/mutator/instagib/items.qh index 13c61e6fc..6adda9e19 100644 --- a/qcsrc/common/mutators/mutator/instagib/items.qh +++ b/qcsrc/common/mutators/mutator/instagib/items.qh @@ -18,8 +18,8 @@ SOUND(VaporizerCells, Item_Sound("itempickup")); int autocvar_g_instagib_ammo_drop; void ammo_vaporizercells_init(Pickup this, entity item) { - if(!GetResourceAmount(item, RESOURCE_CELLS)) - SetResourceAmountExplicit(item, RESOURCE_CELLS, autocvar_g_instagib_ammo_drop); + if(!GetResource(item, RES_CELLS)) + SetResourceExplicit(item, RES_CELLS, autocvar_g_instagib_ammo_drop); } #endif REGISTER_ITEM(VaporizerCells, Ammo) { @@ -30,11 +30,11 @@ REGISTER_ITEM(VaporizerCells, Ammo) { this.m_sound = SND_VaporizerCells; #endif this.netname = "vaporizer_cells"; - this.m_name = "Vaporizer Ammo"; + this.m_name = _("Vaporizer ammo"); this.m_icon = "ammo_supercells"; #ifdef SVQC this.m_botvalue = 2000; - this.m_itemid = IT_CELLS; + this.m_itemid = IT_RESOURCE; this.m_respawntime = GET(instagib_respawntime_ammo); this.m_respawntimejitter = GET(instagib_respawntimejitter_ammo); this.m_iteminit = ammo_vaporizercells_init; @@ -56,13 +56,15 @@ REGISTER_ITEM(ExtraLife, Powerup) { this.m_sound = SND_ExtraLife; #endif this.netname = "extralife"; - this.m_name = "Extra life"; + this.m_name = _("Extra life"); this.m_icon = "item_mega_health"; this.m_color = '1 0 0'; this.m_waypoint_text = _("Extra life"); this.m_waypoint_icon = "waypoint_health_mega"; this.m_waypointblink = 2; - this.m_itemid = IT_NAILS; +#ifdef SVQC + this.m_itemid = IT_RESOURCE; +#endif } SPAWNFUNC_ITEM(item_extralife, ITEM_ExtraLife) @@ -89,13 +91,15 @@ REGISTER_ITEM(Invisibility, Powerup) { this.m_respawnsound = SND_STRENGTH_RESPAWN; #endif this.netname = "invisibility"; - this.m_name = "Invisibility"; + this.m_name = _("Invisibility"); this.m_icon = "strength"; this.m_color = '0 0 1'; this.m_waypoint_text = _("Invisibility"); this.m_waypoint_icon = "waypoint_invisibility"; this.m_waypointblink = 2; +#ifdef GAMEQC this.m_itemid = IT_STRENGTH; +#endif #ifdef SVQC this.m_iteminit = powerup_invisibility_init; #endif @@ -125,13 +129,15 @@ REGISTER_ITEM(Speed, Powerup) { this.m_respawnsound = SND_SHIELD_RESPAWN; #endif this.netname = "speed"; - this.m_name = "Speed"; + this.m_name = _("Speed"); this.m_icon = "shield"; this.m_color = '1 0 1'; this.m_waypoint_text = _("Speed"); this.m_waypoint_icon = "waypoint_speed"; this.m_waypointblink = 2; +#ifdef GAMEQC this.m_itemid = IT_INVINCIBLE; +#endif #ifdef SVQC this.m_iteminit = powerup_speed_init; #endif