mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
33 lines
679 B
Lua
33 lines
679 B
Lua
--[[
|
|
| This file was obtained through the combined efforts
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
|
|
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
|
|
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
|
--]]
|
|
|
|
|
|
function gmsave.PlayerSave( ent )
|
|
|
|
local tab = {}
|
|
|
|
tab.Origin = ent:GetPos()
|
|
tab.Angle = ent:GetAimVector():Angle()
|
|
tab.MoveType = ent:GetMoveType()
|
|
|
|
return tab
|
|
|
|
end
|
|
|
|
function gmsave.PlayerLoad( ent, tab )
|
|
|
|
if ( tab == nil ) then return end
|
|
|
|
if ( tab.Origin ) then ent:SetPos( tab.Origin ) end
|
|
if ( tab.Angle ) then ent:SetEyeAngles( tab.Angle ) end
|
|
if ( tab.MoveType ) then ent:SetMoveType( tab.MoveType ) end
|
|
|
|
end
|