diff --git a/README b/README.md similarity index 79% rename from README rename to README.md index 3ade2f320..ff252e742 100644 --- a/README +++ b/README.md @@ -1,4 +1,12 @@ - SOURCE 1 SDK LICENSE +# Source SDK 2013 Community Edtion + +This is a variation of Source 2013 with community changes to make the game look, run, and play more efficiently and add tools for developers. Some examples are fixing env_projectedtexture, adding Bioshock's ShaderEditor, and more. + +If you want to help contribute, message Wazanator on Steam or on Discord, or join our Discord server: https://discord.gg/FZqp7Cf + +## Source License + +SOURCE 1 SDK LICENSE Source SDK Copyright(c) Valve Corp. @@ -6,7 +14,7 @@ THIS DOCUMENT DESCRIBES A CONTRACT BETWEEN YOU AND VALVE CORPORATION ("Valve"). PLEASE READ IT BEFORE DOWNLOADING OR USING THE SOURCE ENGINE SDK ("SDK"). BY DOWNLOADING AND/OR USING THE SOURCE ENGINE SDK YOU ACCEPT THIS LICENSE. IF YOU DO NOT AGREE TO -THE TERMS OF THIS LICENSE PLEASE DON’T DOWNLOAD OR USE THE SDK. +THE TERMS OF THIS LICENSE PLEASE DON’T DOWNLOAD OR USE THE SDK. You may, free of charge, download and use the SDK to develop a modified Valve game running on the Source engine. You may distribute your modified Valve game in source and diff --git a/sp/game/sdk2013CE/gameinfo.txt b/sp/game/sdk2013CE/gameinfo.txt index 0f815c521..80ae486b1 100644 --- a/sp/game/sdk2013CE/gameinfo.txt +++ b/sp/game/sdk2013CE/gameinfo.txt @@ -1,6 +1,6 @@ "GameInfo" { - game "My First Episodic Mod" + game "My Mod" title "HALF-LIFE'" title2 "" diff --git a/sp/game/sdk2013CE/resource/ClientScheme.res b/sp/game/sdk2013CE/resource/ClientScheme.res new file mode 100644 index 000000000..3dd0ce2c9 --- /dev/null +++ b/sp/game/sdk2013CE/resource/ClientScheme.res @@ -0,0 +1,799 @@ +/////////////////////////////////////////////////////////// +// Tracker scheme resource file +// +// sections: +// Colors - all the colors used by the scheme +// BaseSettings - contains settings for app to use to draw controls +// Fonts - list of all the fonts used by app +// Borders - description of all the borders +// +/////////////////////////////////////////////////////////// +Scheme +{ + //////////////////////// COLORS /////////////////////////// + // color details + // this is a list of all the colors used by the scheme + Colors + { + } + + ///////////////////// BASE SETTINGS //////////////////////// + // + // default settings for all panels + // controls use these to determine their settings + BaseSettings + { + "FgColor" "255 220 0 100" + "BgColor" "0 0 0 76" + + "Panel.FgColor" "255 220 0 100" + "Panel.BgColor" "0 0 0 76" + + "BrightFg" "255 220 0 255" + + "DamagedBg" "180 0 0 200" + "DamagedFg" "180 0 0 230" + "BrightDamagedFg" "255 0 0 255" + + // weapon selection colors + "SelectionNumberFg" "255 220 0 255" + "SelectionTextFg" "255 220 0 255" + "SelectionEmptyBoxBg" "0 0 0 80" + "SelectionBoxBg" "0 0 0 80" + "SelectionSelectedBoxBg" "0 0 0 80" + + "ZoomReticleColor" "255 220 0 255" + + // HL1-style HUD colors + "Yellowish" "255 160 0 255" + "Normal" "255 208 64 255" + "Caution" "255 48 0 255" + + // Top-left corner of the "Half-Life 2" on the main screen + "Main.Title1.X" "76" + "Main.Title1.Y" "145" + "Main.Title1.Y_hidef" "130" + "Main.Title1.Color" "255 255 255 255" + + // Top-left corner of secondary title e.g. "DEMO" on the main screen + "Main.Title2.X" "76" + "Main.Title2.Y" "190" + "Main.Title2.Y_hidef" "174" + "Main.Title2.Color" "255 255 255 200" + + // Top-left corner of the menu on the main screen + "Main.Menu.X" "53" + "Main.Menu.X_hidef" "76" + "Main.Menu.Y" "240" + + // Blank space to leave beneath the menu on the main screen + "Main.BottomBorder" "32" + } + + //////////////////////// BITMAP FONT FILES ///////////////////////////// + // + // Bitmap Fonts are ****VERY*** expensive static memory resources so they are purposely sparse + BitmapFontFiles + { + // UI buttons, custom font, (256x64) + "Buttons" "materials/vgui/fonts/buttons_32.vbf" + } + + + //////////////////////// FONTS ///////////////////////////// + // + // describes all the fonts + Fonts + { + // fonts are used in order that they are listed + // fonts are used in order that they are listed + "DebugFixed" + { + "1" + { + "name" "Courier New" + "tall" "14" + "weight" "400" + "antialias" "1" + } + } + // fonts are used in order that they are listed + "DebugFixedSmall" + { + "1" + { + "name" "Courier New" + "tall" "14" + "weight" "400" + "antialias" "1" + } + } + // fonts listed later in the order will only be used if they fulfill a range not already filled + // if a font fails to load then the subsequent fonts will replace + Default + { + "1" [$X360] + { + "name" "Verdana" + "tall" "12" + "weight" "700" + "antialias" "1" + } + "1" [$WIN32] + { + "name" "Verdana" + "tall" "9" + "weight" "700" + "antialias" "1" + "yres" "1 599" + } + "2" + { + "name" "Verdana" + "tall" "12" + "weight" "700" + "antialias" "1" + "yres" "600 767" + } + "3" + { + "name" "Verdana" + "tall" "14" + "weight" "900" + "antialias" "1" + "yres" "768 1023" + } + "4" + { + "name" "Verdana" + "tall" "20" + "weight" "900" + "antialias" "1" + "yres" "1024 1199" + } + "5" + { + "name" "Verdana" + "tall" "24" + "weight" "900" + "antialias" "1" + "yres" "1200 10000" + "additive" "1" + } + } + "DefaultSmall" + { + "1" + { + "name" "Verdana" + "tall" "12" + "weight" "0" + "range" "0x0000 0x017F" + "yres" "480 599" + } + "2" + { + "name" "Verdana" + "tall" "13" + "weight" "0" + "range" "0x0000 0x017F" + "yres" "600 767" + } + "3" + { + "name" "Verdana" + "tall" "14" + "weight" "0" + "range" "0x0000 0x017F" + "yres" "768 1023" + "antialias" "1" + } + "4" + { + "name" "Verdana" + "tall" "20" + "weight" "0" + "range" "0x0000 0x017F" + "yres" "1024 1199" + "antialias" "1" + } + "5" + { + "name" "Verdana" + "tall" "24" + "weight" "0" + "range" "0x0000 0x017F" + "yres" "1200 6000" + "antialias" "1" + } + "6" + { + "name" "Arial" + "tall" "12" + "range" "0x0000 0x00FF" + "weight" "0" + } + } + "DefaultVerySmall" + { + "1" + { + "name" "Verdana" + "tall" "12" + "weight" "0" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "480 599" + } + "2" + { + "name" "Verdana" + "tall" "13" + "weight" "0" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "600 767" + } + "3" + { + "name" "Verdana" + "tall" "14" + "weight" "0" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "768 1023" + "antialias" "1" + } + "4" + { + "name" "Verdana" + "tall" "20" + "weight" "0" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "1024 1199" + "antialias" "1" + } + "5" + { + "name" "Verdana" + "tall" "24" + "weight" "0" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "1200 6000" + "antialias" "1" + } + "6" + { + "name" "Verdana" + "tall" "12" + "range" "0x0000 0x00FF" + "weight" "0" + } + "7" + { + "name" "Arial" + "tall" "11" + "range" "0x0000 0x00FF" + "weight" "0" + } + } + WeaponIcons + { + "1" + { + "name" "HalfLife2" + "tall" "64" + "tall_hidef" "58" + "weight" "0" + "antialias" "1" + "additive" "1" + "custom" "1" + } + } + WeaponIconsSelected + { + "1" + { + "name" "HalfLife2" + "tall" "64" + "tall_hidef" "58" + "weight" "0" + "antialias" "1" + "blur" "5" + "scanlines" "2" + "additive" "1" + "custom" "1" + } + } + WeaponIconsSmall + { + "1" + { + "name" "HalfLife2" + "tall" "32" + "weight" "0" + "antialias" "1" + "additive" "1" + "custom" "1" + } + } + Crosshairs + { + "1" + { + "name" "HalfLife2" + "tall" "40" [!$OSX] + "tall" "41" [$OSX] + "weight" "0" + "antialias" "0" + "additive" "1" + "custom" "1" + "yres" "1 10000" + } + } + QuickInfo + { + "1" [$X360] + { + "name" "HL2cross" + "tall" "57" + "weight" "0" + "antialias" "1" + "additive" "1" + "custom" "1" + } + "1" [$WIN32] + { + "name" "HL2cross" + "tall" "28" [!$OSX] + "tall" "50" [$OSX] + "weight" "0" + "antialias" "1" + "additive" "1" + "custom" "1" [!$OSX] + } + } + HudNumbers + { + "1" + { + "name" "HalfLife2" + "tall" "32" [$WIN32] + "tall" "38" [$X360] + "weight" "0" + "antialias" "1" + "additive" "1" + "custom" "1" + } + } + SquadIcon [$X360] + { + "1" + { + "name" "HalfLife2" + "tall" "50" + "weight" "0" + "antialias" "1" + "additive" "1" + "custom" "1" + } + } + HudNumbersGlow + { + "1" + { + "name" "HalfLife2" + "tall" "32" [$WIN32] + "tall" "38" [$X360] + "weight" "0" + "blur" "4" + "scanlines" "2" + "antialias" "1" + "additive" "1" + "custom" "1" + } + } + HudNumbersSmall + { + "1" + { + "name" "HalfLife2" [!$OSX] + "name" "Helvetica Bold" [$OSX] + "tall" "16" [$WIN32] + "tall" "22" [$X360] + "weight" "1000" + "additive" "1" + "antialias" "1" + "custom" "1" + } + } + HudSelectionNumbers + { + "1" + { + "name" "Verdana" + "tall" "11" + "weight" "700" + "antialias" "1" + "additive" "1" + } + } + HudHintTextLarge + { + "1" [$X360] + { + "bitmap" "1" + "name" "Buttons" + "scalex" "1.0" + "scaley" "1.0" + } + "1" [$WIN32] + { + "name" "Verdana" [!$OSX] + "name" "Helvetica Bold" [$OSX] + "tall" "14" + "weight" "1000" + "antialias" "1" + "additive" "1" + } + } + HudHintTextSmall + { + "1" [$WIN32] + { + "name" "Verdana" [!$OSX] + "name" "Helvetica" [$OSX] + "tall" "11" + "weight" "0" + "antialias" "1" + "additive" "1" + } + "1" [$X360] + { + "name" "Verdana" + "tall" "12" + "weight" "700" + "antialias" "1" + "additive" "1" + } + } + HudSelectionText + { + "1" + { + "name" "Verdana" + "tall" "8" + "weight" "700" + "antialias" "1" + "yres" "1 599" + } + "2" + { + "name" "Verdana" + "tall" "10" + "weight" "700" + "antialias" "1" + "yres" "600 767" + } + "3" + { + "name" "Verdana" + "tall" "12" + "weight" "900" + "antialias" "1" + "yres" "768 1023" + } + "4" + { + "name" "Verdana" + "tall" "16" + "weight" "900" + "antialias" "1" + "yres" "1024 1199" + } + "5" + { + "name" "Verdana" + "tall" "17" + "weight" "1000" + "antialias" "1" + "yres" "1200 10000" + } + } + GameUIButtons + { + "1" [$X360] + { + "bitmap" "1" + "name" "Buttons" + "scalex" "0.63" + "scaley" "0.63" + "scalex_hidef" "1.0" + "scaley_hidef" "1.0" + } + } + BudgetLabel + { + "1" + { + "name" "Courier New" + "tall" "14" + "weight" "400" + "outline" "1" + } + } + DebugOverlay + { + "1" [$WIN32] + { + "name" "Courier New" + "tall" "14" + "weight" "400" + "outline" "1" + } + "1" [$X360] + { + "name" "Tahoma" + "tall" "18" + "weight" "200" + "outline" "1" + } + } + "CloseCaption_Normal" + { + "1" + { + "name" "Tahoma" [!$OSX] + "name" "Verdana" [$OSX] + "tall" "26" [!$OSX] + "tall" "24" [$OSX] + "weight" "500" + } + } + "CloseCaption_Italic" + { + "1" + { + "name" "Tahoma" [!$OSX] + "name" "Verdana Italic" [$OSX] + "tall" "26" [!$OSX] + "tall" "24" [$OSX] + "weight" "500" + "italic" "1" + } + } + "CloseCaption_Bold" + { + "1" + { + "name" "Tahoma" [!$OSX] + "name" "Verdana Bold" [$OSX] + "tall" "26" [!$OSX] + "tall" "24" [$OSX] + "weight" "900" + } + } + "CloseCaption_BoldItalic" + { + "1" + { + "name" "Tahoma" [!$OSX] + "name" "Verdana Bold Italic" [$OSX] + "tall" "26" [!$OSX] + "tall" "24" [$OSX] + "weight" "900" + "italic" "1" + } + } + "CloseCaption_Small" + { + "1" + { + "name" "Tahoma" [!$OSX] + "name" "Verdana" [$OSX] + "tall" "16" [!$OSX] + "tall" "14" [$OSX] + "tall_hidef" "24" + "weight" "900" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + } + } + // this is the symbol font + "Marlett" + { + "1" + { + "name" "Marlett" + "tall" "14" + "weight" "0" + "symbol" "1" + } + } + "Trebuchet24" + { + "1" + { + "name" "Trebuchet MS" + "tall" "24" + "weight" "900" + "range" "0x0000 0x007F" // Basic Latin + "antialias" "1" + "additive" "1" + } + } + "Trebuchet18" + { + "1" + { + "name" "Trebuchet MS" + "tall" "18" + "weight" "900" + } + } + ClientTitleFont + { + "1" + { + "name" "HL2EP2" + "tall" "34" + "tall_hidef" "48" + "weight" "0" + "additive" "0" + "antialias" "1" + "custom" "1" [$OSX] + } + } + CreditsLogo + { + "1" + { + "name" "HalfLife2" + "tall" "128" + "weight" "0" + "antialias" "1" + "additive" "1" + "custom" "1" + } + } + CreditsText + { + "1" + { + "name" "Trebuchet MS" + "tall" "20" + "weight" "900" + "antialias" "1" + "additive" "1" + } + } + CreditsOutroLogos + { + "1" + { + "name" "HalfLife2" + "tall" "48" + "weight" "0" + "antialias" "1" + "additive" "1" + "custom" "1" + } + } + CreditsOutroText + { + "1" + { + "name" "Verdana" [!$OSX] + "name" "Courier Bold" [$OSX] + "tall" "9" + "weight" "900" + "antialias" "1" + } + } + CenterPrintText + { + // note that this scales with the screen resolution + "1" + { + "name" "Trebuchet MS" [!$OSX] + "name" "Helvetica" [$OSX] + "tall" "18" + "weight" "900" + "antialias" "1" + "additive" "1" + } + } + HDRDemoText + { + // note that this scales with the screen resolution + "1" + { + "name" "Trebuchet MS" + "tall" "24" + "weight" "900" + "antialias" "1" + "additive" "1" + } + } + "AchievementNotification" + { + "1" + { + "name" "Trebuchet MS" + "tall" "14" + "weight" "900" + "antialias" "1" + } + } + "CommentaryDefault" + { + "1" + { + "name" "Verdana" + "tall" "12" + "weight" "900" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "480 599" + } + "2" + { + "name" "Verdana" + "tall" "13" [$WIN32] + "tall" "20" [$X360] + "weight" "900" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "600 767" + } + "3" + { + "name" "Verdana" + "tall" "14" + "weight" "900" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "768 1023" + "antialias" "1" + } + "4" + { + "name" "Verdana" + "tall" "20" + "weight" "900" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "1024 1199" + "antialias" "1" + } + "5" + { + "name" "Verdana" + "tall" "24" + "weight" "900" + "range" "0x0000 0x017F" // Basic Latin, Latin-1 Supplement, Latin Extended-A + "yres" "1200 6000" + "antialias" "1" + } + "6" + { + "name" "Verdana" + "tall" "12" + "range" "0x0000 0x00FF" + "weight" "900" + } + "7" + { + "name" "Arial" + "tall" "12" + "range" "0x0000 0x00FF" + "weight" "800" + } + + } + } + + + //////////////////////// CUSTOM FONT FILES ///////////////////////////// + // + // specifies all the custom (non-system) font files that need to be loaded to service the above described fonts + CustomFontFiles + { + "1" "resource/HALFLIFE2.ttf" + "2" "resource/HL2crosshairs.ttf" + "3" "resource/HL2EP2.ttf" + } + +} diff --git a/sp/game/sdk2013CE/resource/HL2EP2.ttf b/sp/game/sdk2013CE/resource/HL2EP2.ttf new file mode 100644 index 000000000..1e8e1ae89 Binary files /dev/null and b/sp/game/sdk2013CE/resource/HL2EP2.ttf differ diff --git a/sp/game/sdk2013CE/resource/sdk2013CE_english.txt b/sp/game/sdk2013CE/resource/sdk2013CE_english.txt new file mode 100644 index 000000000..75ef634e1 Binary files /dev/null and b/sp/game/sdk2013CE/resource/sdk2013CE_english.txt differ diff --git a/sp/game/sdk2013CE/shaders/fxc/example_model_ps20b.vcs b/sp/game/sdk2013CE/shaders/fxc/example_model_ps20b.vcs new file mode 100644 index 000000000..616b536fa Binary files /dev/null and b/sp/game/sdk2013CE/shaders/fxc/example_model_ps20b.vcs differ diff --git a/sp/game/sdk2013CE/shaders/fxc/example_model_vs20.vcs b/sp/game/sdk2013CE/shaders/fxc/example_model_vs20.vcs new file mode 100644 index 000000000..633eda48a Binary files /dev/null and b/sp/game/sdk2013CE/shaders/fxc/example_model_vs20.vcs differ diff --git a/sp/game/sdk2013CE/shaders/fxc/sdk_bloom_ps20.vcs b/sp/game/sdk2013CE/shaders/fxc/sdk_bloom_ps20.vcs new file mode 100644 index 000000000..9449b4f6b Binary files /dev/null and b/sp/game/sdk2013CE/shaders/fxc/sdk_bloom_ps20.vcs differ diff --git a/sp/game/sdk2013CE/shaders/fxc/sdk_bloom_ps20b.vcs b/sp/game/sdk2013CE/shaders/fxc/sdk_bloom_ps20b.vcs new file mode 100644 index 000000000..719cb2d19 Binary files /dev/null and b/sp/game/sdk2013CE/shaders/fxc/sdk_bloom_ps20b.vcs differ diff --git a/sp/game/sdk2013CE/shaders/fxc/sdk_bloomadd_ps20.vcs b/sp/game/sdk2013CE/shaders/fxc/sdk_bloomadd_ps20.vcs new file mode 100644 index 000000000..c9c8dd1a0 Binary files /dev/null and b/sp/game/sdk2013CE/shaders/fxc/sdk_bloomadd_ps20.vcs differ diff --git a/sp/game/sdk2013CE/shaders/fxc/sdk_bloomadd_ps20b.vcs b/sp/game/sdk2013CE/shaders/fxc/sdk_bloomadd_ps20b.vcs new file mode 100644 index 000000000..4dbf396a3 Binary files /dev/null and b/sp/game/sdk2013CE/shaders/fxc/sdk_bloomadd_ps20b.vcs differ diff --git a/sp/game/sdk2013CE/shaders/fxc/sdk_screenspaceeffect_vs20.vcs b/sp/game/sdk2013CE/shaders/fxc/sdk_screenspaceeffect_vs20.vcs new file mode 100644 index 000000000..60397eb80 Binary files /dev/null and b/sp/game/sdk2013CE/shaders/fxc/sdk_screenspaceeffect_vs20.vcs differ