Skip to content

Releases: TTT-2/TTT2

v0.7.3b

09 Aug 19:39
a88bfb5
Compare
Choose a tag to compare

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 and shared
    • 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/ to lua/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

26 Jun 21:42
52c2c1e
Compare
Choose a tag to compare

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) to ply: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

02 Jun 14:12
679ecb9
Compare
Choose a tag to compare

Fixed

  • Fixed max roles / max base roles interaction with the roleselection. Also does not crash with values != 0 anymore.

v0.7b

01 Jun 15:42
63ac1c9
Compare
Choose a tag to compare

Added

  • Added new convars to change the behavior of the armor
    • ttt_item_armor_block_headshots (default: 0) - Block headshots. Thanks @TheNickSkater
    • ttt_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 calling RADAR.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 them
    • ttt2_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 to ttt2net 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)

v0.6.4b

03 Apr 18:27
e98b8bd
Compare
Choose a tag to compare
v0.6.4b Pre-release
Pre-release

Added

  • Added Italian translation (thanks @PinoMartirio)

Fixed

  • Fixed TTT2 files running when the gamemode is not terrortown
  • Fixed double sprinting issues
  • Fixed Polish translation
  • Fixed convar saving by removing terrortown settings

v0.6.3b

05 Mar 17:16
Compare
Choose a tag to compare
v0.6.3b Pre-release
Pre-release

New

  • Added a Polish translation (Thanks @Wukerr)
  • Added fallback icons for equipment

Fixed

  • Fix body_found for bots
  • Fix NWVarSyncing when using TTT2NET:Set()

v0.6.2b

01 Mar 09:09
4e5492d
Compare
Choose a tag to compare
v0.6.2b Pre-release
Pre-release

Fixed

  • Increased the maximum number of roles that can be used. (Fixes weird role issues with many roles installed)

v0.6.1b

17 Feb 20:14
846b4d4
Compare
Choose a tag to compare
v0.6.1b Pre-release
Pre-release

This is a hotfix to the spawn wave interval bug

v0.6b

16 Feb 22:03
Compare
Choose a tag to compare
v0.6b Pre-release
Pre-release

New:

  • Added new weapon switch system
    • Players can now manually pick up focused weapons
    • If the slot is blocked, the current weapon is automatically dropped
    • Added new convar to prevent auto pickup: ttt_weapon_autopickup (default: 1)
  • Added new targetID system
    • Looking at entities shows now more detailed ans structured info
    • Integrated into the new weapon switch system
    • Supports all TTT entities by default
    • Supports doors
    • Added a new hook to add targetID support to custom entities: TTTRenderEntityInfo
  • Added the outline module for better performance
  • TTT2DropAmmo hook to prevent/change the ammo drop of a weapon
  • Added new HUD element: the eventpopup
  • Added a new TTT2PlayerReady hook that is called once a player is ingame and can move around
  • Added new removable decals
  • Added a new default loading screen
  • Added new convar to allow Enhanced Player Model Selector to overwrite TTT2 models: ttt_enforce_playermodel (default: 1)
  • Added new hooks to jam the chat
  • Allow any key double tap sprint
  • Regenerate sprint stamina after a delay if exhausted
  • Moved voice bindings to the TTT2 binding system (F1 menu)
  • Added new voice and text chat hooks to prevent the usage in certain situations
  • Added new client only convar (F1->Gameplay->Hold to aim) to change to a "hold rightclick to aim" mode
  • Added a new language file system for addons, language files have to be in lua/lang/<the_language>/<addon>.lua
  • New network data system including network data tables to better manage state updates on different clients

Improved:

  • Microoptimization to improve code performance
  • Improved the icon rendering for the pure_skin HUD
  • Improved multi line text rendering in the MSTACK
  • Improved role color handling
  • Improved language (german, english, russian)
  • Improved traitor buttons
    • By default only players in the traitor team can use them
    • Each role has a convar to enable traitor button usage for them - yes, innocents can use traitor buttons if you want to
    • There is an admin mode to edit each button individually
    • Uses the new targetID
  • Improved damage indicator overlay with customizability in the F1 settings
  • Improved hud help font
  • Added a new flag to items to hide them from the bodysearch panel
  • Moved missing hardcoded texts to language files

Fixed:

  • Fixed a bug with baserole initialization
  • Small other bugfixes
  • Added legacy supported for limited items
  • Fixed C4 defuse for non-traitor roles
  • Fixed radio, works now for all roles
  • Restricted huds are hidden in HUD Switcher
  • Fixed ragdoll skins (hairstyles, outfits, ...)
  • Prevent give_equipment timer to block the shop in the next round
  • Fix sprint consuming stamina when there is no move input
  • Fix confirmation of players with no team
  • Fix voice still sending after death
  • Fix persisting the reset of a bind

v0.5.7b

07 Oct 21:50
Compare
Choose a tag to compare
v0.5.7b Pre-release
Pre-release

New

  • New loadout Give/Remove functions to cleanup role code and fix item race conditions
    • Roles now always get their equipment on time
    • On role changes, old equipment gets removed first
  • New armor system
    • Armor is now displayed in the HUD
    • Previously it was a simple stacking percentual calculation, which got stupid with multiple armor effects. Three times armor items with 70% damage each resulted in 34% damage received
    • The new system has an internal armor value that is displayed in the HUD
    • It works basically the same as the vanilla system, only the stacking is a bit different
    • Reaching an armor value of 50 (by default) increases its strength
    • Armor depletes over time
  • Allowed items to be bought multiple times, if .limited is set to false

Improved

  • Dynamic loading of role icons
  • Improved performance slightly
  • Improved code consistency
  • Caching role icons in ROLE.iconMaterial to prevent recreation of icon materials
  • Improved bindings menu and added language support
  • Improved SQL module
  • Improved radar icon
  • Made parameterized overheadicon function callable
  • Improved code readability by refactoring huge parts

Fixed

  • Adjusted Role Init system
    • fixes unavailable shops for roles, that usually have one
  • Team confirmation ConVar issue in network-syncing
  • Reset radar timer on item remove, fixes problems with role changes
  • Fixed an exploitable vulnerability