File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed
lua/terrortown/entities/roles/medic Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -672,14 +672,7 @@ if CLIENT then
672
672
if plo6_1 == nil then plo6_1 = 5 end
673
673
-- nil check plo6_2
674
674
if plo6_2 == nil then plo6_2 = false end
675
- -- local med_mediccount = 0
676
- -- getting all medics and saving them in a variable
677
- -- local plys = select(2, player.Iterator())
678
- -- for i = 1, #plys do
679
- -- ply = plys[i]
680
- -- if ply:GetSubRole() == ROLE_MEDIC then med_mediccount = med_mediccount + 1 end
681
- -- end
682
- med_mediccount = UpdateMedicCount ()
675
+ med_mediccount = UpdateMedicCount () -- getting all medics and saving them in a variable
683
676
-- several checks to check if revival is required to win and if there are more than one medic
684
677
if plo6_2 and med_mediccount == 1 then
685
678
EPOP :AddMessage ({
@@ -714,14 +707,7 @@ if CLIENT then
714
707
plo7 = net .ReadInt (32 ) -- reading the written int
715
708
-- nil check plo7
716
709
if plo7 == nil then plo7 = 5 end
717
- -- local med_mediccount = 0
718
- -- getting all medics and saving them in a variable
719
- -- local plys = select(2, player.Iterator())
720
- -- for i = 1, #plys do
721
- -- ply = plys[i]
722
- -- if ply:GetSubRole() == ROLE_MEDIC then med_mediccount = med_mediccount + 1 end
723
- -- end
724
- med_mediccount = UpdateMedicCount ()
710
+ med_mediccount = UpdateMedicCount () -- getting all medics and saving them in a variable
725
711
-- several checks to check if there are more than one medic
726
712
if med_mediccount == 1 then
727
713
EPOP :AddMessage ({
You can’t perform that action at this time.
0 commit comments