Prevented being able to crouch jump through barricades
The player stops moving on the first instance of ghosting.
This commit is contained in:
parent
6b4a310373
commit
9c13ad1eeb
1 changed files with 8 additions and 2 deletions
|
@ -421,8 +421,14 @@ function meta:ShouldBarricadeGhostWith(ent)
|
|||
end
|
||||
|
||||
function meta:BarricadeGhostingThink()
|
||||
if self:KeyDown(IN_ZOOM) or self:ActiveBarricadeGhosting() then return end
|
||||
|
||||
if self:KeyDown(IN_ZOOM) or self:ActiveBarricadeGhosting() then
|
||||
if self.FirstGhostThink then
|
||||
self:SetLocalVelocity( Vector( 0, 0, 0 ) )
|
||||
self.FirstGhostThink = false
|
||||
end
|
||||
return
|
||||
end
|
||||
self.FirstGhostThink = true
|
||||
self:SetBarricadeGhosting(false)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue