blob: d8bad7980c93615b79fb2e45bf9e4c3de955ab0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
|