Skip to content

Commit

Permalink
stylua strikes back
Browse files Browse the repository at this point in the history
  • Loading branch information
Faramour committed Oct 30, 2023
1 parent e95967f commit c52802a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/vscripts/ZombieReborn/Infect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ function Infect(hInflictor, hInfected, bKeepPosition, bDead)

-- Asynchronously kill any utils held by the infected player AND any nades threwn by said player
local tHeldWeapons = hInfected:GetEquippedWeapons()
for _,hWeapon in ipairs(tHeldWeapons) do
for _, hWeapon in ipairs(tHeldWeapons) do
if hWeapon and hWeapon:GetClassname() ~= "weapon_knife" then
DoEntFireByInstanceHandle(hWeapon, "Kill", "", 0.02, nil, nil)
end
end

local tThrewnNades = Entities:FindAllByClassname("hegrenade_projectile")
for __,hProjectile in ipairs(tThrewnNades) do
for __, hProjectile in ipairs(tThrewnNades) do
if hProjectile and hProjectile:GetOwner() == hInfected then
DoEntFireByInstanceHandle(hProjectile, "Kill", "", 0.02, nil, nil)
end
Expand Down Expand Up @@ -76,14 +76,14 @@ function InfectMotherZombie(hInfected, bKeepPosition)

-- Asynchronously kill any utils held by the infected player AND any nades threwn by said player
local tHeldWeapons = hInfected:GetEquippedWeapons()
for _,hWeapon in ipairs(tHeldWeapons) do
for _, hWeapon in ipairs(tHeldWeapons) do
if hWeapon and hWeapon:GetClassname() ~= "weapon_knife" then
DoEntFireByInstanceHandle(hWeapon, "Kill", "", 0.02, nil, nil)
end
end

local tThrewnNades = Entities:FindAllByClassname("hegrenade_projectile")
for __,hProjectile in ipairs(tThrewnNades) do
for __, hProjectile in ipairs(tThrewnNades) do
if hProjectile and hProjectile:GetOwner() == hInfected then
DoEntFireByInstanceHandle(hProjectile, "Kill", "", 0.02, nil, nil)
end
Expand Down

0 comments on commit c52802a

Please sign in to comment.