aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-10 14:22:03 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-10 14:22:03 -0500
commite1a30b7c0ce3797b4eb6750d53cae8476abf878b (patch)
treea377acc75d9a673bf4579e57ba70ececa846ba6c
parent0dfa2c6a8185696f1552eff77333030dcc86c07b (diff)
downloadwintersurvival2-e1a30b7c0ce3797b4eb6750d53cae8476abf878b.tar.gz
wintersurvival2-e1a30b7c0ce3797b4eb6750d53cae8476abf878b.tar.bz2
wintersurvival2-e1a30b7c0ce3797b4eb6750d53cae8476abf878b.zip
Fixed npc's reqireing all players to be within 4000 units
-rw-r--r--entities/entities/ws_npc_ambient/shared.lua2
-rw-r--r--to-do/website.txt4
2 files changed, 5 insertions, 1 deletions
diff --git a/entities/entities/ws_npc_ambient/shared.lua b/entities/entities/ws_npc_ambient/shared.lua
index c84245c..d41558d 100644
--- a/entities/entities/ws_npc_ambient/shared.lua
+++ b/entities/entities/ws_npc_ambient/shared.lua
@@ -53,7 +53,7 @@ function ENT:DefaultBehaviour()
local closest = 5000
for k,v in pairs(player.GetAll()) do
local thisdist = self:GetPos():Distance(v:GetPos())
- if(thisdist > closest) then
+ if(thisdist < closest) then
closest = thisdist
end
end
diff --git a/to-do/website.txt b/to-do/website.txt
index 611d80e..ee9f71f 100644
--- a/to-do/website.txt
+++ b/to-do/website.txt
@@ -1,3 +1,7 @@
There is a website that goes with the beta server currently located at cogarr.net
I am using lighttpd as the webserver, with mostly default setup. I am symlinking /var/www/html with a different folder to make the site easier to work with over git.
+
+I am using cgi module on lighthttpd to get all the shell scripts to run, most of the scripts are pretty simple, but be sure that your web server user has access to the appropriate files. Specifically:
+
+/home/steam/server_1/garrysmod/data/ws_recepiedata.txt