Releases: TTT-2/TTT2
Releases · TTT-2/TTT2
v0.8.0b
Added
- Added a new vgui system
- Introduced new development interfaces to easily create menues and settings for addons
- Introduced a global scale factor based on screen resolution to scale HUD elements accordingly
- Added automatical scale factor change on resolution change that works even if the resolution was changed while TTT2 wasn't loaded
- Added
drawsc
library featuring scalable draw functions - Added Drag&Drop role layering VGUI, accessible with the console command
ttt2_edit_rolelayering
- Added a new event system
- Added a cancelable hook
TTT2OnTriggeredEvent
that is called once an event is about to be added - Added a hook
TTT2AddedEvent
that is called after an event was added
- Added a cancelable hook
- Added
orm
library to simplify database access - Added French translation (by @MisterClems)
- Added a few table module functions
- Added a few LANG module functions
- Added a new classbuilder that can be used to create classes from files
- Added a
targetid
library, that can be used to draw TargetIDs for entities - Added a hook
TTT2CanTransferCredits
that is called before credits are transferred - Credits can now be transferred across teams and from roles whom the recipient does not know
Changed
- The F1 menu is completely overhauled
- Cleaned up language files, they are now identical on a line by line comparison
- Inverted some convars to have a uniform "Enable feature X", not a mixture of enable and disable
- TargetID text is now scaled with the global scale factor
- Cleaned up draw function files
- Changed several functions' scopes
- Added minimal documentation to every datastructure
- Removed C4 defuse restriction for teammates
- Moved role specific score variables into the role base
- Changed the language identifiers to generic english names
- Moved functions from sh_util into their respective library files
- Updated the list of troublesome addons used by the addonchecker
- Updated Simplified Chinese localization (by @TheOnly8Z)
- Updated Italian localization (by @ThePlatynumGhost)
- Updated English localization (by @Satton2)
- Updated Russian localization (by @scientistnt and @Satton2)
- Updated German translation (by @Creyox)
Fixed
- Fixed weapon pickup bug, where weapons would not get dropped but stayed in inventory
- Fixed a roleselection bug, where forced roles would not be deducted from the available roles
- Fixed a credit award bug, where detectives would receive a pointless notification about being awarded with 0 credits
- Fixed a karma bug, where damage would still be reduced even though the karma system was disabled
- Fixed a roleselection bug, where invalid layers led to skipping the next layer too
- Fixed Magneto Stick ragdoll pinning instructions not showing for innocents when
ttt_ragdoll_pinning_innocents
is enabled - Fixed a bug where the targetID info broke if the pickup key is unbound
v0.7.4b
Added
- Added ConVar to toggle double-click buying
- Added Japanese translation (by @Westoon)
- Added
table.ExtractRandomEntry(tbl, filterFn)
function - Added a team indicator in front of every name in the scoreboard (just known teams will be displayed)
- Added a hook
TTT2ModifyCorpseCallRadarRecipients
that is called once "call detective" is pressed
Changed
- The weapon pickup system has been improved to increase stability and remove edge cases in temporary weapon teleportation
- Updated Spanish translation (by @DennisWolfgang)
Fixed
- Fixed foregoing fetch fix
- Fixed HUD savingKeys variable not being unique across all HUDs
- Fixed drawing web images, seamless web images and avatar images
- Fixed correctly saving setting a bind to NONE, while a default is defined
- Fixed a weapon pickup targetID bug where the +use key was displayed even though pickup has its own keybind
- Fixed DNA scanner crash if using an old/different weapon base
- Fixed rare initialization bug in the speed calculation when joining as a spectator
v0.7.3b
Added
- Added a new custom file loader that loads lua files from
lua/terrortown/autorun/
- it basically works the same as the native file loader
- there are three subfolders:
client
,server
andshared
- the files inside this folder are loaded after all TTT2 gamemode files and library extensions are loaded
- Added Spanish version for base addon (by @Tekiad and @DennisWolfgang)
- Added Chinese Simplified translation (by @TheOnly8Z)
- Added double-click buying
- Added a default avatar for players and an avatar for bots
Changed
- Roles are now only getting synced to clients if the role is known, not just the body being confirmed
- Airborne players can no longer replenish stamina
- Detective overhead icon is now shown to innocents and traitors
- moved language files from
lua/lang/
tolua/terrortown/lang
- Stopped teleporting players to players they're not spectating if they press the "duck"-Key while roaming
- Moved shop's equipment list generation into a coroutine
- Removed TTT2PlayerAuthedCacheReady hook
- Internal changes to the b-draw library for fetching avatars
Fixed
- Fixed death handling spawning multiple corpses when killed multiple times in the same frame
- Radar now shows bombs again, that do not have the team property set
- Fix HUDManager not saving forcedHUD and defaultHUD values
- Fixed wrong parameter default in
EPOP:AddMessage
documentation - Fixed shop switching language issue
- Fixed shop refresh activated even not buyable equipments
- Fixed wrong shop view displayed as forced spectator
v0.7.2b
Added
- Added Hooks to the targetID system to modify the displayed data
GM:TTTModifyTargetedEntity(ent, distance)
: Modify the entity that is targeted. This is useful for addons like an "Identity Disguiser".
- Added Hooks to interact with door destruction
GM:TTT2BlockDoorDestruction(doorEntity, activator)
: Hook to block the door destruction.GM:TTT2DoorDestroyed(doorPropEntity, activator)
: Hook that is called after the door is destroyed.
- Added a new function to force a new radar scan:
ply:ForceRadarScan()
- Added a new convar to change the default radar time for players without custom radar times:
ttt2_radar_charge_time
- Added a new client ConVar
ttt_crosshair_lines
to add the possibility to disable the crosshair lines
Changed
- Moved the disguiser icon to the status system to be only displayed when the player is actually disguised
- Reworked the addonchecker and added a command to execute the checker at a later point
- Renamed
RADAR.SetRadarTime(ply, time)
toply:SetRadarTime(time)
- Updated Italian translation (Thanks @ThePlatinumGhost)
- Removed Is[ROLE] functions of all roles except default TTT ones
- Moved legacy item initialization to the
items
module (items.MigrateLegacyItems()
) - ttt_end_round now resets when the map changes
- Reworked the SWEP HUD help (legacy function SWEP:AddHUDHelp is still supported)
- allows any number of lines now
- visualization of the respective key
- Players who disconnect now leave a corpse
Fixed
- Fixed shadow texture of the "Pure Skin HUD" for low texture quality settings
- Fixed inno subrole upgrading if many roles are installed
- Fixed and improved the radar role/team modification hook
- Fixed area portals on servers for destroyed doors
- Fixed revive fail function reference reset
- Removed the DNA Scanner hudelement for spectators
- Fixed a rare clientside error that happens if a player connects in the moment the preparing time just started
- Fixed the image in the confirmation notification whenever a bot's corpse gets identified
- Fixed bad role selection due to RNG reseeding
- Fixed missing role column translation
- Fixed viewmodel not showing correct hands on model change
v0.7.1b
v0.7b
Added
- Added new convars to change the behavior of the armor
ttt_item_armor_block_headshots (default: 0)
- Block headshots. Thanks @TheNickSkaterttt_item_armor_block_blastdmg (default: 0)
- Block blast damage. Thanks @Pustekuchen98
- Added essential items: 8 different types of items that are often used in other addons. You can remove them from the shop if you don't like them.
- Added server proxy for
EPOP:AddMessage()
- Added
PrintMessage
overwrites so this function now uses TTT2 systems - Added a new HUD element to show information about an ongoing revival to the player that is revived
- Added a load of functions to the
spawn
scope that can be used by addons - Added a thermal vision module, which can be used by addons to render entities with a thermal vision effect
- Added a few door related hooks and convenience functions
- Added entityOutputs library to register map entity outputs easier
- Added speed handling system based on the
TTTPlayerSpeedModifier
hook - Added a convenience function for the creation of radar points:
RADAR.CreateTargetTable(ply, pos, ent, color)
- Added the possibility to change the radar time by either setting
ROLE.radarTime
or callingRADAR.SetRadarTime(ply, time)
- Added two new convars to change the confirmation behaviour
ttt2_confirm_detective_only (default: 0)
- Everybody can search the corpse, but only detectives can confirm themttt2_inspect_detective_only (default: 0)
- Only detectives can search and confirm corpses
Changed
- Added Infinity Gauntlet SEWP to buggy addons list (interferes with the sprinting system)
- Remove GetWeapons and HasWeapon overrides (see Facepunch/garrysmod#1648)
- Improved role module to also use
isAbstract
instead of a base role class name - Migrated the HUDManager settings to the new network sync system
- Renamed
TTT2NET
tottt2net
and removed unnecessary self references - The
ttt2net
library can now also synchronize small to medium sized tables (adds the metadata type "table") - Reworked the old DNA Scanner
- New world- and viewmodel with an interactive screen
- Removed the overcomplicated UI menu (simple handling with default keys instead)
- The new default scanner behavior shows the direction and distance to the target
- Changed TargetID colors for confirmed bodies
- Improved the
plymeta:Revive()
function- Added a revive position argument
- revive makes now sure the position is valid and the player is not stuck in the wall
- Improved the player spawn handling
- Moved radar handling from client to server
- Reworked the event popup
- texts can now be blocking or non blocking
- there's now a popup queue
- popups are now also shown to dead players as well
- Refactored the role selection code to reside in its own module and cleaned up the code
- Refactored some internal functions in CLSCORE to prevent errors (thanks @Kefta)
- Moved CLSCORE event report syncing to the new net.SendStream / net.ReceiveStream functions
Fixed
- Fixed round info (the top panel) being displayed in other HUDs
- Fix GetEyeTrace override (see Facepunch/garrysmod#1647)
- Fixed an error with the pickup system in singleplayer
- Fixed propsurfing with the magneto stick
- Fixed healthstation TargetID text
- Fixed keyinfo for doors where no key can be used
- Spawn points that have no solid ground beneath will be ignored
- Fixed role selection issues with subroles not properly replacing their baserole etc.
- Fixed map lock/unlock trigger of doors not updating targetID
- Fixed roles having sometimes the wrong radar color
- Fixed miniscoreboard update issue and players not getting shown when entering force-spec mode
- Fixed the CLSCORE window being too small for large winning team titles (will now adjust on demand)