X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fitems%2Fitem%2Fpowerup.qh;h=43414b3d06f68af39afcb97f5eb0ebb7f2cf43ee;hb=b0816500ed84f729dbdc890f9d1793576bb04045;hp=787a7c94691898f2eb04566cc4b448159f72f218;hpb=7aaff08fbaad9424651ec31c82f8a5d78e5ec1e1;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/item/powerup.qh b/qcsrc/common/items/item/powerup.qh index 787a7c946..43414b3d0 100644 --- a/qcsrc/common/items/item/powerup.qh +++ b/qcsrc/common/items/item/powerup.qh @@ -10,7 +10,7 @@ CLASS(Powerup, Pickup) #ifdef SVQC ATTRIB(Powerup, m_mins, vector, '-16 -16 0'); ATTRIB(Powerup, m_maxs, vector, '16 16 80'); - ATTRIB(Powerup, m_botvalue, int, 20000); + ATTRIB(Powerup, m_botvalue, int, 11000); ATTRIB(Powerup, m_itemflags, int, FL_POWERUP); ATTRIB(Powerup, m_respawntime, float(), GET(g_pickup_respawntime_powerup)); ATTRIB(Powerup, m_respawntimejitter, float(), GET(g_pickup_respawntimejitter_powerup)); @@ -24,7 +24,7 @@ SOUND(Strength, Item_Sound("powerup")); #ifdef SVQC float autocvar_g_balance_powerup_strength_time; -void powerup_strength_init(entity item) +void powerup_strength_init(Pickup this, entity item) { if(!item.strength_finished) item.strength_finished = autocvar_g_balance_powerup_strength_time; @@ -33,13 +33,14 @@ void powerup_strength_init(entity item) REGISTER_ITEM(Strength, Powerup) { this.m_canonical_spawnfunc = "item_strength"; #ifdef GAMEQC + this.spawnflags = ITEM_FLAG_NORMAL; this.m_model = MDL_Strength_ITEM; this.m_sound = SND_Strength; this.m_glow = true; this.m_respawnsound = SND_STRENGTH_RESPAWN; #endif this.netname = "strength"; - this.m_name = "Strength Powerup"; + this.m_name = _("Strength"); this.m_icon = "strength"; this.m_color = '0 0 1'; this.m_waypoint = _("Strength"); @@ -59,7 +60,7 @@ SOUND(Shield, Item_Sound("powerup_shield")); #ifdef SVQC float autocvar_g_balance_powerup_invincible_time; -void powerup_shield_init(entity item) +void powerup_shield_init(Pickup this, entity item) { if(!item.invincible_finished) item.invincible_finished = autocvar_g_balance_powerup_invincible_time; @@ -68,13 +69,14 @@ void powerup_shield_init(entity item) REGISTER_ITEM(Shield, Powerup) { this.m_canonical_spawnfunc = "item_shield"; #ifdef GAMEQC + this.spawnflags = ITEM_FLAG_NORMAL; this.m_model = MDL_Shield_ITEM; this.m_sound = SND_Shield; this.m_glow = true; this.m_respawnsound = SND_SHIELD_RESPAWN; #endif this.netname = "invincible"; - this.m_name = "Shield"; + this.m_name = _("Shield"); this.m_icon = "shield"; this.m_color = '1 0 1'; this.m_waypoint = _("Shield");