Bunch of cleaning on old todos
This commit is contained in:
@@ -49,9 +49,6 @@ local function TocManagePhantomPain(player, toc_data)
|
||||
end
|
||||
end
|
||||
|
||||
-- TODO Add phantom pain to depended parts
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -85,9 +82,9 @@ local function SetHealthStatusForBodyPart(part_data, part_name, player)
|
||||
|
||||
|
||||
-- Check for stitching
|
||||
local is_stitched = false
|
||||
local is_stitched = false -- TODO Implement this
|
||||
|
||||
|
||||
-- TODO Implement this
|
||||
|
||||
if part_data[part_name].is_cut then
|
||||
--print("TOC: Check update for " .. part_name)
|
||||
@@ -162,8 +159,6 @@ end
|
||||
local function UpdatePlayerHealth(player, part_data)
|
||||
local body_damage = player:getBodyDamage()
|
||||
|
||||
|
||||
|
||||
if player:HasTrait("Insensitive") then body_damage:setPainReduction(49) end
|
||||
|
||||
for _, part_name in pairs(GetBodyParts()) do
|
||||
@@ -251,7 +246,7 @@ local function TocUpdateEveryOneMinute()
|
||||
-- Updates toc data in a global way, basically player:transmitModData but it works
|
||||
-- Sends only Limbs since the other stuff is mostly static
|
||||
if toc_data ~= nil then
|
||||
-- TODO make it so that we dont send it constantly
|
||||
-- FIXME Send little packets instead of the whole thing?
|
||||
sendClientCommand(player, 'TOC', 'ChangePlayerState', { toc_data.Limbs } )
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user