-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathSettingsFile.cpp
More file actions
111 lines (109 loc) · 3.37 KB
/
Copy pathSettingsFile.cpp
File metadata and controls
111 lines (109 loc) · 3.37 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
/*
* Copyright (c) 2021
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "pch.h"
#include "CheckpointPlugin.h"
void CheckpointPlugin::writeSettingsFile() {
std::ofstream setFile(gameWrapper->GetBakkesModPath() / "plugins" / "settings" / "checkpointplugin.set");
setFile << R"(Freeplay Checkpoint
9|Bindings
9|Instructions: Enter Freeplay, HOLD button you wish to assign and click desired action button
9|KBM players: bind cpt_ commands manually in Bakkesmod Bindings tab
8|
0| Freeze (cpt_freeze) |cpt_capture_key cpt_freeze
7|
9| [ $cpt_freeze_key$ ]
0| Checkpoint (cpt_do_checkpoint) |cpt_capture_key cpt_do_checkpoint
7|
9| [ $cpt_do_checkpoint_key$ ]
0| Prev. Checkpoint (cpt_prev_checkpoint) |cpt_capture_key cpt_prev_checkpoint
7|
9| [ $cpt_prev_checkpoint_key$ ]
7|
1|Ignore While Playing##prev|cpt_ignore_prev
0| Next Checkpoint (cpt_next_checkpoint) |cpt_capture_key cpt_next_checkpoint
7|
9| [ $cpt_next_checkpoint_key$ ]
7|
1|Ignore While Playing##next|cpt_ignore_next
0|Freeze Ball/Unfreeze Car (cpt_freeze_ball)|cpt_capture_key cpt_freeze_ball
7|
9| [ $cpt_freeze_ball_key$ ]
7|
1|Ignore While Playing##fb|cpt_ignore_freeze_ball
9|
0| Mirror shot (cpt_mirror_state) |cpt_capture_key cpt_mirror_state
7|
9| [ $cpt_mirror_state_key$ ]
0| Rewind & Fast Forward (cannot change) |
7|
9| [ Steer Left & Right ]
9|
0| Apply All Bindings |cpt_apply_bindings
7|
9|(if bindings have never been set)
7|
0| Remove Bindings |cpt_remove_bindings
7|
9|:(
9|
0| Reset Default Bindings |cpt_reset_default_bindings
7|
9| (does not apply them)
9|
1|Disable binds in custom training|cpt_disable_training
1|Disable binds in workshop|cpt_disable_workshop
9|
9|Reset button loads last checkpoint instead of resetting if loaded before
5|(seconds)|cpt_load_after_reset|0|30
8|
9|
9|Variance - applied when leaving rewind mode
8|
5|Car Direction (degrees)|cpt_variance_car_dir|0|30
5|Car Speed (percent)|cpt_variance_car_spd|0|50
3|Car Rotation (strength)|cpt_variance_car_rot|0|10
5|Ball Direction (degrees)|cpt_variance_ball_dir|0|30
5|Ball Speed (percent)|cpt_variance_ball_spd|0|50
3|Ball Rotation (strength)|cpt_variance_ball_rot|0|10
5|Max. Total Variance|cpt_variance_tot|0|50
9|
1|Randomly mirror when loading checkpoint|cpt_mirror_loads
1|Load random checkpoint instead of latest|cpt_randomize_loads
8|
9|
9|Auto-reset checkpoint - reset when the following occurs:
8|
1|Goal Scored|cpt_reset_on_goal
1|Ball touches ground|cpt_reset_on_ball_ground
1|Load next checkpoint instead of resetting|cpt_next_instead_of_reset
8|
9|
9|Other options:
8|
9|Save File Name:
7|
12||cpt_filename
0|Delete ALL Shots (even locked shots; not undo-able!)|cpt_delete_all
7|
1|Enable Delete ALL Shots Button|cpt_allow_delete_all
9|
1|Show player boost while rewinding|cpt_show_boost
1|Clean History -- Erases future history points when resuming|cpt_clean_history
5|History Length (seconds)|cpt_history_length|10|120
5|History Refresh Rate (ms)|cpt_snapshot_interval|1|10
9|
1|Debug -- Show debugging state|cpt_debug
9|
9|
9| Freeplay Checkpoint
9| Bugs/Feature Requests: github.com/NitrOP7674 -or- on Discord: https://discord.gg/SPBxrtfrZw
9| ** Please make sure to read the README first! **
)";
setFile.close();
cvarManager->executeCommand("cl_settings_refreshplugins");
}