-
Notifications
You must be signed in to change notification settings - Fork 6
/
Constants.lua
128 lines (124 loc) · 5.4 KB
/
Constants.lua
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
-- ======= Copyright © 2003-2010, Unknown Worlds Entertainment, Inc. All rights reserved. =======
--
-- lua\Constants.lua
--
-- Created by: Charlie Cleveland ([email protected]) and
-- Max McGuire ([email protected])
--
-- ========= For more information, visit us at http:--www.unknownworlds.com =====================
Script.Load("lua/Balance.lua")
-- Keycodes (for panel key press events)
kKeyCodeNone = 0
kKeyCode0 = 1
kKeyCode1 = 2
kKeyCode2 = 3
kKeyCode3 = 4
kKeyCode4 = 5
kKeyCode5 = 6
kKeyCode6 = 7
kKeyCode7 = 8
kKeyCode8 = 9
kKeyCode9 = 10
kKeyCodeA = 11
kKeyCodeB = 12
kKeyCodeC = 13
kKeyCodeD = 14
kKeyCodeE = 15
kKeyCodeF = 16
kKeyCodeG = 17
kKeyCodeH = 18
kKeyCodeI = 19
kKeyCodeJ = 20
kKeyCodeK = 21
kKeyCodeL = 22
kKeyCodeM = 23
kKeyCodeN = 24
kKeyCodeO = 25
kKeyCodeP = 26
kKeyCodeQ = 27
kKeyCodeR = 28
kKeyCodeS = 29
kKeyCodeT = 30
kKeyCodeU = 31
kKeyCodeV = 32
kKeyCodeW = 33
kKeyCodeX = 34
kKeyCodeY = 35
kKeyCodeZ = 36
kKeyCodeKeyPad0 = 37
kKeyCodeKeyPad1 = 38
kKeyCodeKeyPad2 = 39
kKeyCodeKeyPad3 = 40
kKeyCodeKeyPad4 = 41
kKeyCodeKeyPad5 = 42
kKeyCodeKeyPad6 = 43
kKeyCodeKeyPad7 = 44
kKeyCodeKeyPad8 = 45
kKeyCodeKeyPad9 = 46
kKeyCodeKeyPadDivide = 47
kKeyCodeKeyPadMultiply = 48
kKeyCodeKeyPadMinus = 49
kKeyCodeKeyPadPlus = 50
kKeyCodeKeyPadEnter = 51
kKeyCodeKeyPadDecimal = 52
kKeyCodeLBracket = 53
kKeyCodeRBracket = 54
kKeyCodeSemicolon = 55
kKeyCodeApostrophe = 56
kKeyCodeBackquote = 57
kKeyCodeComma = 58
kKeyCodePeriod = 59
kKeyCodeSlash = 60
kKeyCodeBackslash = 61
kKeyCodeMinus = 62
kKeyCodeEqual = 63
kKeyCodeEnter = 64
kKeyCodeSpace = 65
kKeyCodeBackspace = 66
kKeyCodeTab = 67
kKeyCodeCapsLock = 68
kKeyCodeNumLock = 69
kKeyCodeEscape = 70
kKeyCodeScrollLock = 71
kKeyCodeInsert = 72
kKeyCodeDelete = 73
kKeyCodeHome = 74
kKeyCodeEnd = 75
kKeyCodePageUp = 76
kKeyCodePageDown = 77
kKeyCodeBreak = 78
kKeyCodeLShift = 79
kKeyCodeRShift = 80
kKeyCodeLAlt = 81
kKeyCodeRAlt = 82
kKeyCodeLControl = 83
kKeyCodeRControl = 84
kKeyCodeLWin = 85
kKeyCodeRWin = 86
kKeyCodeApp = 87
kKeyCodeUp = 88
kKeyCodeLeft = 89
kKeyCodeDown = 90
kKeyCodeRight = 91
kKeyCodeF1 = 92
kKeyCodeF2 = 93
kKeyCodeF3 = 94
kKeyCodeF4 = 95
kKeyCodeF5 = 96
kKeyCodeF6 = 97
kKeyCodeF7 = 98
kKeyCodeF8 = 99
kKeyCodeF9 = 100
kKeyCodeF10 = 101
kKeyCodeF11 = 102
kKeyCodeF12 = 103
kKeyCodeCapsLockToggle = 104
kKeyCodeNumLockToggle = 105
kKeyCodeScrollLockToggle = 106
-- Mouse buttons
kLeftMouseButton = 0
kRightMouseButton = 1
-- Math constants
kEpsilon = 0.0001
-- Minimum player velocity for network performance and ease of debugging
kMinimumPlayerVelocity = .05