This commit is contained in:
lifestorm
2024-08-04 23:54:45 +03:00
parent 0e770b2b49
commit df294d03aa
7526 changed files with 4011945 additions and 15 deletions

View File

@@ -0,0 +1,50 @@
--[[
| 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/
--]]
AddCSLuaFile()
ENT.Base = "npc_antlion_burrowed"
ENT.Type = "anim"
ENT.PrintName = "Burrowed Caveguard"
ENT.DebugModel = "models/maxofs2d/balloon_gman.mdl"
ENT.DebugColor = Color( 0, 150, 0 )
ENT.AmbushDist = 1000
ENT.MyClass = "npc_caveguard_burrowed"
ENT.ModelToPrecache = "models/antlion_guard.mdl"
ENT.AmbusherClass = "npc_antlionguard"
ENT.HintSoundChance = 10
function ENT:InitializeAmbusher()
local ambusher = ents.Create( self.AmbusherClass )
ambusher:SetPos( self:GetPos() )
ambusher:SetAngles( self:GetAngles() )
ambusher:SetKeyValue( "spawnflags", "4" )
ambusher:SetKeyValue( "startburrowed", "1" )
ambusher:SetKeyValue( "allowbark", "1" )
ambusher:SetKeyValue( "incavern", "1" )
ambusher:SetKeyValue( "cavernbreed", "1" )
ambusher:Spawn()
ambusher:Activate()
return ambusher
end
function ENT:Ambush()
self.ambusher:Fire( "unburrow", "", 0.1 )
end
function ENT:PostSetupData()
self:SetWakeNearTeammates( true )
end