TTT-2 / TTT2

Trouble in Terrorist Town 2 for Garry's Mod (gmod)
https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556
178 stars 74 forks source link

sprint stamina improvement #363

Closed Alf21 closed 5 years ago

Alf21 commented 5 years ago

We should think about a referenced value too (to support multiple hooking, see https://github.com/TTT-2/TTT2/blob/da4b418dfad7111eb0526b95c353bc497c594f36/gamemodes/terrortown/gamemode/shared/sh_main.lua#L56). There are two ways: using a table as a param like in this link as a reference (noLag param) or using a player object stored var (e.g. ply.staminaRegenMult, see https://github.com/Alf21/ttt2-item_speedrun/blob/master/lua/terrortown/entities/items/item_ttt_speedrun.lua#L21 => ply.speedrun_mul)

Originally posted by @Alf21 in https://github.com/TTT-2/TTT2/pull/362#issuecomment-514641085

Alf21 commented 5 years ago

Done