Skip to content

Commit 8c486d0

Browse files
WardenPotatoTimGollHistalek
authored
Rework the outline library and fix the outstanding issues with it (#1628)
Its finally here, the rework of the outline library which started because of #1411 Ive spent quite some time on this trying over 50 different approaches, running into various setbacks each time. Some of them got solved: Facepunch/garrysmod-issues#5744 And some didnt: Facepunch/garrysmod-requests#2308 But this is what i consider the best thats possible in gmod today in respect to functionality and performance. This rework includes(i may have forgotten some, its been a while): - A switch to using the zbuffer instead of line of sight checking every single entity - Outline thickness option - Multiple render types for outlines - More performant drawing - Drawing not breaking when scopes are used in weapon addons - Full documentation - Fixed outlines being thinner on one side than the other The comments in the code explain a lot so i hope those answer most questions. --------- Co-authored-by: Tim Goll <[email protected]> Co-authored-by: Histalek <[email protected]>
1 parent 64a2c8a commit 8c486d0

File tree

2 files changed

+330
-89
lines changed

2 files changed

+330
-89
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
1616
- Added option to enable team name next to role name on the HUD (by @milkwxter)
1717
- Added score event for winning with configurable role parameter (by @MrXonte)
1818
- Added ExplosiveSphereDamage game effect for easy calculation of explosion damage through walls (by @MrXonte)
19+
- Added support for outlines of different thickness (by @Wardenpotato)
1920

2021
### Fixed
2122

@@ -42,6 +43,8 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
4243
- Fixed issue in new Ammo dropping that could cause an error when dropping for modified weapon bases. (by @MrXonte)
4344
- Fixed C4 not showing the correct inflictor when the player is killed (by @TimGoll)
4445
- Fixed M16 Ironsight misalignment (by @SvveetMavis)
46+
- Fixed outline interactions with certain weapon scopes (by @WardenPotato)
47+
- Fixed outlines not rendering uniformly (by @WardenPotato)
4548

4649
### Changed
4750

0 commit comments

Comments
 (0)