Update sv_player.lua

This commit is contained in:
[TW]Rain_Bob 2023-10-08 16:33:24 +08:00 committed by GitHub
parent 0b8c55dd2a
commit cbb46fc1a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -307,7 +307,8 @@ function GM:PurchaseProp(ply, cmd, args)
local ea=ply:EyeAngles()
ea[1]=0
ea[3]=0
ent:SetAngles(-ea)
ent:SetAngles(ea)
ent:SetAngles((ent:GetForward()*-1):Angle())
ent:SetPos(tr.HitPos + Vector(0, 0, (ent:OBBCenter():Distance(ent:OBBMins()) + 5)))
ent:CPPISetOwner(ply)
ent:Spawn()