aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-03-13 18:17:27 -0400
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-03-13 18:17:27 -0400
commit65016498e2ca0e87ad0617ecdfa0a2dce2cd1404 (patch)
tree1f816d39717b6162826025acbe52ece8d8148882
parent9d4ff294129545d7266f03cd51135d43e1c47967 (diff)
downloadwintersurvival2-65016498e2ca0e87ad0617ecdfa0a2dce2cd1404.tar.gz
wintersurvival2-65016498e2ca0e87ad0617ecdfa0a2dce2cd1404.tar.bz2
wintersurvival2-65016498e2ca0e87ad0617ecdfa0a2dce2cd1404.zip
Removed most of the print messages spamming console
-rw-r--r--entities/entities/ws_npc_ambient/init.lua5
-rw-r--r--entities/entities/ws_npc_ambient/shared.lua8
-rw-r--r--entities/entities/ws_projectile/init.lua4
-rw-r--r--gamemode/itemsystem/items/bow.lua4
-rw-r--r--gamemode/npcsystem/npcs/antlion1.lua2
-rw-r--r--gamemode/npcsystem/npcs/antlion2.lua2
-rw-r--r--gamemode/npcsystem/npcs/antlion3.lua4
-rw-r--r--gamemode/npcsystem/npcs/antlion4.lua2
-rw-r--r--gamemode/npcsystem/npcs/bird.lua2
-rw-r--r--gamemode/npcsystem/npcs/zombie.lua2
-rw-r--r--gamemode/server/damagemod.lua2
11 files changed, 18 insertions, 19 deletions
diff --git a/entities/entities/ws_npc_ambient/init.lua b/entities/entities/ws_npc_ambient/init.lua
index 1f08884..64274e2 100644
--- a/entities/entities/ws_npc_ambient/init.lua
+++ b/entities/entities/ws_npc_ambient/init.lua
@@ -18,7 +18,6 @@ function ENT:Initialize()
end
if(self.Stats["Vitality"]) then
self:SetHealth(self.Stats["Vitality"])
- print("Helath set to " .. self.Stats["Vitality"])
else print("NPC created with no stat for vitality, this might be a bug!")end
if(self.Stats["Accel"]) then self.loco:SetAcceleration(self.Stats["Accel"])end
if(self.Stats["Decel"]) then self.loco:SetDeceleration(self.Stats["Decel"]) end
@@ -41,9 +40,9 @@ end
function ENT:OnInjured(dmg)
--print("Taking some dammage")
local itempos = self:GetPos()
- print("Takeing " .. dmg:GetDamage() .. " health from our " .. self:Health())
+ --print("Takeing " .. dmg:GetDamage() .. " health from our " .. self:Health())
--self:SetHealth(self:Health() - dmg:GetDamage())
- print("Health is now" .. self:Health())
+ --print("Health is now" .. self:Health())
if self.OnDammage != nil then self:OnDammage(dmg) end
end
diff --git a/entities/entities/ws_npc_ambient/shared.lua b/entities/entities/ws_npc_ambient/shared.lua
index 3379ed0..c4a91cf 100644
--- a/entities/entities/ws_npc_ambient/shared.lua
+++ b/entities/entities/ws_npc_ambient/shared.lua
@@ -19,7 +19,7 @@ end
function ENT:DefaultBehaviour()
while ( true ) do
--Main loop for ai
- print("Going into behavior for " .. self.Name)
+ --print("Going into behavior for " .. self.Name)
--Update aware enemies
local players = ents.FindByClass("Player")
for k,v in pairs(players) do
@@ -44,12 +44,12 @@ function ENT:DefaultBehaviour()
--If we can't find anyone to attack, just stay idle
if(self.Target == nil) then
- print("Couldn't find anyone to attack!")
+ --print("Couldn't find anyone to attack!")
--Play an idle sequence
local randanim = math.Round(math.Rand(0,#self.IdleSequences))
self:PlaySequenceAndWait( self.IdleSequences[randanim] )
self:StartActivity( ACT_IDLE )
- print("Acting idle")
+ --print("Acting idle")
--If there's noone within 4000 units, just remove ourselves to save server resources
local closest = 5000
for k,v in pairs(player.GetAll()) do
@@ -59,7 +59,7 @@ 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_projectile/init.lua b/entities/entities/ws_projectile/init.lua
index 2898d88..22adcb3 100644
--- a/entities/entities/ws_projectile/init.lua
+++ b/entities/entities/ws_projectile/init.lua
@@ -12,7 +12,7 @@ function ENT:Initialize()
if(self.init) then self:init(self) end
- if(self.speed) then print(self.speed)
+ --if(self.speed) then print(self.speed)
else print("No speed for projectile!") end
self:PhysicsInit(SOLID_VPHYSICS)
@@ -27,7 +27,7 @@ end
function ENT:Think()
- print("speed is " .. self.speed)
+ --print("speed is " .. self.speed)
self:GetPhysicsObject():ApplyForceCenter((self:GetForward() * self.speed) + ( Vector(0,0,-1)*self.drop))
self:GetPhysicsObject():SetAngles(self:GetVelocity():Angle())
end
diff --git a/gamemode/itemsystem/items/bow.lua b/gamemode/itemsystem/items/bow.lua
index 3292ef6..4a7f203 100644
--- a/gamemode/itemsystem/items/bow.lua
+++ b/gamemode/itemsystem/items/bow.lua
@@ -43,11 +43,11 @@ ITEM.CD = 1
local arrow = {}
arrow["model"] = "models/mixerman3d/other/arrow.mdl"
-arrow["speed"] = 13000
+arrow["speed"] = 1300
arrow["drop"] = 50
arrow["init"] = function(fb) end
arrow["onhit"] = function (self,data,phys)
- print("Arrow hit ")
+ --print("Arrow hit ")
PrintTable(data.HitEntity)
if(data.Entity and data.Entity.TakeDamage) then
data.HitEntity:TakeDamage(25)
diff --git a/gamemode/npcsystem/npcs/antlion1.lua b/gamemode/npcsystem/npcs/antlion1.lua
index c9ae1b6..2c3d908 100644
--- a/gamemode/npcsystem/npcs/antlion1.lua
+++ b/gamemode/npcsystem/npcs/antlion1.lua
@@ -67,7 +67,7 @@ local dorun = function(self, ply)
self:StartActivity(ACT_WALK)
self:MoveToPos(ply:GetPos(),moveop)
else
- print("Could not find valid navmesh, suicideing to prevent server crash!")
+ --print("Could not find valid navmesh, suicideing to prevent server crash!")
self:BecomeRagdoll(DamageInfo())
end
end
diff --git a/gamemode/npcsystem/npcs/antlion2.lua b/gamemode/npcsystem/npcs/antlion2.lua
index e50cce4..5b53b8e 100644
--- a/gamemode/npcsystem/npcs/antlion2.lua
+++ b/gamemode/npcsystem/npcs/antlion2.lua
@@ -86,7 +86,7 @@ local dorun = function(self, ply)
self:StartActivity(ACT_WALK)
self:MoveToPos(ply:GetPos(),moveop)
else
- print("Could not find valid navmesh, suicideing to prevent server crash!")
+ --print("Could not find valid navmesh, suicideing to prevent server crash!")
self:BecomeRagdoll(DamageInfo())
end
end
diff --git a/gamemode/npcsystem/npcs/antlion3.lua b/gamemode/npcsystem/npcs/antlion3.lua
index f5f5486..984b779 100644
--- a/gamemode/npcsystem/npcs/antlion3.lua
+++ b/gamemode/npcsystem/npcs/antlion3.lua
@@ -73,7 +73,7 @@ local docharge = function(self,ply)
moveop.draw = true
self:MoveToPos(ply:GetPos(),moveop)
else
- print("Could not find valid navmesh, suicideing to prevent server crash!")
+ --print("Could not find valid navmesh, suicideing to prevent server crash!")
self:BecomeRagdoll(DamageInfo())
end
timer.Remove("Runcycle")
@@ -97,7 +97,7 @@ local dorun = function(self, ply)
self:StartActivity(ACT_WALK)
self:MoveToPos(ply:GetPos(),moveop)
else
- print("Could not find valid navmesh, suicideing to prevent server crash!")
+ --print("Could not find valid navmesh, suicideing to prevent server crash!")
self:BecomeRagdoll(DamageInfo())
end
end
diff --git a/gamemode/npcsystem/npcs/antlion4.lua b/gamemode/npcsystem/npcs/antlion4.lua
index cb39049..0b5825c 100644
--- a/gamemode/npcsystem/npcs/antlion4.lua
+++ b/gamemode/npcsystem/npcs/antlion4.lua
@@ -68,7 +68,7 @@ local dorun = function(self, ply)
self:StartActivity(ACT_WALK)
self:MoveToPos(ply:GetPos(),moveop)
else
- print("Could not find valid navmesh, suicideing to prevent server crash!")
+ --print("Could not find valid navmesh, suicideing to prevent server crash!")
self:BecomeRagdoll(DamageInfo())
end
end
diff --git a/gamemode/npcsystem/npcs/bird.lua b/gamemode/npcsystem/npcs/bird.lua
index 55a5c3d..0efa7b0 100644
--- a/gamemode/npcsystem/npcs/bird.lua
+++ b/gamemode/npcsystem/npcs/bird.lua
@@ -50,7 +50,7 @@ local dorun = function(self,ply)
if navarea:IsValid() then
self:MoveToPos(topos)
else
- print("Suicideing a bird to prevent server crash!")
+ --print("Suicideing a bird to prevent server crash!")
self:BecomeRagdoll(DamageInfo())
end
end
diff --git a/gamemode/npcsystem/npcs/zombie.lua b/gamemode/npcsystem/npcs/zombie.lua
index de4a389..41dad0f 100644
--- a/gamemode/npcsystem/npcs/zombie.lua
+++ b/gamemode/npcsystem/npcs/zombie.lua
@@ -68,7 +68,7 @@ local dorun = function(self, ply)
self:StartActivity(ACT_WALK)
self:MoveToPos(ply:GetPos(),moveop)
else
- print("Could not find valid navmesh, suicideing to prevent server crash!")
+ --print("Could not find valid navmesh, suicideing to prevent server crash!")
self:BecomeRagdoll(DamageInfo())
end
end
diff --git a/gamemode/server/damagemod.lua b/gamemode/server/damagemod.lua
index c90fb52..9da9805 100644
--- a/gamemode/server/damagemod.lua
+++ b/gamemode/server/damagemod.lua
@@ -1,6 +1,6 @@
function GM:GetFallDamage(ply, speed)
- print("Fall dammage detected:" .. speed)
+ --print("Fall dammage detected:" .. speed)
if(ply:HasItem("Feather-fall Rune",1)) then
ply:RemoveItem("Feather-fall Rune",1)
return 0