Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HCFire.lua #85

Open
wants to merge 1 commit into
base: 11.2_dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions media/lua/server/HCFire.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function FindProtection(player)
head = 3;
end
end
return body, head;
return head, body;
end

function DoDamage(hBurnType, bBurnType, h, b, player)
Expand Down Expand Up @@ -63,13 +63,13 @@ function DoDamage(hBurnType, bBurnType, h, b, player)
end

if bBurnType == 0 then
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):AddDamage(5*hProt);
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):AddDamage(5*bProt);
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):setBurned();
elseif bBurnType == 1 then
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):AddDamage(10*hProt);
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):AddDamage(10*bProt);
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):setBurned();
elseif bBurnType == 2 then
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):AddDamage(15*hProt);
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):AddDamage(15*bProt);
player:getBodyDamage():getBodyPart(BodyPartType.Torso_Upper):setBurned();
elseif bBurnType == 3 and hBurnType ~= 3 then
player:setOnFire(true);
Expand Down Expand Up @@ -147,4 +147,4 @@ end

function WandFire(items, result, player)
player:setOnFire(true);
end
end