diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-02 22:10:06 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-02 22:10:06 -0500 |
| commit | f1e99d19a5aa6e5fa61518366235e3da09689d0b (patch) | |
| tree | 7ad13becc83a0c507c87ac2d543d285d73eebb0a /gamemode/npcsystem/npcs/base.lua | |
| parent | 4dec7baa800e1bc73c659d04ad70edef2c0fc529 (diff) | |
| download | wintersurvival2-f1e99d19a5aa6e5fa61518366235e3da09689d0b.tar.gz wintersurvival2-f1e99d19a5aa6e5fa61518366235e3da09689d0b.tar.bz2 wintersurvival2-f1e99d19a5aa6e5fa61518366235e3da09689d0b.zip | |
Ai overhual now working
Diffstat (limited to 'gamemode/npcsystem/npcs/base.lua')
| -rw-r--r-- | gamemode/npcsystem/npcs/base.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gamemode/npcsystem/npcs/base.lua b/gamemode/npcsystem/npcs/base.lua index 7afb4fe..670c476 100644 --- a/gamemode/npcsystem/npcs/base.lua +++ b/gamemode/npcsystem/npcs/base.lua @@ -6,14 +6,24 @@ NPC.Icon = Material("wintersurvival2/hud/ws1_icons/icon_rock") NPC.Social = "Pack" --Solo, Pack
-NPC.Vitality = 0
-NPC.Speed = 0
+NPC.Stats = {
+ ["Vitality"] = 100,
+ ["Speed"] = 50,
+ ["AwareDist"] = 1000,
+}
+
+--Some npc's like birds have diffent names for their idle sequence
+NPC.IdleSequence = "Idle"
+
--Drops should be formated as [index]={["item name"], percent_drop} where percent_drop is a number from 0 to 100
NPC.Drops = nil
--Attacks should be formated as [i]={function attackpriority() = function doattack()}
NPC.Attacks = nil
+--Attack priority should be formated as [i] = func tion(return int priority) attackpriority
+NPC.AttackPriority = nil
+
--A function that takes a position and returns true if this is an acceptable place to spawn
NPC.SpawnLocations = nil
|
