- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
if self.Weapon:GetNextPrimaryFire() < CurTime() then
if GetConVarNumber( "ma2_togglechargeui" ) == 1 then
if (self.Charge-self.DmgMin)/self.DmgMax*100<=10 then
ply:SetNWString("chargebar","██")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100<=20 then
ply:SetNWString("chargebar","████")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100<=30 then
ply:SetNWString("chargebar","██████")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100<=40 then
ply:SetNWString("chargebar","████████")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100<=50 then
ply:SetNWString("chargebar","██████████")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100<=60 then
ply:SetNWString("chargebar","████████████")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100<=70 then
ply:SetNWString("chargebar","██████████████")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100<=80 then
ply:SetNWString("chargebar","████████████████")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100<=90 then
ply:SetNWString("chargebar","██████████████████")
elseif (self.Charge-self.DmgMin)/(self.DmgMax-self.DmgMin)*100>90 then
ply:SetNWString("chargebar","████████████████████")
ply:SetNWBool("chargemaxxxed",true)
end
end
end
https://steamcommunity.com/sharedfiles/filedetails/?id=1825542758