Also apply velocity to view entity in third person.

master
Icedream 2014-10-20 11:30:37 +02:00
parent 0d59d285d1
commit 2cf2fbe95a
1 changed files with 2 additions and 1 deletions

View File

@ -316,6 +316,7 @@ function SWEP:EnableThirdPerson(player)
entity:SetModel(player:GetModel())
entity:Spawn()
entity:SetAngles(player:GetAngles())
entity:SetVelocity(player:GetVelocity())
entity:SetMoveType(MOVETYPE_NONE)
entity:SetParent(player)
entity:SetOwner(player)