@@ -48,11 +48,13 @@ toml::table WeaponConfig::to_toml() const {
4848 {" start_bullet" , start_bullet},
4949 {" fov" , fov},
5050 {" smooth" , smooth},
51+ {" rcs_smooth" , rcs_smooth},
5152 {" enabled" , enabled},
5253 {" aim_lock" , aim_lock},
5354 {" visibility_check" , visibility_check},
5455 {" multibone" , multibone},
5556 {" flash_check" , flash_check},
57+ {" rcs" , rcs},
5658 };
5759}
5860
@@ -61,11 +63,13 @@ WeaponConfig WeaponConfig::from_toml(const toml::table &table) {
6163 cfg.start_bullet = table[" start_bullet" ].value_or (cfg.start_bullet );
6264 cfg.fov = table[" fov" ].value_or (cfg.fov );
6365 cfg.smooth = table[" smooth" ].value_or (cfg.smooth );
66+ cfg.rcs_smooth = table[" smooth_rcs" ].value_or (cfg.rcs_smooth );
6467 cfg.enabled = table[" enabled" ].value_or (cfg.enabled );
6568 cfg.aim_lock = table[" aim_lock" ].value_or (cfg.aim_lock );
6669 cfg.visibility_check = table[" visibility_check" ].value_or (cfg.visibility_check );
6770 cfg.multibone = table[" multibone" ].value_or (cfg.multibone );
6871 cfg.flash_check = table[" flash_check" ].value_or (cfg.flash_check );
72+ cfg.rcs = table[" rcs" ].value_or (cfg.rcs );
6973 return cfg;
7074}
7175
@@ -78,8 +82,7 @@ toml::table AimbotConfig::to_toml() const {
7882 {" weapons" , weapons_table},
7983 {" global" , global.to_toml ()},
8084 {" hotkey" , static_cast <int >(hotkey)},
81- {" fov_circle" , fov_circle},
82- {" rcs" , rcs}};
85+ {" fov_circle" , fov_circle}};
8386}
8487
8588AimbotConfig AimbotConfig::from_toml (const toml::table &table) {
@@ -95,7 +98,6 @@ AimbotConfig AimbotConfig::from_toml(const toml::table &table) {
9598 }
9699 cfg.hotkey = static_cast <KeyCode>(table[" hotkey" ].value_or (static_cast <int >(cfg.hotkey )));
97100 cfg.fov_circle = table[" fov_circle" ].value_or (cfg.fov_circle );
98- cfg.rcs = table[" rcs" ].value_or (cfg.rcs );
99101 return cfg;
100102}
101103
0 commit comments