add sborka

This commit is contained in:
2026-03-31 10:27:04 +03:00
commit f5e5f56c84
2345 changed files with 382127 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
include('shared.lua')
function ENT:Initialize()
end
function ENT:Think ()
end
local AttMat = Material("cable/cable")
function ENT:Draw()
local Player = self:GetOwningPlayer()
local AEnt = self:GetAttatchedEntity()
local APos = self:GetAttatchPosition()
if IsValid(AEnt) then
APos = AEnt:GetPos()
end
if IsValid(Player) then
local Bone = Player:LookupBone("ValveBiped.Bip01_R_Hand")
if Bone then
local Pos, Ang = Player:GetBonePosition(Bone)
local FPos = Pos + Ang:Forward() * 3.2 + Ang:Right() * 2 + Ang:Up() * -5
self:SetPos(FPos)
self:SetAngles(Ang)
render.SetMaterial(AttMat)
render.DrawBeam(self:GetPos(), APos, 1, 0, 0, Color(255, 255, 255, 255))
end
end
end
function ENT:OnRemove( )
end

View File

@@ -0,0 +1,23 @@
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
function ENT:Initialize()
self.Entity:SetModel("models/tobadforyou/handcuffs.mdl")
self.Entity:PhysicsInit(SOLID_NONE)
self.Entity:SetMoveType(MOVETYPE_VPHYSICS)
self.Entity:SetSolid(SOLID_NONE)
self.Entity:SetUseType(SIMPLE_USE)
end
function ENT:Use( activator, caller )
end
function ENT:Think()
end
function ENT:Touch(TouchEnt)
if self.Entity.Touched and self.Entity.Touched > CurTime() then return ; end
self.Entity.Touched = CurTime() + 1;
end

View File

@@ -0,0 +1,16 @@
ENT.Type = "anim"
ENT.Base = "base_anim"
ENT.Category = "ToBadForYou"
ENT.Spawnable = false
ENT.PrintName = "Attatch Entity"
ENT.Author = "ToBadForYou"
ENT.Contact = ""
ENT.Purpose = ""
ENT.Instructions = ""
function ENT:SetupDataTables()
self:NetworkVar("Entity", 0, "OwningPlayer")
self:NetworkVar("Entity", 1, "AttatchedEntity")
self:NetworkVar("Vector", 0, "AttatchPosition")
end