From: terencehill Date: Mon, 18 Mar 2013 13:00:40 +0000 (+0100) Subject: Merge branch 'master' into terencehill/itemstime X-Git-Tag: xonotic-v0.8.1~12^2~32 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=99e4fa0264127dfcf4675d5f645061b51af815e4;p=xonotic%2Fxonotic-data.pk3dir.git Merge branch 'master' into terencehill/itemstime Conflicts: qcsrc/common/constants.qh qcsrc/server/defs.qh --- 99e4fa0264127dfcf4675d5f645061b51af815e4 diff --cc _hud_common.cfg index 7420b1a85,ca90bc9da..8ab874555 --- a/_hud_common.cfg +++ b/_hud_common.cfg @@@ -26,13 -37,11 +37,13 @@@ seta hud_panel_engineinfo_framecounter_ seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_new_weight 0.1 "weight of latest data point" seta hud_panel_engineinfo_framecounter_exponentialmovingaverage_instantupdate_change_threshold 0.5 "threshold for fps change when to update instantly, to make big fps changes update faster" +seta hud_panel_itemstime_progressbar_maxtime "30" "when left time is at least this amount, the status bar is full" + // hud panel aliases alias hud_panel_radar_rotate "toggle hud_panel_radar_rotation 0 1 2 3 4" - alias +hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized 1" - alias -hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized 0" - alias hud_panel_radar_maximized "cl_cmd hud_panel_radar_maximized" + alias +hud_panel_radar_maximized "cl_cmd hud radar 1" + alias -hud_panel_radar_maximized "cl_cmd hud radar 0" + alias hud_panel_radar_maximized "cl_cmd hud radar" // other hud cvars seta hud_showbinds 1 "what to show in the HUD to indicate certain keys to press: 0 display commands, 1 bound keys, 2 both" diff --cc qcsrc/common/constants.qh index 833216307,c25fb059f..898495764 --- a/qcsrc/common/constants.qh +++ b/qcsrc/common/constants.qh @@@ -180,17 -177,8 +178,18 @@@ const float STAT_VEHICLESTAT_RELOAD2 = const float STAT_SECRETS_TOTAL = 70; const float STAT_SECRETS_FOUND = 71; + const float STAT_RESPAWN_TIME = 72; + +const float STAT_ARMOR_LARGE_TIME = 80; +const float STAT_HEALTH_MEGA_TIME = 81; +const float STAT_INVISIBLE_TIME = 82; +const float STAT_SPEED_TIME = 83; +const float STAT_EXTRALIFE_TIME = 84; +const float STAT_STRENGTH_TIME = 85; +const float STAT_SHIELD_TIME = 86; +const float STAT_FUELREGEN_TIME = 87; +const float STAT_JETPACK_TIME = 88; +const float STAT_SUPERWEAPONS_TIME = 89; - // mod stats (1xx) const float STAT_REDALIVE = 100; const float STAT_BLUEALIVE = 101; diff --cc qcsrc/server/defs.qh index 7e4a07b5f,5eaafe4f1..1f6d8b238 --- a/qcsrc/server/defs.qh +++ b/qcsrc/server/defs.qh @@@ -625,28 -585,11 +586,21 @@@ string deathmessage #define ACTIVE_BUSY 2 #define ACTIVE_TOGGLE 3 .float active; - .float (float act_state) setactive; + .void (float act_state) setactive; .entity realowner; -float allowed_to_spawn; // boolean variable used by the clan arena code to determine if a player can spawn (after the round has ended) +.float item_armor_large_time; +.float item_health_mega_time; +.float item_invisible_time; +.float item_speed_time; +.float item_extralife_time; +.float item_strength_time; +.float item_shield_time; +.float item_fuelregen_time; +.float item_jetpack_time; +.float item_superweapons_time; - .float nex_charge; - .float nex_charge_rottime; - .float nex_chargepool_ammo; - - .float hagar_load; - +float allowed_to_spawn; // boolean variable used by the clan arena code to determine if a player can spawn (after the round has ended) - float serverflags; .float team_forced; // can be a team number to force a team, or 0 for default action, or -1 for forced spectator diff --cc qcsrc/server/t_items.qc index bc8638dd2,2ff925ca5..11f81b1d6 --- a/qcsrc/server/t_items.qc +++ b/qcsrc/server/t_items.qc @@@ -670,12 -508,13 +673,17 @@@ void Item_RespawnCountdown (void { WaypointSprite_Spawn(name, 0, 0, self, '0 0 64', world, 0, self, waypointsprite_attached, TRUE, RADARICON_POWERUP, rgb); if(self.waypointsprite_attached) + { + if (self.items == IT_HEALTH || self.items == IT_ARMOR) + WaypointSprite_UpdateRule(self.waypointsprite_attached, 0, SPRITERULE_SPECTATOR); WaypointSprite_UpdateBuildFinished(self.waypointsprite_attached, time + ITEM_RESPAWN_TICKS); + } } + else + { + print("Unknown powerup-marked item is wanting to respawn\n"); + localcmd(sprintf("prvm_edict server %d\n", num_for_edict(self))); + } } sound (self, CH_TRIGGER, "misc/itemrespawncountdown.wav", VOL_BASE, ATTN_NORM); // play respawn sound if(self.waypointsprite_attached)