aboutsummaryrefslogtreecommitdiff
path: root/entities
diff options
context:
space:
mode:
Diffstat (limited to 'entities')
-rw-r--r--entities/entities/ws_npc_ambient/shared.lua8
-rw-r--r--entities/entities/ws_researchtable/init.lua6
2 files changed, 9 insertions, 5 deletions
diff --git a/entities/entities/ws_npc_ambient/shared.lua b/entities/entities/ws_npc_ambient/shared.lua
index c4a91cf..e2f02ec 100644
--- a/entities/entities/ws_npc_ambient/shared.lua
+++ b/entities/entities/ws_npc_ambient/shared.lua
@@ -35,6 +35,10 @@ function ENT:DefaultBehaviour()
local maxprioritytarget = nil
for k,v in pairs(self.AwareEnemies) do
local priority = self:AttackPriority(v)
+ if(priority == nil) then
+ print("Nill priority hit after ")
+ PrintTable(self)
+ end
if(priority > maxpriority) then
maxpriority = priority
maxprioritytarget = v
@@ -59,7 +63,9 @@ function ENT:DefaultBehaviour()
end
end
if(closest > 4000) then
- --print("Closes player is " .. closest .. " removeing self...") self:BecomeRagdoll(DamageInfo()) end
+ print("Closes player is " .. closest .. " removeing self...")
+ self:BecomeRagdoll(DamageInfo())
+ end
else
--We have a target to attack!
diff --git a/entities/entities/ws_researchtable/init.lua b/entities/entities/ws_researchtable/init.lua
index 64596e4..f45ca61 100644
--- a/entities/entities/ws_researchtable/init.lua
+++ b/entities/entities/ws_researchtable/init.lua
@@ -5,8 +5,6 @@ include('shared.lua')
--[[An item to give hints to players that are just starting out]]
local PossibleRecipies = {
- [1] = { [0]="Arrow",
- [1]="Rock, Flint, Sap, and Wood"},
[2] = { [0]="Barrel",
[1]="Planks and Sap"},
[3] = { [0]="Fence",
@@ -23,8 +21,8 @@ local PossibleRecipies = {
[1]="Wood, Rock, and Sap"},
[9] = { [0]="Stoneblock",
[1]="Rock and Sap"},
- [10] = { [0]="Arrow",
- [1]="Rock, Flint, Sap, and Wood"},
+ [11] = { [0]="Vine",
+ [1]="Hitting an Antlion hill with a Sickle"},
}
function ENT:Initialize()