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
weapons = {
	[1] = {
		name = "P250", --name
		sprite = "gfx/weapons/p250.png", --hold sprite
		sprited = "gfx/weapons/p250_d.png", --drop sprite
		snd = "weapons/glock18.wav", --sound
		range = 150, --range of bullet
		ammo = 13, --ammo in clip
		maxammo = 52, --carried ammo
		reloadt = 1500, --reload time
		sndrad = 400, --sound radius
		dmg = 11, --damage
		rid = 78, --real id; the actual weapon the player will have equipped
		disp = 3, --bullet dispersion
		burstmode = true, --burst mode available
		brf = 15, --burst fire bullets dispersion
	},
	[2] = {
		name = "ASR-2",
		sprite = "gfx/weapons/asr2_2.png",
		snd = "weapons/scout.wav",
		range = 300,
		ammo = 15,
		maxammo = 30,
		reloadt = 3000,
		sndrad = 400,
		dmg = 50,
		rid = 79,
		disp = 0,
		scope = {true,2}, --optical scope; [1] defines if scope exists on the weapon, [2] defines amount of zoom levels
		dmg1 = 60,
		dmg2 = 80,
		rfr = 2500,
	},
	[3] = {
		name = "bow",
		sprite = "gfx/weapons/bow.png",
		sprited = "gfx/weapons/bow2.png",
		snd = "weapons/pkp.wav",
		range = 500,
		ammo = 200,
		maxammo = 400,
		reloadt = 5000,
		sndrad = 400,
		dmg = 17,
		rid = 80,
		sph = 5, --shots per time unit
		ht = 500, --time unit for shots, in milliseconds
		disp = 20,
	},
	[4] = {
		name = "PKP Ammo", --name
		sprited = "gfx/weapons/ammobox.png", --dropped sprite
		type = "ammo", --system parameter to indicate that this is ammunition
		ammo = "full+", --ammo mode - replenish X carried ammo if a number, replenish all carried ammo if "full", replenish both carried ammo and clip ammo if "full+"
		weapon = 3, --weapon this ammunition is for (index in table)
	},
	[5] = {
		name = "M9",
		sprite = "gfx/weapons/p250.png",
		sprited = "gfx/weapons/p250_d.png",
		snd = "weapons/usp.wav",
		range = 200,
		ammo = 15,
		maxammo = 60,
		reloadt = 1750,
		sndrad = 400,
		dmg = 13,
		rid = 81,
		disp = 3,
		silencer = true, --silencer enabled
		sdmg = 11, --silenced damage
		srng = 150, --silenced range
		ssnd = "weapons/usp_silenced.wav", --silenced sound
		ssndrad = 200, --silenced sound radius
		sprites = "gfx/weapons/p250.png", --silenced sprite
	},
}