Skip to content

Commit

Permalink
remove needless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Faramour committed Oct 30, 2023
1 parent eea9f86 commit 789808b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/vscripts/ZombieReborn/Infect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ function Infect(hInflictor, hInfected, bKeepPosition, bDead)
hInfected:SetTeam(CS_TEAM_T)

-- Asynchronously kill any utils held by the infected player AND any nades threwn by said player
-- Issue: cooking a grenade and getting infected lets you hold that grenade
-- while being a zombie, which bypasses grenade-killing in the OnItemEquip
-- Issue 2: Cooking a grenade and getting infected causes you to drop the grenade, which then can damage humans
local tHeldWeapons = hInfected:GetEquippedWeapons()
for _,hWeapon in ipairs(tHeldWeapons) do
if hWeapon and hWeapon:GetClassname() ~= "weapon_knife" then
Expand Down Expand Up @@ -77,7 +74,7 @@ function InfectMotherZombie(hInfected, bKeepPosition)
hInfected:SetTeam(CS_TEAM_NONE)
hInfected:SetTeam(CS_TEAM_T)

-- Same thing as in Infect() @ tHeldWeapons
-- 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
if hWeapon and hWeapon:GetClassname() ~= "weapon_knife" then
Expand Down

0 comments on commit 789808b

Please sign in to comment.