From e1a30b7c0ce3797b4eb6750d53cae8476abf878b Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 10 Jan 2016 14:22:03 -0500 Subject: Fixed npc's reqireing all players to be within 4000 units --- entities/entities/ws_npc_ambient/shared.lua | 2 +- to-do/website.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2