Skip to content

Commit 2a0f0d9

Browse files
committed
add FR version.txt support. add disclaimer hud.
1 parent 42b347b commit 2a0f0d9

File tree

13 files changed

+200
-10
lines changed

13 files changed

+200
-10
lines changed

game/mod_hl2mp/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=1.0.0.0
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
"resource/ui/HudDisclamer.res"
2+
{
3+
"HudDisclamer"
4+
{
5+
"ControlName" "EditablePanel"
6+
"fieldName" "HudDisclamer"
7+
"xpos" "6"
8+
"ypos" "-3"
9+
"zpos" "0"
10+
"wide" "256"
11+
"tall" "44"
12+
"visible" "1"
13+
"enabled" "1"
14+
}
15+
16+
"DisclaimerText"
17+
{
18+
"ControlName" "CExLabel"
19+
"fieldName" "DisclaimerText"
20+
"xpos" "0"
21+
"ypos" "0"
22+
"zpos" "2"
23+
"wide" "256"
24+
"tall" "44"
25+
"labelText" ""
26+
"font" "HudFontSmallest"
27+
"fgcolor" "201 188 162 255"
28+
}
29+
}

game/mod_tf/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=1.0.0.0

game/quiver/info_changelog.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Quiver Test 5:
1+
Quiver Private Alpha 1.0.0:
22
- Demoman and Soldier speed has been decreased to 315 from 340.
33
- Sniper and Spy speed has been reduced to 325 from 340.
44
- Pyro and Engineer speed has been reduced to 335 from 340.
@@ -24,6 +24,8 @@ Quiver Test 5:
2424
- Added loading screen tips.
2525
- Added Team Deathmatch. Maps without a specified gamemode (no gamemode logic or entities), or with dm_ or tdm_ prefixes will be considered Team Deathmatch maps. Disable qf_allow_tdm if you wish to disable Team Deathmatch on your server and restore the original "no gamemode" logic.
2626
- Added dm_ravine, dm_lumberyard, and dm_2fort, the first Team Deathmatch maps, built off the Arena/CTF maps of the same name.
27+
- Added mod_version command so you can view the mod's version.
28+
- Added a disclaimer on the HUD about the mod's development state.
2729
- Added the following Source SDK Pull Requests:
2830
- #1428: Fix steam input not working for the upgrade station menu
2931
- #1424: Auto-equip powerup canteen when ForceUpgrades is enabled (Freaky Fair)
@@ -34,7 +36,7 @@ Quiver Test 5:
3436
- Updated the following Source SDK Pull Requests:
3537
- #1417: Add inverse kinematics solving in model panels
3638

37-
Quiver Test 4:
39+
Quiver Private Test 4:
3840
- Re-enabled shield break responses.
3941
- Removed airborne crits from the Vitality Glitch.
4042
- Re-added the speed and damage penalty to the Vitality Glitch.
@@ -97,7 +99,7 @@ Quiver Test 4:
9799
- #1420: Allow the Shortstop to shove while reloading
98100
- #1417: Add inverse kinematics solving in model panels
99101

100-
Quiver Test 3:
102+
Quiver Private Test 3:
101103
- Improved ForceRegenerateAndRespawn()
102104
- Fixed "MasterRequestRestart" errors.
103105
- Added armor-related upgrades to MvM (max armor, pierces damage resistances, and armor resistance).
@@ -112,11 +114,11 @@ Quiver Test 3:
112114
- Fixed the Vitality Glitch's bonuses and taunt not working.
113115
- Most Taunt kills now pierce armor.
114116

115-
Quiver Test 2.5:
117+
Quiver Private Test 2.5:
116118
- Fixed a bug where broken items don't fix themselves when going to a resupply closet (for real this time)
117119
- Fixed a bug where ForceRegenerateAndRespawn() doesn't actually regenerate the player.
118120

119-
Quiver Test 2:
121+
Quiver Private Test 2:
120122
- Removed speed and damage penalty from the Vitality Glitch.
121123
- Added The Hitman's Heatmaker and The Bazaar Bargain to the whitelist.
122124
- Fixed a bug where some animated avatars wouldn't play properly if the user switches their avatars.
@@ -128,5 +130,5 @@ Quiver Test 2:
128130
- The Charge Shield now will restore 85% of your charge on a kill.
129131
- Increased the turning rate of The Charge Shield.
130132

131-
Quiver Test 1:
133+
Quiver Private Test 1:
132134
- Initial playtesting release build.
252 Bytes
Binary file not shown.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
"resource/ui/HudDisclamer.res"
2+
{
3+
"HudDisclamer"
4+
{
5+
"ControlName" "EditablePanel"
6+
"fieldName" "HudDisclamer"
7+
"xpos" "6"
8+
"ypos" "-3"
9+
"zpos" "0"
10+
"wide" "256"
11+
"tall" "44"
12+
"visible" "1"
13+
"enabled" "1"
14+
}
15+
16+
"DisclaimerText"
17+
{
18+
"ControlName" "CExLabel"
19+
"fieldName" "DisclaimerText"
20+
"xpos" "0"
21+
"ypos" "0"
22+
"zpos" "2"
23+
"wide" "256"
24+
"tall" "44"
25+
"labelText" "#Quiver_WIP_disclaimer"
26+
"font" "HudFontSmallest"
27+
"fgcolor" "201 188 162 255"
28+
}
29+
30+
"DisclaimerTextMiddleShadow"
31+
{
32+
"ControlName" "CExLabel"
33+
"fieldName" "DisclaimerTextMiddleShadow"
34+
"xpos" "1"
35+
"ypos" "1"
36+
"zpos" "1"
37+
"wide" "256"
38+
"tall" "44"
39+
"labelText" "#Quiver_WIP_disclaimer"
40+
"font" "HudFontSmallest"
41+
"fgcolor" "104 96 83 255"
42+
}
43+
44+
"DisclaimerTextShadow"
45+
{
46+
"ControlName" "CExLabel"
47+
"fieldName" "DisclaimerTextShadow"
48+
"xpos" "2"
49+
"ypos" "2"
50+
"zpos" "0"
51+
"wide" "256"
52+
"tall" "44"
53+
"labelText" "#Quiver_WIP_disclaimer"
54+
"font" "HudFontSmallest"
55+
"fgcolor" "42 39 37 255"
56+
}
57+
}

game/quiver/steam.inf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
PatchVersion=10500
2-
ClientVersion=10500
3-
ServerVersion=10500
1+
PatchVersion=21000
2+
ClientVersion=21000
3+
ServerVersion=21000
44
ProductName=quiver
55
appID=243750
66
ServerAppID=244310

game/quiver/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=Private Alpha 1.0.0.0

game/survivor2/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version=1.0.0.0

src/game/client/tf/tf_hud_playerstatus.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434

3535
#include "confirm_dialog.h"
3636

37+
#ifdef BDSBASE
38+
#include "filesystem.h"
39+
#endif
40+
3741
using namespace vgui;
3842

3943
ConVar cl_hud_playerclass_use_playermodel( "cl_hud_playerclass_use_playermodel", "1", FCVAR_ARCHIVE, "Use player model in player class HUD." );
@@ -1581,6 +1585,26 @@ void CTFHudPlayerArmor::OnThink()
15811585
}
15821586
#endif
15831587

1588+
#ifdef BDSBASE
1589+
CTFHudDisclamer::CTFHudDisclamer( Panel* parent, const char* name ) : EditablePanel(parent, name) { }
1590+
1591+
void CTFHudDisclamer::ApplySchemeSettings(IScheme* pScheme)
1592+
{
1593+
LoadControlSettings("resource/ui/HudDisclamer.res");
1594+
1595+
const char* modName = "";
1596+
KeyValuesAD pKVGameInfo("GameInfo");
1597+
if (pKVGameInfo->LoadFromFile(g_pFullFileSystem, "gameinfo.txt", "MOD"))
1598+
{
1599+
modName = pKVGameInfo->GetString("game", "Half-Life 2");
1600+
}
1601+
1602+
SetDialogVariable("game", modName);
1603+
SetDialogVariable("version", UTIL_GetModVersion());
1604+
BaseClass::ApplySchemeSettings(pScheme);
1605+
}
1606+
#endif
1607+
15841608
DECLARE_HUDELEMENT( CTFHudPlayerStatus );
15851609

15861610
//-----------------------------------------------------------------------------
@@ -1597,6 +1621,10 @@ CTFHudPlayerStatus::CTFHudPlayerStatus( const char *pElementName ) : CHudElement
15971621
m_pHudPlayerArmor = new CTFHudPlayerArmor(this, "HudPlayerArmor");
15981622
#endif
15991623

1624+
#ifdef BDSBASE
1625+
m_pHudDisclaimer = new CTFHudDisclamer(this, "HudDisclamer");
1626+
#endif
1627+
16001628
SetHiddenBits( HIDEHUD_HEALTH | HIDEHUD_PLAYERDEAD );
16011629
}
16021630

0 commit comments

Comments
 (0)