@@ -1409,12 +1409,12 @@ local function CacheSpawnPly(pPly)
14091409 end ; return plyData
14101410end
14111411
1412- function ClearCachePly (pPly )
1412+ function CacheClearPly (pPly )
14131413 if (not IsPlayer (pPly )) then
1414- return StatusLog (false ," ClearCachePly : Player <" .. tostring (pPly )" > invalid" ) end
1414+ return StatusLog (false ," CacheClearPly : Player <" .. tostring (pPly )" > invalid" ) end
14151415 local plyPlace = libPlayer [pPly ]
14161416 if (not IsExistent (plyPlace )) then
1417- return StatusLog (true ," ClearCachePly : Clean" ) end
1417+ return StatusLog (true ," CacheClearPly : Clean" ) end
14181418 plyTable [pPly ] = nil ; collectgarbage (); return true
14191419end
14201420
@@ -1432,7 +1432,7 @@ function CacheRadiusPly(pPly, vHit, nSca)
14321432 if (not IsExistent (plyData )) then
14331433 LogInstance (" CacheRadiusPly: Malloc <" .. pPly :Nick ().. " >" )
14341434 plyPlace [" RADIUS" ] = {}; plyData = plyPlace [" RADIUS" ]
1435- plyData [" MAR" ] = (GetOpVar (" GOLDEN_RATIO" ) * 1000 ),
1435+ plyData [" MAR" ] = (GetOpVar (" GOLDEN_RATIO" ) * 1000 )
14361436 plyData [" LIM" ] = ((GetOpVar (" GOLDEN_RATIO" ) - 1 ) * 100 )
14371437 end
14381438 local nMul = (tonumber (nSca ) or 1 ) -- Disable scaling on missing or outside
@@ -1447,7 +1447,7 @@ function CacheTracePly(pPly)
14471447 local plyPlace = GetPlacePly (pPly )
14481448 if (not IsExistent (plyPlace )) then
14491449 return StatusLog (nil ," CacheTracePly: Place missing" ) end
1450- local plyData = plyPlace [" TRACE" ]
1450+ local plyData , plyTime = plyPlace [" TRACE" ], Time ()
14511451 if (not IsExistent (plyData )) then -- Define trace delta margin
14521452 LogInstance (" CacheTracePly: Malloc <" .. pPly :Nick ().. " >" )
14531453 plyPlace [" TRACE" ] = {}; plyData = plyPlace [" TRACE" ]
@@ -2863,7 +2863,7 @@ function GetEntitySpawn(oPly,trEnt,trPivot,hdPivot,hdModel,enIgnTyp,enOrAngTr,
28632863 -- Calculate the origin based on the center
28642864 stSpawn .OPos :Set (stSpawn .TPnt ); stSpawn .OPos :Add (stSpawn .TMas )
28652865 stSpawn .OAng :Set (stSpawn .TAng ); stSpawn .OAng :RotateAroundAxis (stSpawn .TAng :Right (),trRec .Rake )
2866- return GetNormalSpawn (nil ,nil ,hdModel ,hdPivot ,enOrAngTr ,ucsPosX ,ucsPosY ,ucsPosZ ,ucsAngP ,ucsAngY ,ucsAngR )
2866+ return GetNormalSpawn (oPly , nil ,nil ,hdModel ,hdPivot ,enOrAngTr ,ucsPosX ,ucsPosY ,ucsPosZ ,ucsAngP ,ucsAngY ,ucsAngR )
28672867end
28682868
28692869local function GetEntityOrTrace (oEnt )
0 commit comments