-
Notifications
You must be signed in to change notification settings - Fork 0
/
menudef.aimassist
237 lines (207 loc) · 8.06 KB
/
menudef.aimassist
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
//while these settings are nice to have, i will not be exposing most of these options to the average user.
//any poweruser wanting to tinker around can still access these settings via the 'openmenu' console command.
//AIM ASSIST (MAIN)
AddOptionMenu "OptionsMenu" {
Submenu "Aim Assist Mod", "AimAssistMenu"
StaticText ""
}
AddOptionMenu "OptionsMenuSimple" {
Submenu "Aim Assist Mod", "AimAssistMenu"
StaticText ""
}
OptionMenu "AimAssistMenu" {
Title "Aim Assist"
StaticText "v0.8.0 by RicardoLuis0","Gold"
StaticText ""
Option "Aim Assist Enabled","cl_aim_assist_enabled","OnOff"
Submenu "Settings Presets", "AimAssistPresetMenu"
StaticText ""
StaticText "---","Gold"
StaticText ""
Submenu "Setup Controls","AimAssistControls"
StaticText ""
Submenu "Basic Settings","AimAssistBasicOptions"
StaticText ""
Submenu "Aim Height Offset Settings","AimAssistAimHeightOffset"
StaticText ""
Submenu "Performance Settings","AimAssistPerformanceOptions"
StaticText ""
StaticText "---","Gold"
StaticText ""
Submenu "Recenter Settings","AimAssistRecenterOptions"
StaticText ""
StaticText "---","Gold"
StaticText ""
Submenu "Debug","AimAssistDebugOptions"
StaticText ""
Command "Update Settings (Ingame)","netevent AimAssistUpdateCVARs"
}
//BASIC
OptionValue "AimAssist_AssistMethods" {
1,"Closest to Crosshair"
0,"Closest to Player"
}
OptionMenu "AimAssistBasicOptions" {
Title "Aim Assist Options"
StaticText ""
Slider "Max Assist Angle","cl_aim_assist_angle_max",1,15,0.5
StaticText "Max Angle for Aim Assist","DarkRed"
StaticText "Lower to increases performance","DarkRed"
StaticText ""
Slider "Max Assist Distance","cl_aim_assist_max_dist",100,5000,100
StaticText "Max Distance for Aim Assist","DarkRed"
StaticText "Lower to increases performance","DarkRed"
StaticText ""
Slider "Assist Intensity","cl_aim_assist_rot_speed",0.1,5,0.1
StaticText "Intensity in angle per tick for Aim Assist","DarkRed"
StaticText "Lower to decrease assist force","DarkRed"
StaticText ""
Option "Targeting Method","cl_aim_assist_method","AimAssist_AssistMethods"
StaticText "Target Selection Method","DarkRed"
StaticText "\"Closer to crosshair\" has better performance","DarkRed"
}
//CONTROLS
AddOptionMenu "CustomizeControls" after "ChatControlsMenu" {
Submenu "Aim Assist Mod","AimAssistControls"
}
OptionMenu "AimAssistControls" {
Title "Aim Assist Controls"
ScrollTop 2
StaticTextSwitchable "$CNTRLMNU_SWITCHTEXT1", "$CNTRLMNU_SWITCHTEXT2", "ControlMessage"
StaticText ""
Control "Center View","netevent AimAssistCenterView"
StaticText ""
Control "Toggle Aim Assist","netevent AimAssistToggle"
StaticText ""
Control "Hold Toggle Aim Assist","+AimAssistToggleHold"
StaticText ""
}
//DEBUG
OptionMenu "AimAssistDebugOptions" {
Title "Aim Assist Debug Options"
StaticText ""
StaticText ""
Option "Aim Debug Marker","cl_aim_assist_debug_marker","OnOff"
StaticText "Show markers for current aim","DarkRed"
StaticText ""
Option "Trace Debug","cl_aim_assist_trace_debug","OnOff"
StaticText "Show the traces being fired","DarkRed"
StaticText ""
}
//AIM HEIGHTS
OptionValue "AimAssist_AimMethods" {
0,"Relative to Enemy Height"
1,"Relative to Player View Height"
2,"Relative to Both"
}
OptionMenu "AimAssistAimHeightOffset" {
Title "Aim Height Offset Options"
StaticText ""
StaticText ""
Option "Aim Method","cl_aim_assist_height_mode","AimAssist_AimMethods"
StaticText "Whether to aim based on player height or monster height","DarkRed"
StaticText ""
CheckValSlider "Monster Plus Aim Offset","cl_aim_assist_vertical_plus_offset_enemy",0,64,0.5,1,"cl_aim_assist_height_mode",1,0
StaticText "Add this to aim height of the enemy","DarkRed"
StaticText ""
CheckValSlider "Monster Minus Aim Offset","cl_aim_assist_vertical_minus_offset_enemy",0,64,0.5,1,"cl_aim_assist_height_mode",1,0
StaticText "Subtract this from aim height of the enemy","DarkRed"
StaticText ""
CheckValSlider "Monster Height Multiplier","cl_aim_assist_enemy_height_mult",0,1,0.1,1,"cl_aim_assist_height_mode",1,0
StaticText "Multiply enemy height by this","DarkRed"
StaticText ""
CheckValSlider "Player Plus Aim Offset","cl_aim_assist_vertical_plus_offset_player",0,64,0.5,1,"cl_aim_assist_height_mode",0,0
StaticText "Add this to aim height of the player","DarkRed"
StaticText ""
CheckValSlider "Player Minus Aim Offset","cl_aim_assist_vertical_minus_offset_player",0,64,0.5,1,"cl_aim_assist_height_mode",0,0
StaticText "Subtract this from aim height of the player","DarkRed"
StaticText ""
CheckValSlider "Player Height Multiplier","cl_aim_assist_player_height_mult",0,1,0.1,1,"cl_aim_assist_height_mode",0,0
StaticText "Multiply player height by this","DarkRed"
StaticText ""
CheckValSlider "Transition Start Distance","cl_aim_assist_height_mode_transition_distance_start",0,5000,10,1,"cl_aim_assist_height_mode",2,1
StaticText "Distance to start transition between monster and player view target","DarkRed"
StaticText ""
CheckValSlider "Transition End Distance","cl_aim_assist_height_mode_transition_distance_end",0,5000,10,1,"cl_aim_assist_height_mode",2,1
StaticText "Distance to end transition between monster and player view target","DarkRed"
StaticText ""
}
//PERFORMANCE
OptionValue "AimAssist_OnObstruction" {
0,"Don't Aim"
1,"Aim Correction"
2,"Target Closest"
}
OptionMenu "AimAssistPerformanceOptions" {
Title "Aim Assist Performance Options"
StaticText ""
StaticText ""
Option "Check for Obstacles","cl_aim_assist_check_for_obstacles","OnOff"
StaticText "Check if there are obstructions between aim and enemy","DarkRed"
StaticText "Disable to increase performance","DarkRed"
StaticText ""
Option "On Obstruction","cl_aim_assist_on_obstruction","AimAssist_OnObstruction","cl_aim_assist_check_for_obstacles"
StaticText "Behavior on obstruction","DarkRed"
StaticText ""
ReverseSlider "Angle Precision","cl_aim_assist_precision",0.1,5,0.1
StaticText "Assist checks in increments of this","DarkRed"
StaticText "Lower to increase performance","DarkRed"
StaticText ""
ReverseSlider "Radial Precision","cl_aim_assist_radial_precision",15,90,5
StaticText "Radial check by this, for example,","DarkRed"
StaticText "90 would be a straight '+',","DarkRed"
StaticText "45 is '+' and 'x', etc","DarkRed"
StaticText "Lower to increase performance","DarkRed"
}
//PRESETS
OptionMenu "AimAssistPresetMenu" {
Title "Presets"
Class "AimAssistPresetsMenu"
Submenu "Built-in Presets", "AimAssistBuiltInPresets"
UserPresetsSubmenu "User Presets", "AimAssistUserPresets"
Submenu "Save Current Preset", "AimAssistSaveUserPreset"
StaticText ""
AimAssistConfirmCommand "Reset to Default", "ResetToDefault", "", "Are you sure you want to reset to default settings?"
StaticText ""
StaticText ""
AimAssistConfirmCommand "Load Old Format Config", "LoadOldCVars", "", "Are you sure you want to replace the current config?"
}
OptionMenu "AimAssistBuiltInPresets" {
Title "Built-In Presets"
AimAssistConfirmCommand "Default", "LoadDefaultPreset", "", "Are you sure you want to load the default preset?"
AimAssistConfirmCommand "Performance", "LoadPerformancePreset", "", "Are you sure you want to load the performance preset?"
}
OptionMenu "AimAssistUserPresets" {
Title "User Presets"
Class "AimAssistUserPresetsMenu"
}
OptionMenu "AimAssistSaveUserPreset" {
Class "AimAssistSavePresetMenu"
StaticText ""
StaticText ""
StaticText ""
StaticText ""
StaticText ""
StaticText ""
StaticText ""
StaticText ""
StaticText ""
StaticText ""
StaticText ""
StaticText ""
TextField "Preset Name: ", "__aim_assist_save_preset_name"
AimAssistSaveUserPreset
}
//RECENTER
OptionMenu "AimAssistRecenterOptions" {
Title "Recenter Options"
StaticText "Recenter: Copyright Alexander Kromm (mmaulwurff@gmail.com) 2020-2021","Gold"
StaticText ""
Option "Enabled","cl_recenter_enabled","OnOff"
StaticText ""
Slider "Step","cl_recenter_step",0.1,5,0.1
StaticText ""
Option "Always Enabled","cl_recenter_always_enabled","OnOff"
StaticText "Always run Recenter, even while tracking an enemy. This is not recommended to be enabled,","DarkRed"
StaticText "as it can cause both mods to try to move the player aim in opposite directions","DarkRed"
}