-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathcustomcmds.lua
More file actions
123 lines (114 loc) · 3.75 KB
/
customcmds.lua
File metadata and controls
123 lines (114 loc) · 3.75 KB
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
--[[ WARNING!! Only BASE VANILLA ZK commands belong here!
If you are a modder adding custom commands, MAKE YOUR OWN FILE.
By overriding this file you're SETTING YOURSELF UP FOR FAILURE
when ZK adds something to this file (your override won't have
the new addition) and making things confusing for other modders
who might want to use your code (with your own file it will be
obvious where the extra commands are coming from). ]]
-- if you add a command, please order it by ID!
local commands = {
RETREAT_ZONE = 10001,
RESETFIRE = 10003,
RESETMOVE = 10004,
BUILDPREV = 10005,
RADIALBUILDMENU = 10006,
SET_AI_START = 10007,
BUILD = 10010,
NEWTON_FIREZONE = 10283,
STOP_NEWTON_FIREZONE = 10284,
SET_FERRY = 11000,
UPGRADE_UNIT = 11432,
CHEAT_GIVE = 13337,
FACTORY_GUARD = 13921,
AREA_GUARD = 13922,
-- ORBIT_DRAW is an evil on the order of CMD.SET_WANTED_MAX_SPEED.
-- It is required because ORBIT needs two parameters but this
-- causes it to not draw in the command queue.
-- See https://springrts.com/mantis/view.php?id=4931
ORBIT = 13923,
ORBIT_DRAW = 13924,
GLOBAL_BUILD = 13925, -- global build command state toggle command
GBCANCEL = 13926, -- global build command area cancel cmd
STOP_PRODUCTION = 13954,
SELECTION_RANK = 13987,
FORMATION_RANK = 13988,
SELECT_MISSILES = 14001,
BUILD_PLATE = 14002,
MISC_BUILD = 25612, -- This is used for integral menu
AREA_MEX = 30100,
AREA_TERRA_MEX = 30101,
STEALTH = 31100,
CLOAK_SHIELD = 31101,
RAW_MOVE = 31109, --cmd_raw_move.lua
RAW_BUILD = 31110, --cmd_raw_move.lua -- unregistered raw move
EMBARK = 31200, --unit_transport_ai_button.lua
DISEMBARK = 31201, --unit_transport_ai_button.lua
TRANSPORTTO = 31202, --unit_transport_ai_button.lua
EXTENDED_LOAD = 31203, --unit_transport_pickup_floating_amphib.lua
EXTENDED_UNLOAD = 31204, --unit_transport_pickup_floating_amphib.lua
LOADUNITS_SELECTED = 31205,
AUTO_CALL_TRANSPORT = 31206, --unit_transport_ai_button.lua
MORPH_UPGRADE_INTERNAL = 31207,
UPGRADE_STOP = 31208,
MORPH = 31210, -- up to 32209
MORPH_STOP = 32210, -- up to 33209
REARM = 33410, -- bomber control
FIND_PAD = 33411, -- bomber control
UNIT_FLOAT_STATE = 33412,
EXCLUDE_PAD = 33413,
PRIORITY = 34220,
MISC_PRIORITY = 34221,
RETREAT = 34223,
UNIT_BOMBER_DIVE_STATE = 34281, -- bomber dive
AP_FLY_STATE = 34569, -- unit_air_plants
AP_AUTOREPAIRLEVEL = 34570, -- unit_air_plants
UNIT_SET_TARGET = 34923, -- unit_target_on_the_move
UNIT_CANCEL_TARGET = 34924,
UNIT_SET_TARGET_CIRCLE = 34925,
ONECLICK_WEAPON = 35000,
ANTINUKEZONE = 35130, -- ceasefire
PLACE_BEACON = 35170,
WAIT_AT_BEACON = 35171,
ABANDON_PW = 35200,
RECALL_DRONES = 35300,
TOGGLE_DRONES = 35301,
GOO_GATHER = 35646,
PUSH_PULL = 35666, -- weapon_impulse
WANT_ONOFF = 35667,
UNIT_KILL_SUBORDINATES = 35821, -- unit_capture
DISABLE_ATTACK = 35822, -- unit_launcher
UNIT_AI = 36214,
FIRE_AT_SHIELD = 36215,
FIRE_TOWARDS_ENEMY = 36216,
WANT_CLOAK = 37382,
PREVENT_OVERKILL = 38291,
TRANSFER_UNIT = 38292,
PREVENT_BAIT = 38293,
DONT_FIRE_AT_RADAR = 38372, -- fire at radar toggle gadget
JUMP = 38521,
TIMEWARP = 38522,
TURN = 38530,
WANTED_SPEED = 38825,
AIR_STRAFE = 39381,
AIR_MANUALFIRE = 38571,
FIELD_FAC_SELECT = 38693,
FIELD_FAC_UNIT_TYPE = 38694,
FIELD_FAC_QUEUELESS = 38695,
IMMEDIATETAKEOFF = 39384, -- Airpad abort.
-- terraform
RAMP = 39734,
LEVEL = 39736,
RAISE = 39737,
SMOOTH = 39738,
RESTORE = 39739,
BUMPY = 39740,
TERRAFORM_INTERNAL = 39801,
--[[ WARNING!! Only BASE VANILLA ZK commands belong here!
See the bigass chunk of text at the top of the file. ]]
}
local commandFiles = VFS.DirList('LuaRules/Configs/ModCommands')
for i = 1, #commandFiles do
local fileData = VFS.Include(commandFiles[i])
commands[fileData.name] = fileData.cmdID
end
return commands