diff options
Diffstat (limited to 'entities')
| -rw-r--r-- | entities/entities/ws_npc_ambient/init.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/entities/entities/ws_npc_ambient/init.lua b/entities/entities/ws_npc_ambient/init.lua index ee39178..485b6c9 100644 --- a/entities/entities/ws_npc_ambient/init.lua +++ b/entities/entities/ws_npc_ambient/init.lua @@ -5,7 +5,7 @@ AddCSLuaFile( "shared.lua" ) include('shared.lua')
function ENT:Initialize()
- print("NPC spawned!")
+ --print("NPC spawned!")
if(self.Model) then self:SetModel(self.Model)
else print("NPC created without model, this might be a bug!") end
--self:SetModel( "models/Humans/Group01/Female_01.mdl" )
@@ -23,21 +23,21 @@ function ENT:Initialize() end
function ENT:OnInjured(dmg)
- print("Taking some dammage")
+ --print("Taking some dammage")
local itempos = self:GetPos()
self:SetHealth(self:Health() - dmg:GetDamage())
if self.OnDammage != nil then self:OnDammage(dmg) end
if self:Health() <= 0 then //run on death
if(CLIENT) then return end
if not self.Drops then return end
- print("Looks like we have some drops")
+ --print("Looks like we have some drops")
local rng = math.random(0,100)
for k,v in pairs(self.Drops) do
local itemname = self.Drops[k][1]
local itemchance = self.Drops[k][2]
local heightoffset = 10
if rng < itemchance then
- print("Createing a " .. itemname)
+ --print("Createing a " .. itemname)
local drop = ents.Create("ws_item")
drop.Item = GetItemByName(itemname)
drop:SetModel(drop.Item.Model)
|
