zombiesurvival-evolved/gamemodes/zombiesurvival/entities/entities/prop_prop_blocker.lua
William Moodhe e9da54c2f9 ZS updates for 2014-2018
Too many changes to list.
2018-05-01 18:32:59 -04:00

32 lines
665 B
Lua

AddCSLuaFile()
ENT.Type = "anim"
ENT.IgnoreMelee = true
ENT.IgnoreBullets = true
ENT.IgnoreTraces = true
ENT.Sigil = true
function ENT:Initialize()
self:DrawShadow(false)
self:SetNoDraw(true)
if SERVER then
self:PhysicsInitBox(Vector(-20, -20, 0), Vector(20, 20, 86))
end
self:SetCustomCollisionCheck(true)
self:CollisionRulesChanged()
--self:SetCollisionGroup(COLLISION_GROUP_DEBRIS)
if SERVER then
local phys = self:GetPhysicsObject()
if phys:IsValid() then
phys:EnableMotion(false)
end
end
end
function ENT:ShouldNotCollide(ent)
return --[[ent:GetCollisionGroup() ~= COLLISION_GROUP_NONE or]] ent:IsPlayer() or ent:IsProjectile()
end