mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
28
lua/entities/lvs_base/sv_cppi.lua
Normal file
28
lua/entities/lvs_base/sv_cppi.lua
Normal file
@@ -0,0 +1,28 @@
|
||||
--[[
|
||||
| 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 ENT:StoreCPPI( owner )
|
||||
self._OwnerEntLVS = owner
|
||||
end
|
||||
|
||||
function ENT:TransferCPPI( target )
|
||||
if not IsEntity( target ) or not IsValid( target ) then return end
|
||||
|
||||
if not CPPI then return end
|
||||
|
||||
local Owner = self._OwnerEntLVS
|
||||
|
||||
if not IsEntity( Owner ) then return end
|
||||
|
||||
if IsValid( Owner ) then
|
||||
target:CPPISetOwner( Owner )
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user