Merge branch 'master' into modular_prosthetics

This commit is contained in:
Pao
2023-02-06 20:35:34 +01:00
33 changed files with 360 additions and 724 deletions

View File

@@ -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
@@ -253,7 +248,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