summaryrefslogtreecommitdiff
path: root/gamemode/items/weapons_special.lua
blob: 3d9a6c3c51e12a6c61f0d746fae4ea49667ac031 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// This is the ID given to any weapon item for SPECIAL
ITEM_WPN_SPECIAL = 10

--[[function FUNC_PLANTBOMB( ply, id, client )

	if client then return "Arm" end
	
	ply:RemoveFromInventory( id )
	ply:EmitSound( "weapons/c4/c4_plant.wav" )
	
	local trace = {}
	trace.start = ply:GetShootPos()
	trace.endpos = ply:GetShootPos() + ply:GetAimVector() * 50
	trace.filter = ply
	local tr = util.TraceLine( trace )
	
	local bomb = ents.Create( "sent_c4" )
	bomb:SetPos( tr.HitPos )
	bomb:SetOwner( ply )
	bomb:Spawn()

end]]

item.Register( { 
	Name = "M1014", 
	Description = "Turn everything into ground beef.",
	Stackable = false, 
	Type = ITEM_WPN_SPECIAL,
	TypeOverride = "sent_droppedgun",
	Weight = 7, 
	Price = 160,
	Rarity = 0.90,
	Model = "models/weapons/w_shot_xm1014.mdl",
	Weapon = "rad_m1014",
	Functions = { FUNC_DROPWEAPON },
	PickupFunction = FUNC_GRABWEAPON,
	DropFunction = FUNC_REMOVEWEAPON,
	CamPos = Vector(0,38,5),
	CamOrigin = Vector(1,0,4)
} )

item.Register( { 
	Name = "M249", 
	Description = "A belt-fed support machine gun.",
	Stackable = false, 
	Type = ITEM_WPN_SPECIAL,
	TypeOverride = "sent_droppedgun",
	Weight = 10, 
	Price = 180,
	Rarity = 0.90,
	Model = "models/weapons/w_mach_m249para.mdl",
	Weapon = "rad_m249",
	Functions = { FUNC_DROPWEAPON },
	PickupFunction = FUNC_GRABWEAPON,
	DropFunction = FUNC_REMOVEWEAPON,
	CamPos = Vector(0,38,5),
	CamOrigin = Vector(2,0,6)
} )

item.Register( { 
	Name = "AWP", 
	Description = "The very definition of overkill.",
	Stackable = false, 
	Type = ITEM_WPN_SPECIAL,
	TypeOverride = "sent_droppedgun",
	Weight = 9, 
	Price = 200,
	Rarity = 0.70,
	Model = "models/weapons/w_snip_awp.mdl",
	Weapon = "rad_awp",
	Functions = { FUNC_DROPWEAPON },
	PickupFunction = FUNC_GRABWEAPON,
	DropFunction = FUNC_REMOVEWEAPON,
	CamPos = Vector(0,51,5),
	CamOrigin = Vector(1,0,4)
} )

item.Register( { 
	Name = "HE Grenade", 
	Description = "The fuse lasts 3 seconds.",
	Stackable = true, 
	Type = ITEM_WPN_SPECIAL,
	TypeOverride = "sent_droppedgun",
	Weight = 1, 
	Price = 5,
	Rarity = 0.20,
	Model = "models/weapons/w_eq_fraggrenade_thrown.mdl",
	Weapon = "rad_grenade",
	Functions = { FUNC_DROPWEAPON },
	PickupFunction = FUNC_GRABWEAPON,
	DropFunction = FUNC_REMOVEWEAPON,
	CamPos = Vector(1,12,4),
	CamOrigin = Vector(0,0,1)
} )

item.Register( { 
	Name = "Incendiary Grenade", 
	Description = "Comes with free marshmallows.",
	Stackable = true, 
	Type = ITEM_WPN_SPECIAL,
	TypeOverride = "sent_droppedgun",
	Weight = 1, 
	Price = 8,
	Rarity = 0.40,
	Model = "models/weapons/w_eq_flashbang.mdl",
	Weapon = "rad_incendiarygrenade",
	Functions = { FUNC_DROPWEAPON },
	PickupFunction = FUNC_GRABWEAPON,
	DropFunction = FUNC_REMOVEWEAPON,
	CamPos = Vector(3,16,3),
	CamOrigin = Vector(0,0,5)
} )

--[[item.Register( { 
	Name = "Timed Explosives", 
	Description = "This is a homemade timed explosive.",
	Stackable = true, 
	Type = ITEM_WPN_SPECIAL,
	TypeOverride = "sent_droppedgun",
	Weight = 3, 
	Price = 10,
	Rarity = 0.80,
	Model = "models/weapons/w_c4.mdl",
	Functions = { FUNC_PLANTBOMB },
	CamPos = Vector(-12,-2,0),
	CamOrigin = Vector(0,5,0)
} )]]