summaryrefslogtreecommitdiff
path: root/gamemode/items/special.lua
blob: 8dbab7f2c23eac1c97dfe08e79f23547e64b85bc (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// This is the ID given to any item that is a SPECIALIST supply
ITEM_SPECIAL = 3

function FUNC_ANTIRAD( ply, id, client, icon )

	if icon then return "icon16/pill.png" end
	if client then return "Inject" end
	
	ply:RemoveFromInventory( id )
	ply:EmitSound( "Weapon_SMG1.Special1" )
	ply:SetRadiation( 0 )
	ply:Notice( "-5 Radiation", GAMEMODE.Colors.Green )

end

--[[function FUNC_FLARE( ply, id, client, icon )

	if icon then return "icon16/lightbulb.png" end
	if client then return "Ignite" end
	
	ply:RemoveFromInventory( id )
	
	local prop = ents.Create( "sent_flare" )
	prop:SetPos( ply:GetItemDropPos() )
	prop:Spawn()

end]]

item.Register( { 
	Name = "Anti-Rad", 
	Description = "Releives all radiation poisoning.",
	Stackable = true, 
	Type = ITEM_SPECIAL,
	Weight = 0.15, 
	Price = 10,
	Rarity = 0.20,
	Model = "models/props_lab/jar01b.mdl",
	Functions = { FUNC_ANTIRAD },
	CamPos = Vector(-17,-9,0),
	CamOrigin = Vector(0,0,-1)	
} )

item.Register( { 
	Name = "Respirator", 
	Description = "Filters out chemicals and radiation.",
	Stackable = true, 
	Type = ITEM_SPECIAL,
	Weight = 1.75, 
	Price = 40,
	Rarity = 0.95,
	Model = "models/items/combine_rifle_cartridge01.mdl",
	CamPos = Vector(13,-14,0),
	CamOrigin = Vector(0,0,-1)	
} )

--[[item.Register( { 
	Name = "Sonar Module", 
	Description = "Improves your radar detection range.",
	Stackable = true, 
	Type = ITEM_SPECIAL,
	Weight = 0.75, 
	Price = 30,
	Rarity = 0.90,
	Model = "models/gibs/shield_scanner_gib1.mdl",
	Functions = {},
	CamPos = Vector(2,-9,7),
	CamOrigin = Vector(0,1,-1)		
} )

item.Register( { 
	Name = "Flare", 
	Description = "Emits a bright red light.",
	Stackable = true, 
	Type = ITEM_SPECIAL,
	Weight = 0.35, 
	Price = 3,
	Rarity = 0.10,
	Model = "models/props_c17/trappropeller_lever.mdl",
	Functions = { FUNC_FLARE },
	CamPos = Vector(15,6,5),
	CamOrigin = Vector(0,0,0)		
} )]]