mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
disable blindness toggle
This commit is contained in:
parent
7c83d48f71
commit
7d4c3c918a
1 changed files with 7 additions and 7 deletions
|
@ -388,13 +388,13 @@ function SWEP:Reload()
|
||||||
if not TUTORIALMODE and CurTime() > self.RespawnDelay and self:GetOwner():GetClimbing() == 0 and not IsValid(self:GetOwner():GetSwingbar()) and not self:GetOwner().BuildMode then
|
if not TUTORIALMODE and CurTime() > self.RespawnDelay and self:GetOwner():GetClimbing() == 0 and not IsValid(self:GetOwner():GetSwingbar()) and not self:GetOwner().BuildMode then
|
||||||
self:GetOwner():Spawn()
|
self:GetOwner():Spawn()
|
||||||
|
|
||||||
if self:GetOwner():KeyDown(IN_USE) then
|
-- if self:GetOwner():KeyDown(IN_USE) then
|
||||||
if game.SinglePlayer() then
|
-- if game.SinglePlayer() then
|
||||||
RunConsoleCommand("toggleblindness")
|
-- RunConsoleCommand("toggleblindness")
|
||||||
elseif CLIENT then
|
-- elseif CLIENT then
|
||||||
ToggleBlindness(not blinded)
|
-- ToggleBlindness(not blinded)
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
|
|
||||||
self.RespawnDelay = CurTime() + 0.5
|
self.RespawnDelay = CurTime() + 0.5
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue