Skip to content

Commit 2ae4f04

Browse files
authored
Release 0.13.0 (#1428)
1 parent 6097009 commit 2ae4f04

File tree

3 files changed

+170
-7
lines changed

3 files changed

+170
-7
lines changed

CHANGELOG.md

+14-6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
66

77
### Added
88

9+
### Changed
10+
11+
### Fixed
12+
13+
## [v0.13.0b](https://github.com/TTT-2/TTT2/tree/v0.13.0b) (2024-02-21)
14+
15+
### Added
16+
917
- Added migrations between TTT2-versions, some breaking changes could now be migrated instead
1018
- Added a new markerVision module that adds information to a specific point in space to replace the old C4 radar; it is currently used by these builtin weapons (by @TimGoll)
1119
- C4
@@ -30,7 +38,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
3038
- Icon for `Voice & Volume` menu
3139
- Added a new vgui element: `DWeaponPreview_TTT2` to render a player with their equipped weapon (by @TimGoll)
3240
- Supports any normal weapon that has a `.HoldType` and a `.WorldModel`
33-
- Supports any weapon that is made with the SWEP Construction Kit (boomerang, melonmine, ...)
41+
- Supports any weapon that is made with the SWEP Construction Kit (boomerang, melonmine, ...) or made for our custom world model renderer
3442
- Made beacon model and icon unique from decoy (by @EntranceJew)
3543
- Added `SWEP:ClearHUDHelp()` to allow blanking the help text, for dynamically updating help text on equipment (by @EntranceJew)
3644
- Added custom world and view models to some builtin weapons (by @TimGoll)
@@ -42,12 +50,11 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
4250
- Added `ttt_base_placeable` entity that is used to handle any placeable / destroyable entity (by @TimGoll)
4351
- moved `ttt_c4`, `ttt_health_station`, `ttt_beacon`, `ttt_decoy`, `ttt_radio` and `ttt_cse_proj` to that base
4452
- also handles pickup of those entities
45-
- Throwables (grenades) now have a `:GetPullTime()` accessor
53+
- Throwables (grenades) now have a `:GetPullTime()` accessor (by @EntranceJew)
4654
- Throwables (grenades) show UI for the amount of time remaining before detonation (fuse time) (by @EntranceJew)
4755
- UI for grenade throw arcs from [colemclaren's TTT fork](https://github.com/colemclaren/ttt/blob/master/addons/moat_addons/lua/weapons/weapon_tttbasegrenade.lua#L293-L353) (integrated by @EntranceJew)
4856
- `gameEffects` library for global effects that are useful, such as starting fires (by @EntranceJew)
4957
- Added weapon pickup sounds when picking up weapons manually (by @TimGoll)
50-
- Added further missing German translation (by @NickCloudAT)
5158

5259
### Changed
5360

@@ -58,16 +65,17 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
5865
- Binoculars now have a world model that isn't paper towels (by @EntranceJew)
5966
- Decreased shooting accuracy while sprinting or in air (by @TimGoll)
6067
- A player whose weapons are stripped and cached will keep `weapon_ttt_unarmed` which means they keep their crosshair (by @TimGoll)
68+
- Updated the German localization file (by @NickCloudAT)
6169
- Updated the Turkish localization file (by @NovaDiablox)
6270
- Grenades have icons
63-
- Brought `c4`, `defuser`, `flaregun`, `health_station`, `radio` weapons down from upstream (by @a7f3)
64-
- Updated help text for `c4`, `defuser`, `flaregun`, `health_station`, `radio`, `knife`, `phammer`, `push`, and `zm_carry` weapons (by @a7f3)
71+
- Brought `C4`, `defuser`, `flaregun`, `health_station`, `radio` weapons down from upstream (by @a7f3)
72+
- Updated help text for `C4`, `defuser`, `flaregun`, `health_station`, `radio`, `knife`, `phammer`, `push`, and `zm_carry` weapons (by @a7f3)
6573
- Brought down the `EFFECT`s: `crimescene_dummy`, `crimescene_shot`, `pulse_sphere`, `teleport_beamdown`, `teleport_beamup`
6674
- Brought down the `ENT`s: `ttt_basegrenade_proj`, `ttt_carry_handler` (unused), `ttt_firegrenade_proj`, `ttt_smokegrenade_proj`, `ttt_weapon_check`
6775
- Brought down the `SWEP`: `weapon_ttt_stungun`
6876
- Brought down the menu for arming/defusing C4
6977
- Updated and improved Simplified Chinese translation (by @sbzlzh and @TheOnly8Z)
70-
- improved Simplified Chinese translation (by @TEGTainFan
78+
- Improved Simplified Chinese translation(by @TEGTainFan
7179
- Consolidated hat logic
7280
- Player role selection logic uses `Player:CanSelectRole()` now instead of duplicating logic
7381
- Role avoidance is no longer an option

gamemodes/terrortown/gamemode/client/cl_changes.lua

+155
Original file line numberDiff line numberDiff line change
@@ -1852,6 +1852,161 @@ function CreateChanges()
18521852
os.time({ year = 2024, month = 01, day = 07 })
18531853
)
18541854

1855+
AddChange(
1856+
"TTT2 Base - v0.13.0b",
1857+
[[
1858+
<h2>Added</h2>
1859+
<ul>
1860+
<li>Added migrations between TTT2-versions, some breaking changes could now be migrated instead</li>
1861+
<li>Added a new markerVision module that adds information to a specific point in space to replace the old C4 radar; it is currently used by these builtin weapons (by @TimGoll)</li>
1862+
<ul>
1863+
<li>C4</li>
1864+
<li>Radio</li>
1865+
<li>Beacon</li>
1866+
</ul>
1867+
<li>Binoculars now retain search progress if interrupted. Progress decays based on time since last observed (by @EntranceJew)</li>
1868+
<li>Reworked the way the player camera is handled (by @TimGoll)</li>
1869+
<ul>
1870+
<li>Added FOV change on speed change</li>
1871+
<li>Added view bobbing on walking, swimming, falling and strafing</li>
1872+
<li>Added convars to disable those changes</li>
1873+
</ul>
1874+
<li>Added <code>draw.Arc</code> and <code>draw.ShadowedArc</code> from TTTC to TTT2 to draw arcs (by @TimGoll und @Alf21)</li>
1875+
<li>Added possibility to cache and remove items, similar to how it is already possible with weapons with <code>CacheAndStripItems</code> (by @TimGoll)</li>
1876+
<li>Added an option for weapons to hide the pickup notification by setting <code>SWEP.silentPickup</code> to <code>true</code> (by @TimGoll)</li>
1877+
<li>Added <code>TTT2FetchAvatar</code> hook for intercepting avatar URIs (by @EntranceJew)</li>
1878+
<li>Added <code>draw.DropCacheAvatar</code> to allow destroying and refreshing an existing avatar, so bots can intercept avatar requests and circumvent the limited unique SteamID64s they're given (by @EntranceJew)</li>
1879+
<li><code>weapon_tttbase</code> changes to correct non-looping animations which affected ADS scoping (by @EntranceJew)</li>
1880+
<ul>
1881+
<li>Added <code>SWEP.IdleAnim</code> to allow specifying an idle animation.</li>
1882+
<li>Added <code>SWEP.idleResetFix</code> to allow the animations for CS:S weapons to automatically be returned to an idle position.</li>
1883+
<li>Added <code>SWEP.ShowDefaultViewModel</code> to prevent a weapon from drawing a ViewModel when set to false at all without FOV hacks or Deploy code which has no effect.</li>
1884+
</ul>
1885+
<li>Added a new vgui element: <code>DWeaponPreview_TTT2</code> to render a player with their equipped weapon (by @TimGoll)</li>
1886+
<ul>
1887+
<li>Supports any normal weapon that has a <code>.HoldType</code> and a <code>.WorldModel</code></li>
1888+
<li>Supports any weapon that is made with the SWEP Construction Kit (boomerang, melonmine, ...) or made for our custom world model renderer</li>
1889+
</ul>
1890+
<li>Made beacon model and icon unique from decoy (by @EntranceJew)</li>
1891+
<li>Added <code>SWEP:ClearHUDHelp()</code> to allow blanking the help text, for dynamically updating help text on equipment (by @EntranceJew)</li>
1892+
<li>Added custom world and view models to some builtin weapons (by @TimGoll)</li>
1893+
<li>Added custom world and view models to some builtin weapons (by @TimGoll)</li>
1894+
<ul>
1895+
<li>added for: radio, beacon, decoy, binoculars, visualizer</li>
1896+
</ul>
1897+
<li>Added support for easy addition of custom view and world models (by @TimGoll)</li>
1898+
<ul>
1899+
<li>Added <code>AddCustomViewModel</code> to add custom view models</li>
1900+
<li>Added <code>AddCustomWorldModel</code> to add custom world models</li>
1901+
<li>Added an automatic fix for badly coded addons that break the view model fingers</li>
1902+
</ul>
1903+
<li>Added <code>ttt_base_placeable</code> entity that is used to handle any placeable / destroyable entity (by @TimGoll)</li>
1904+
<ul>
1905+
<li>moved <code>ttt_c4</code>, <code>ttt_health_station</code>, <code>ttt_beacon</code>, <code>ttt_decoy</code>, <code>ttt_radio</code> and <code>ttt_cse_proj</code> to that base</li>
1906+
<li>also handles pickup of those entities</li>
1907+
</ul>
1908+
<li>Throwables (grenades) now have a <code>:GetPullTime()</code> accessor (by @EntranceJew)</li>
1909+
<li>Throwables (grenades) show UI for the amount of time remaining before detonation (fuse time) (by @EntranceJew)</li>
1910+
<li>UI for grenade throw arcs from colemclaren's TTT fork (integrated by @EntranceJew)</li>
1911+
<li><code>gameEffects</code> library for global effects that are useful, such as starting fires (by @EntranceJew)</li>
1912+
<li>Added weapon pickup sounds when picking up weapons manually (by @TimGoll)</li>
1913+
</ul>
1914+
1915+
<h2>Changed</h2>
1916+
<ul>
1917+
<li>Refactored client shop logic into separate shop-class (by @ZenBre4ker</li>
1918+
<ul>
1919+
<li>Enabled shared shop class to buy and check equipment</li>
1920+
<li>Removed third argument of <code>TTT2CanOrderEquipment</code>-Hook, no message is outputted anymore</li>
1921+
</ul>
1922+
<li>dframe_ttt2 panels can now manually enable bindings while they are open (by @ZenBre4ker)</li>
1923+
<li>Binoculars now have a world model that isn't paper towels (by @EntranceJew)</li>
1924+
<li>Decreased shooting accuracy while sprinting or in air (by @TimGoll)</li>
1925+
<li>A player whose weapons are stripped and cached will keep <code>weapon_ttt_unarmed</code> which means they keep their crosshair (by @TimGoll)</li>
1926+
<li>Updated the German localization file (by @NickCloudAT)</li>
1927+
<li>Updated the Turkish localization file (by @NovaDiablox)</li>
1928+
<li>Grenades have icons</li>
1929+
<li>Brought <code>C4</code>, <code>defuser</code>, <code>flaregun</code>, <code>health_station</code>, <code>radio</code> weapons down from upstream (by @a7f3)</li>
1930+
<li>Updated help text for <code>C4</code>, <code>defuser</code>, <code>flaregun</code>, <code>health_station</code>, <code>radio</code>, <code>knife</code>, <code>phammer</code>, <code>push</code>, and <code>zm_carry</code> weapons (by @a7f3)</li>
1931+
<li>Brought down the <code>EFFECT</code>s: <code>crimescene_dummy</code>, <code>crimescene_shot</code>, <code>pulse_sphere</code>, <code>teleport_beamdown</code>, <code>teleport_beamup</code></li>
1932+
<li>Brought down the <code>ENT</code>s: <code>ttt_basegrenade_proj</code>, <code>ttt_carry_handler</code> (unused), <code>ttt_firegrenade_proj</code>, <code>ttt_smokegrenade_proj</code>, <code>ttt_weapon_check</code></li>
1933+
<li>Brought down the <code>SWEP</code>: <code>weapon_ttt_stungun</code></li>
1934+
<li>Brought down the menu for arming/defusing C4</li>
1935+
<li>Updated and improved Simplified Chinese translation (by @sbzlzh and @TheOnly8Z)</li>
1936+
<li>Improved Simplified Chinese translation(by @TEGTainFan)</li>
1937+
<li>Consolidated hat logic</li>
1938+
<li>Player role selection logic uses <code>Player:CanSelectRole()</code> now instead of duplicating logic</li>
1939+
<li>Role avoidance is no longer an option</li>
1940+
<li>All <code>builtin</code> weapons can now be configured to drop via <code>Edit Equipment</code> (by @EntranceJew)</li>
1941+
<li>Removed redundant checks outside of <code>SWEP:DrawHelp</code>, protected only <code>SWEP:DrawHelp</code></li>
1942+
<li>Spectator name labels now use a skin font and scaling (by @EntranceJew)</li>
1943+
<li>The built-in radar now displays distances in meters (by @TimGoll)</li>
1944+
<li>Converted <code>ttt_ragdoll_pinning</code> and <code>ttt_ragdoll_pinning_innocents</code> into per-role permissions</li>
1945+
<li>Magneto stick now allows right-clicking to instantly drop something, while left-clicking still releases/throws it</li>
1946+
<li>Magneto stick now shows tooltips respective to its current state</li>
1947+
<li>Scoreboard shows non-policing detective results, in sync with the miniscoreboard (by @EntranceJew)</li>
1948+
<li><code>ttt_flame</code> is visible while it is moving (by @EntranceJew)</li>
1949+
<li><code>ttt_flame</code>'s hurtbox is more accurate to its visuals (by @EntranceJew)</li>
1950+
<li>The built-in DNA scanner now displays distances in meters (by @TimGoll)</li>
1951+
<li>Noisy prints are now gated behind various levels of <code>developer</code> convar (by @EntranceJew)</li>
1952+
<li>Any warnings developers should fix will now print with stack traces (by @EntranceJew)</li>
1953+
<li>Changed the way the role overhead icon is rendered (by @TimGoll)</li>
1954+
<ul>
1955+
<li>It now tracks the players head position</li>
1956+
<li>Rendering order is based on distance, no more weird visual glitches</li>
1957+
<li>Hidden when observing a player in first person view</li>
1958+
</ul>
1959+
<li>Your own spectator nametag will not display when looking directly up in post-round (by @EntranceJew)</li>
1960+
<li>Made sure the last weapon is selected by default if the current weapon is removed; overwrite <code>OnRemove</code> to prevent that (by @TimGoll)</li>
1961+
<li>Changed the way weapon icon caching is working to make sure all weapons always have a cached icon material (by @TimGoll)</li>
1962+
</ul>
1963+
1964+
<h2>Fixed</h2>
1965+
<ul>
1966+
<li>Fixed database now properly saving boolean <code>false</code> values (by @ZenBre4ker)</li>
1967+
<li>Fixed cached weapons not being selected after giving them back to the owner (by @TimGoll)</li>
1968+
<li>The roundendscreen can now be closed with the correct Binding (by @ZenBre4ker)</li>
1969+
<li>Fixed last seen player being wrongly visible for every search instead of only public policing role search (by @TimGoll)</li>
1970+
<li>Fixed the crosshair being offcenter on some UI scales (by @TimGoll)</li>
1971+
<li>Fixed to wrong line calculations for wrapped text (by @NickCloudAT)</li>
1972+
<li>Fixed marks library having self zfailing and color issues (by @WardenPotato)</li>
1973+
<li>Fixed <code>IsPlayer</code> failing if a non-entity is passed to it (by @TimGoll)</li>
1974+
<li>Fixed <code>draw.Arc</code> when gmod_mcore_test is set to 1 (by @WardenPotato)</li>
1975+
<li>Fixed weapon help box width for wide bindings with short descriptions (by @TimGoll)</li>
1976+
<li>Fixed <code>GM:TTTBodySearchPopulate</code> using the wrong data variable (by @TimGoll)</li>
1977+
<li>Fixed font initialization to not trip engine font fallback behavior (by @EntranceJew)</li>
1978+
<li>Fixed the decoy producing a wrong colored icon for other teams (by @NickCloudAT)</li>
1979+
<li>Fixed the scoreboard being stuck open sometimes if the inflictor was no weapon (by @TimGoll)</li>
1980+
<li>Fixed door health displaying as a humongous string of decimals (by @EntranceJew)</li>
1981+
<li>Fixed weapons that use the wrong weapon base from throwing errors in the F1 menu (by @TimGoll)</li>
1982+
</ul>
1983+
1984+
<h2>Removed</h2>
1985+
<ul>
1986+
<li>Removed some crosshair related convars and replaced them with other ones, see the crosshair settings menu for details</li>
1987+
<li>Removed DX8/SW models that aren't used</li>
1988+
<li>Removed the convar <code>ttt_damage_own_healthstation</code> as it was inconsistent and probably unused as well</li>
1989+
<li>Removed <code>ttt_fire_fallback</code>, there's no situation where the fire shouldn't draw anymore</li>
1990+
<li>Removed <code>resource.AddFile</code> calls, server operators should use the workshop version or manually bundle loose files</li>
1991+
</ul>
1992+
1993+
<h2>Breaking Changes</h2>
1994+
<ul>
1995+
<li>Moved global shared <code>EquipmentIsBuyable(tbl, ply)</code> to <code>shop.CanBuyEquipment(ply, equipmentName)</code></li>
1996+
<ul>
1997+
<li>Returned text and result are now replaced by a statusCode</li>
1998+
</ul>
1999+
<li>No more <code>plymeta:GetAvoidRole(role)</code> or <code>plymeta:GetAvoidDetective()</code></li>
2000+
<li>Moved global <code>TEAMBUYTABLE</code> to <code>shop.teamBuyTable</code> and separated <code>BUYTABLE</code> into <code>shop.buyTable</code> and <code>shop.globalBuyTable</code></li>
2001+
<ul>
2002+
<li>Use new Accessors <code>shop.IsBoughtFor(ply, equipmentName)</code>, <code>shop.IsGlobalBought(equipmentName)</code> and <code>shop.IsTeamBoughtFor(ply, equipmentName)</code></li>
2003+
<li>Use new Setter <code>shop.SetEquipmentBought(ply, equipmentName)</code>, <code>shop.SetEquipmentGlobalBought(equipmentName)</code> and <code>shop.SetEquipmentTeamBought(ply, equipmentName)</code></li>
2004+
</ul>
2005+
</ul>
2006+
]],
2007+
os.time({ year = 2024, month = 02, day = 23 })
2008+
)
2009+
18552010
---
18562011
-- run hook for other addons to add their changelog as well
18572012
-- @realm client

gamemodes/terrortown/gamemode/shared/sh_init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GM.Name = "TTT2"
55
GM.Author = "Bad King Urgrain, Alf21, saibotk, Mineotopia, LeBroomer, Histalek, ZenBre4ker"
66
GM.Email = "[email protected]"
77
GM.Website = "ttt.badking.net, docs.ttt2.neoxult.de"
8-
GM.Version = "0.12.3b"
8+
GM.Version = "0.13.0b"
99
GM.Customized = true
1010

1111
TTT2 = true -- identifier for TTT2. Just use "if TTT2 then ... end"

0 commit comments

Comments
 (0)