mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-16 21:33:46 +03:00
Upload
This commit is contained in:
41
lua/entities/npc_antlionworker_burrowed/shared.lua
Normal file
41
lua/entities/npc_antlionworker_burrowed/shared.lua
Normal file
@@ -0,0 +1,41 @@
|
||||
--[[
|
||||
| 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 Antlion Worker"
|
||||
|
||||
ENT.DebugModel = "models/maxofs2d/companion_doll.mdl"
|
||||
ENT.DebugColor = Color( 0, 255, 0 )
|
||||
ENT.AmbushDist = 512
|
||||
ENT.MyClass = "npc_antlionworker_burrowed"
|
||||
ENT.ModelToPrecache = "models/antlion_worker.mdl"
|
||||
ENT.AmbusherClass = "npc_antlion"
|
||||
|
||||
function ENT:InitializeAmbusher()
|
||||
local ambusher = ents.Create( self.AmbusherClass )
|
||||
ambusher:SetPos( self:GetPos() )
|
||||
ambusher:SetAngles( self:GetAngles() )
|
||||
ambusher:SetKeyValue( "spawnflags", "262660" )
|
||||
ambusher:SetKeyValue( "startburrowed", "1" )
|
||||
ambusher:Spawn()
|
||||
ambusher:Activate()
|
||||
|
||||
return ambusher
|
||||
|
||||
end
|
||||
|
||||
function ENT:Ambush()
|
||||
self.ambusher:Fire( "unburrow", "", 0.1 )
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user