-
Notifications
You must be signed in to change notification settings - Fork 40
/
constants.lua
187 lines (167 loc) · 7.67 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
-------------------------------------------------------------------------------
--- AUTHOR: Nostrademous
--- CONTRIBUTOR: many people, too many to know and list them all
--- GITHUB REPO: https://github.com/Nostrademous/Dota2-FullOverwrite
-------------------------------------------------------------------------------
_G._savedEnv = getfenv()
module( "constants", package.seeall )
MODE_NONE = "MODE_NONE"
MODE_CHANNELING = "MODE_CHANNELING"
MODE_MOVING = "MODE_MOVING"
MODE_FARM = "MODE_FARM"
MODE_LANING = "MODE_LANING"
MODE_RETREAT = "MODE_RETREAT"
MODE_FIGHT = "MODE_FIGHT"
MODE_SPECIALSHOP = "MODE_SPECIALSHOP"
MODE_RUNEPICKUP = "MODE_RUNEPICKUP"
MODE_ROSHAN = "MODE_ROSHAN"
MODE_DEFENDALLY = "MODE_DEFENDALLY"
MODE_DEFENDLANE = "MODE_DEFENDLANE"
MODE_WARD = "MODE_WARD"
MODE_EVADE = "MODE_EVADE"
MODE_SHRINE = "MODE_SHRINE"
MODE_PUSHLANE = "MODE_PUSHLANE"
MODE_GANKING = "MODE_GANKING"
MODE_JUNGLING = "MODE_JUNGLING"
ROLE_UNKNOWN = 0
ROLE_HARDCARRY = 1
ROLE_MID = 2
ROLE_OFFLANE = 3
ROLE_SEMISUPPORT = 4
ROLE_HARDSUPPORT = 5
ROLE_ROAMER = 6
ROLE_JUNGLER = 7
TEAM_RADIANT = 2
TEAM_DIRE = 3
RETREAT_DANGER = 1
RETREAT_TOWER = 2
RETREAT_CREEP = 3
RETREAT_FOUNTAIN = 4
SHRINE_WAITING = 1
SHRINE_USE = 2
PUSH = 1
QUEUE = 2
-------------------------------------------------------------------------------
-- JUNGLE RELATED --
-------------------------------------------------------------------------------
CAMP_EASY = 1
CAMP_MEDIUM = 2
CAMP_HARD = 3
CAMP_ANCIENT = 4
VECTOR = "vector"
STACK_TIME = "time"
PRE_STACK_VECTOR = "prestack"
STACK_VECTOR = "stack"
DIFFICULTY = "difficulty"
--actual camp
RAD_MID_MEDIUM = Vector(-1864.778076, -4351.264160, 128.000000)
RAD_MID_HARD = Vector(-554.121765, -3270.541992, 256.000000)
RAD_MID_ANCIENT = Vector(306.0, -2077.0, 384.0)
RAD_SAFE_MEDIUM = Vector(517.355835, -4626.182129, 384.000000)
RAD_SAFE_EASY = Vector(3022.693848, -4553.411621, 256.000000)
RAD_SAFE_HARD = Vector(4756.009277, -4438.848145, 256.000000)
RAD_OFF_ANCIENT = Vector(-2969.868164, -100.282837, 384.000000)
RAD_OFF_MEDIUM = Vector(-3790.975586, 800.282837, 256.000000)
RAD_OFF_HARD = Vector(-4760.342285, -375.238007, 256.000000)
DIRE_MID_MEDIUM = Vector(1192.345459, 3401.774902, 384.000000)
DIRE_MID_HARD = Vector(-240.170807, 3432.894531, 256.000000)
DIRE_MID_ANCIENT = Vector(-846.801514, 2274.023438, 384.000000)
DIRE_SAFE_MEDIUM = Vector(-1832.490112, 4078.956055, 256.000000)
DIRE_SAFE_EASY = Vector(-2911.948730, 4905.840332, 384.000000)
DIRE_SAFE_HARD = Vector(-4329.099609, 3678.822021, 256.000000)
DIRE_OFF_ANCIENT = Vector(3765.490234, -674.424194, 256.000000)
DIRE_OFF_MEDIUM = Vector(2703.443359, 107.946167, 384.000000)
DIRE_OFF_HARD = Vector(4296.825684, 796.566528, 384.000000)
--time to pull for a stack
RAD_MID_MEDIUM_STACKTIME = 56
RAD_MID_HARD_STACKTIME = 54
RAD_MID_ANCIENT_STACKTIME = 54
RAD_SAFE_MEDIUM_STACKTIME = 55
RAD_SAFE_EASY_STACKTIME = 54
RAD_SAFE_HARD_STACKTIME = 54
RAD_OFF_ANCIENT_STACKTIME = 53
RAD_OFF_MEDIUM_STACKTIME = 55
RAD_OFF_HARD_STACKTIME = 56
DIRE_MID_MEDIUM_STACKTIME = 53
DIRE_MID_HARD_STACKTIME = 54
DIRE_MID_ANCIENT_STACKTIME = 53
DIRE_SAFE_MEDIUM_STACKTIME = 55
DIRE_SAFE_EASY_STACKTIME = 55
DIRE_SAFE_HARD_STACKTIME = 55
DIRE_OFF_ANCIENT_STACKTIME = 54
DIRE_OFF_MEDIUM_STACKTIME = 53
DIRE_OFF_HARD_STACKTIME = 55
--vector to wait for pull at
RAD_MID_MEDIUM_PRESTACK = Vector(-1805.178076, -4183.264160, 128.000000)
RAD_MID_HARD_PRESTACK = Vector(-696.121765, -3240.541992, 256.000000)
RAD_MID_ANCIENT_PRESTACK = Vector(339.126160, -2069.720215, 384.000000)
RAD_SAFE_MEDIUM_PRESTACK = Vector(710.355835, -4489.582129, 384.000000)
RAD_SAFE_EASY_PRESTACK = Vector(3250.693848, -4553.411621, 256.000000)
RAD_SAFE_HARD_PRESTACK = Vector(4590.009277, -4209.148145, 256.000000)
RAD_OFF_ANCIENT_PRESTACK = Vector(-2778.268164, -88.582837, 384.000000)
RAD_OFF_MEDIUM_PRESTACK = Vector(-3946.775586, 737.182837, 256.000000)
RAD_OFF_HARD_PRESTACK = Vector(-4602.575586, -190.582837, 256.000000)
DIRE_MID_MEDIUM_PRESTACK = Vector(1081.945459, 3529.274902, 384.000000)
DIRE_MID_HARD_PRESTACK = Vector(-423.070807, 3517.694531, 256.000000)
DIRE_MID_ANCIENT_PRESTACK = Vector(-569.601514, 2439.623438, 384.000000)
DIRE_SAFE_MEDIUM_PRESTACK = Vector(-1605.990112, 3973.256055, 256.000000)
DIRE_SAFE_EASY_PRESTACK = Vector(-3001.948730, 5061.940332, 384.000000)
DIRE_SAFE_HARD_PRESTACK = Vector(-4348.299609, 3714.822021, 256.000000)
DIRE_OFF_ANCIENT_PRESTACK = Vector(2877.843359, 91.246167, 384.000000)
DIRE_OFF_MEDIUM_PRESTACK = Vector(3581.090234, -763.624194, 256.000000)
DIRE_OFF_HARD_PRESTACK = Vector(4098.925684, 725.266528, 384.000000)
--vector to run to when stacking
RAD_MID_MEDIUM_STACK = Vector(-1824.378076, -3207.564160, 256.000000)
RAD_MID_HARD_STACK = Vector(-425.521765, -2421.341992, 256.000000)
RAD_MID_ANCIENT_STACK = Vector(1121.526160, -2940.020215, 384.000000)
RAD_SAFE_MEDIUM_STACK = Vector(886.355835, -3285.482129, 384.000000)
RAD_SAFE_EASY_STACK = Vector(4245.693848, -5273.411621, 384.000000)
RAD_SAFE_HARD_STACK = Vector(3425.509277, -3357.848145, 256.000000)
RAD_OFF_ANCIENT_STACK = Vector(-3979.668164, -815.682837, 384.000000)
RAD_OFF_MEDIUM_STACK = Vector(-5200.375586, 283.682837, 256.000000)
RAD_OFF_HARD_STACK = Vector(-3900.742285, -727.938007, 256.000000)
DIRE_MID_MEDIUM_STACK = Vector(-142.745459, 4125.974902, 384.000000)
DIRE_MID_HARD_STACK = Vector(-1122.570807, 4474.494531, 256.000000)
DIRE_MID_ANCIENT_STACK = Vector(859.901514, 2333.123438, 384.000000)
DIRE_SAFE_MEDIUM_STACK = Vector(-2772.090112, 3447.256055, 256.000000)
DIRE_SAFE_EASY_STACK = Vector(-3605.248730, 6082.240332, 384.000000)
DIRE_SAFE_HARD_STACK = Vector(-2789.299609, 3501.122021, 256.000000)
DIRE_OFF_ANCIENT_STACK = Vector(4276.443359, 79.346167, 384.000000)
DIRE_OFF_MEDIUM_STACK = Vector(2297.690234, -944.924194, 256.000000)
DIRE_OFF_HARD_STACK = Vector(4577.625684, -349.766528, 384.000000)
-------------------------------------------------------------------------------
-- RUNE
-------------------------------------------------------------------------------
RuneSpots = {
RUNE_POWERUP_1,
RUNE_POWERUP_2,
RUNE_BOUNTY_1,
RUNE_BOUNTY_2,
RUNE_BOUNTY_3,
RUNE_BOUNTY_4
}
-------------------------------------------------------------------------------
-- SHOPS
-------------------------------------------------------------------------------
SHOP_USE_DISTANCE = 200
SHOP_TYPE_NONE = 0
SHOP_TYPE_SECRET = 1
SHOP_TYPE_SIDE = 2
SIDE_SHOP_TOP = Vector(-7220, 4430)
SIDE_SHOP_BOT = Vector(7249, -4113)
SECRET_SHOP_RADIANT = Vector(-4472, 1328)
SECRET_SHOP_DIRE = Vector(4586, -1588)
-------------------------------------------------------------------------------
-- WARD RELATED
-------------------------------------------------------------------------------
WARD_CAST_DISTANCE = 500
WARD_DURATION_OBSERVER = 360
WARD_DURATION_SENTRY = 240
-------------------------------------------------------------------------------
-- STAT ATTRIBUTES
-------------------------------------------------------------------------------
STRENGTH = ATTRIBUTE_STRENGTH
AGILITY = ATTRIBUTE_AGILITY
INTELLIGENCE = ATTRIBUTE_INTELLECT
-------------------------------------------------------------------------------
for k,v in pairs( constants ) do _G._savedEnv[k] = v end