aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/prayersystem/prayers/ninelives.lua
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-09-08 18:48:13 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-09-08 18:48:13 -0400
commit22f3c6d96fcb560c13445d4a6135ca3f01d27197 (patch)
treebbabd4bc9d6b96acbbc6248833c602f8f3249a04 /gamemode/shared/prayersystem/prayers/ninelives.lua
parent13a87c24b79ff4db6e1917409ce8a11b1d72b6e6 (diff)
downloadartery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.tar.gz
artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.tar.bz2
artery-22f3c6d96fcb560c13445d4a6135ca3f01d27197.zip
Deleted a lot of code
Deleted code that was not being used, and some of the images too.
Diffstat (limited to 'gamemode/shared/prayersystem/prayers/ninelives.lua')
-rw-r--r--gamemode/shared/prayersystem/prayers/ninelives.lua50
1 files changed, 0 insertions, 50 deletions
diff --git a/gamemode/shared/prayersystem/prayers/ninelives.lua b/gamemode/shared/prayersystem/prayers/ninelives.lua
deleted file mode 100644
index 707e8b6..0000000
--- a/gamemode/shared/prayersystem/prayers/ninelives.lua
+++ /dev/null
@@ -1,50 +0,0 @@
--- do return end
--- --[[
--- An example prayer
--- ]]
--- local prayer = {}
---
--- --Required, a name, all item names must be unique
--- prayer.Name = "Nine Lives"
---
--- --Optional, a tooltip to display when hovered over
--- prayer.Tooltip = "A prayer to the rouge god to prevent fall dammage for the next 9 falls that you would have taken dammage, or for 5 minutes, whichever comes first."
---
--- --Optional, when the player clicks this item, a menu will show up, if the menu item is clicked, the function is ran. This is all run client side, so if you want it to do something server side, you'll need to use the net library. Remember that items are in the shared domain, so you can define what it does in the same file!
--- local prayedplayers = {}
--- if SERVER then
--- util.AddNetworkString("art_prayer_ninelives")
--- net.Receive("art_prayer_ninelives",function(ln,ply)
--- if ply:HasPrayer("Nine Lives") then
--- prayedplayers[ply] = 9
--- timer.Simple(60 * 5,function()
--- prayedplayers[ply] = nil
--- end)
--- end
--- end)
--- end
---
---
--- local lastprayer = CurTime()
--- prayer.Pray = function(self)
--- if SERVER then return end
--- if CurTime() > lastprayer + 0 then
--- net.Start("art_prayer_ninelives")
--- net.SendToServer()
--- lastprayer = CurTime()
--- end
--- end
---
--- hook.Add( "EntityTakeDamage" , "artery_ninelives" , function(ent,info)
--- if info:GetDamageType() == DMG_FALL and prayedplayers[ent] ~= nil and prayedplayers[ent] > 0 then
--- info:SetDamage(0)
--- end
--- end)
---
--- --Optional. Something run once when this item is drawn in a backpack
--- function prayer.DoOnPanel(dimagebutton)
--- dimagebutton:SetImage( "prayericons/ninelives.png")
--- end
---
---
--- ART.RegisterPrayer(prayer)