diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-23 00:21:58 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-23 00:21:58 -0500 |
| commit | 9b1057243fe1db65f351e213f00e41ceca67a8da (patch) | |
| tree | d0d0982175639baaad0a28fee64c5dcbc41c11b9 /gamemode/itemsystem | |
| parent | e8439ad503f530724f1eae2de1a8ac2c19df52c0 (diff) | |
| download | wintersurvival2-9b1057243fe1db65f351e213f00e41ceca67a8da.tar.gz wintersurvival2-9b1057243fe1db65f351e213f00e41ceca67a8da.tar.bz2 wintersurvival2-9b1057243fe1db65f351e213f00e41ceca67a8da.zip | |
Completed basic framework for setting up spells, and minigames for casting
Diffstat (limited to 'gamemode/itemsystem')
| -rw-r--r-- | gamemode/itemsystem/items/spell_fireball.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/gamemode/itemsystem/items/spell_fireball.lua b/gamemode/itemsystem/items/spell_fireball.lua new file mode 100644 index 0000000..d8bad79 --- /dev/null +++ b/gamemode/itemsystem/items/spell_fireball.lua @@ -0,0 +1,31 @@ + +ITEM.Name = "Fireball" +ITEM.Class = "weapon" +ITEM.Desc = "Warning: Warm" +ITEM.Model = "models/props_debris/wood_board02a.mdl" +ITEM.Icon = Material("wintersurvival2/hud/ws1_icons/icon_bow") +ITEM.HoldType = "magic" + +ITEM.Recipe = { + Resources = { + ["Plank"] = 2, + ["Rope"] = 1, + ["Sap"] = 1, + }, + Tools = {}, +} + +ITEM.CD = 1 + +function ITEM:DoFireball() + print("Fully successfull fireball callback") +end + +function ITEM:DoFireballFail() + +end + +function ITEM:OnPrimary(pl,tr) + if (CLIENT) then return end + pl:Cast("Fireball",self.DoFireball) +end |
