some cleaning and a fix
@@ -6,5 +6,5 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\metal</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_base</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,5 +6,5 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\metal</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_base</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,5 +6,5 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\wood</textureChoices>
|
||||
<textureChoices>Prosthesis\wood_base</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,5 +6,5 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\metal</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_base</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -7,6 +7,6 @@
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<m_Masks>4</m_Masks>
|
||||
<textureChoices>Clothes\metal_male</textureChoices>
|
||||
<textureChoices>Clothes\metal_female</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_hook_male</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_hook_female</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,6 +6,6 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\wood_male</textureChoices>
|
||||
<textureChoices>Clothes\wood_female</textureChoices>
|
||||
<textureChoices>Prosthesis\wood_hook_male</textureChoices>
|
||||
<textureChoices>Prosthesis\wood_hook_female</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,5 +6,5 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\metal</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_base</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,5 +6,5 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\metal</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_base</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,5 +6,5 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\wood</textureChoices>
|
||||
<textureChoices>Prosthesis\wood_base</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,5 +6,5 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\metal</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_base</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,6 +6,6 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\metal_male</textureChoices>
|
||||
<textureChoices>Clothes\metal_female</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_hook_male</textureChoices>
|
||||
<textureChoices>Prosthesis\metal_hook_female</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -6,6 +6,6 @@
|
||||
<m_Static>false</m_Static>
|
||||
<m_AllowRandomHue>false</m_AllowRandomHue>
|
||||
<m_AllowRandomTint>false</m_AllowRandomTint>
|
||||
<textureChoices>Clothes\wood_male</textureChoices>
|
||||
<textureChoices>Clothes\wood_female</textureChoices>
|
||||
<textureChoices>Prosthesis\wood_hook_male</textureChoices>
|
||||
<textureChoices>Prosthesis\wood_hook_female</textureChoices>
|
||||
</clothingItem>
|
||||
@@ -64,6 +64,18 @@ local function SetHealthStatusForBodyPart(part_data, part_name, player)
|
||||
|
||||
-- TODO Implement this
|
||||
|
||||
if part_data[part_name].is_cut then
|
||||
|
||||
-- if the player gets attacked and damaged in a cut area we have to reset it here since it doesn't make any sense
|
||||
-- this is using map 1:1, so it doesn't affect the wound caused by the amputation
|
||||
body_part:setBleeding(false);
|
||||
body_part:setDeepWounded(false)
|
||||
body_part:setBleedingTime(0)
|
||||
body_part:setDeepWoundTime(0)
|
||||
body_part:SetBitten(false)
|
||||
body_part:setBiteTime(0)
|
||||
part_data.is_infected = false
|
||||
|
||||
|
||||
-- Set max health for body part
|
||||
if part_data[part_name].is_cicatrized and body_part:getHealth() > 80 then
|
||||
@@ -72,8 +84,9 @@ local function SetHealthStatusForBodyPart(part_data, part_name, player)
|
||||
body_part:SetHealth(40)
|
||||
end
|
||||
|
||||
|
||||
-- Cicatrization check
|
||||
if part_data[part_name].is_cut and not part_data[part_name].is_cicatrized then
|
||||
if not part_data[part_name].is_cicatrized then
|
||||
if part_data[part_name].cicatrization_time < 0 then
|
||||
part_data[part_name].is_cicatrized = true
|
||||
|
||||
@@ -109,8 +122,7 @@ local function SetHealthStatusForBodyPart(part_data, part_name, player)
|
||||
end
|
||||
|
||||
-- TODO Add phantom pain to depended parts
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 208 B |
|
Before Width: | Height: | Size: 549 B |
|
Before Width: | Height: | Size: 782 B |
BIN
media/textures/Prosthesis/metal_base.png
Normal file
|
After Width: | Height: | Size: 106 KiB |
BIN
media/textures/Prosthesis/metal_hook_female.png
Normal file
|
After Width: | Height: | Size: 127 KiB |
BIN
media/textures/Prosthesis/metal_hook_male.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
media/textures/Prosthesis/wood_base.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
media/textures/Prosthesis/wood_hook_female.png
Normal file
|
After Width: | Height: | Size: 123 KiB |
BIN
media/textures/Prosthesis/wood_hook_male.png
Normal file
|
After Width: | Height: | Size: 113 KiB |