Skip to content

Commit

Permalink
Sprint: Fix stamina start value (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenBre4ker authored Dec 10, 2023
1 parent 6e2ce0a commit 164534a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gamemodes/terrortown/gamemode/shared/sh_player_ext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ function plymeta:SetupDataTables()
-- This has to be transferred, because we need the value when predicting the player movement
-- It turned out that this is the only reliable way to fix all prediction errors.
self:NetworkVar("Float", 0, "SprintStamina")

if SERVER then
self:SetSprintStamina(1)
end
end

---
Expand Down

0 comments on commit 164534a

Please sign in to comment.