aboutsummaryrefslogtreecommitdiff
path: root/gamemode
diff options
context:
space:
mode:
authorAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-10 21:14:52 -0500
committerAlexander Pickering <Alexander.Pickering@anondomain.site90.net>2016-01-10 21:14:52 -0500
commita44d818eada5646fc6fa9ba7e72cc5e67ddf0b11 (patch)
treebcae32eafbd35342221f859117eadc5de41f7180 /gamemode
parent31641879af7d32f1570b59bb5d27a193ed0931c3 (diff)
downloadwintersurvival2-a44d818eada5646fc6fa9ba7e72cc5e67ddf0b11.tar.gz
wintersurvival2-a44d818eada5646fc6fa9ba7e72cc5e67ddf0b11.tar.bz2
wintersurvival2-a44d818eada5646fc6fa9ba7e72cc5e67ddf0b11.zip
Fixed spelling mistake in npc's
Diffstat (limited to 'gamemode')
-rw-r--r--gamemode/npcsystem/npcs/antlion1.lua4
-rw-r--r--gamemode/npcsystem/npcs/antlion2.lua2
-rw-r--r--gamemode/npcsystem/npcs/bird.lua2
-rw-r--r--gamemode/npcsystem/npcs/zombie.lua2
4 files changed, 5 insertions, 5 deletions
diff --git a/gamemode/npcsystem/npcs/antlion1.lua b/gamemode/npcsystem/npcs/antlion1.lua
index 502ebc6..2123bf2 100644
--- a/gamemode/npcsystem/npcs/antlion1.lua
+++ b/gamemode/npcsystem/npcs/antlion1.lua
@@ -88,9 +88,9 @@ NPC.Attacks = {
--Attack priority is a fucntion that takes a player, and returns an int describing it's prority to attack (higher = more important) NPC will always attack the player with the highest priority
function NPC:AttackPriority(ply)
local plypos = ply:GetPos()
- local mypas = self:GetPos()
+ local mypos = self:GetPos()
if not plypos then return 0 end
- local dist = plypos:Distance(mypos)s
+ local dist = plypos:Distance(mypos)
return self.Stats["AwareDist"] - dist
end
diff --git a/gamemode/npcsystem/npcs/antlion2.lua b/gamemode/npcsystem/npcs/antlion2.lua
index d6a7390..d55ba40 100644
--- a/gamemode/npcsystem/npcs/antlion2.lua
+++ b/gamemode/npcsystem/npcs/antlion2.lua
@@ -110,7 +110,7 @@ NPC.Attacks = {
--Attack priority is a fucntion that takes a player, and returns an int describing it's prority to attack (higher = more important) NPC will always attack the player with the highest priority
function NPC:AttackPriority(ply)
local plypos = ply:GetPos()
- local mypas = self:GetPos()
+ local mypos = self:GetPos()
if not plypos then return 0 end
local dist = plypos:Distance(mypos)
return self.Stats["AwareDist"] - dist
diff --git a/gamemode/npcsystem/npcs/bird.lua b/gamemode/npcsystem/npcs/bird.lua
index d8dfb30..94a0986 100644
--- a/gamemode/npcsystem/npcs/bird.lua
+++ b/gamemode/npcsystem/npcs/bird.lua
@@ -74,7 +74,7 @@ NPC.AwareEnemies = {}
--Attack priority is a fucntion that takes a player, and returns an int describing it's prority to attack (higher = more important) NPC will always attack the player with the highest priority
function NPC:AttackPriority(ply)
local plypos = ply:GetPos()
- local mypas = self:GetPos()
+ local mypos = self:GetPos()
if not plypos then return 0 end
local dist = plypos:Distance(mypos)
return self.Stats["AwareDist"] - dist
diff --git a/gamemode/npcsystem/npcs/zombie.lua b/gamemode/npcsystem/npcs/zombie.lua
index b4718a4..2ae78e8 100644
--- a/gamemode/npcsystem/npcs/zombie.lua
+++ b/gamemode/npcsystem/npcs/zombie.lua
@@ -89,7 +89,7 @@ NPC.Attacks = {
--Attack priority is a fucntion that takes a player, and returns an int describing it's prority to attack (higher = more important) NPC will always attack the player with the highest priority
function NPC:AttackPriority(ply)
local plypos = ply:GetPos()
- local mypas = self:GetPos()
+ local mypos = self:GetPos()
if not plypos then return 0 end
local dist = plypos:Distance(mypos)
return self.Stats["AwareDist"] - dist