diff options
Diffstat (limited to '')
| -rw-r--r-- | src/menu.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index 873f5ed..1064365 100644 --- a/src/menu.cpp +++ b/src/menu.cpp | |||
| @@ -63,6 +63,7 @@ FeatureState g_skybox{false, 0}; // skybox.png image override | |||
| 63 | FeatureState g_projectiles{true, 0}; // grenade / rocket ESP | 63 | FeatureState g_projectiles{true, 0}; // grenade / rocket ESP |
| 64 | bool g_proj_fuse = true; | 64 | bool g_proj_fuse = true; |
| 65 | bool g_proj_radius = true; | 65 | bool g_proj_radius = true; |
| 66 | bool g_proj_traj = true; | ||
| 66 | FeatureState g_chams{false, 0}; | 67 | FeatureState g_chams{false, 0}; |
| 67 | ChamsGroup g_chams_hostile{true, 3, {255, 60, 60, 255}, true, 3, | 68 | ChamsGroup g_chams_hostile{true, 3, {255, 60, 60, 255}, true, 3, |
| 68 | {255, 60, 60, 255}}; | 69 | {255, 60, 60, 255}}; |
| @@ -241,9 +242,10 @@ void config_save() { | |||
| 241 | g_fog_start, g_fog_end, (int)g_fog_skybox, (int)g_fog_disable); | 242 | g_fog_start, g_fog_end, (int)g_fog_skybox, (int)g_fog_disable); |
| 242 | fprintf(f, "[skybox]\nactive=%d\nbind=%d\n", g_skybox.active, | 243 | fprintf(f, "[skybox]\nactive=%d\nbind=%d\n", g_skybox.active, |
| 243 | g_skybox.bind); | 244 | g_skybox.bind); |
| 244 | fprintf(f, "[projectiles]\nactive=%d\nbind=%d\nfuse=%d\nradius=%d\n", | 245 | fprintf(f, "[projectiles]\nactive=%d\nbind=%d\nfuse=%d\nradius=%d\n" |
| 246 | "trajectory=%d\n", | ||
| 245 | g_projectiles.active, g_projectiles.bind, (int)g_proj_fuse, | 247 | g_projectiles.active, g_projectiles.bind, (int)g_proj_fuse, |
| 246 | (int)g_proj_radius); | 248 | (int)g_proj_radius, (int)g_proj_traj); |
| 247 | fprintf(f, "[chams]\nactive=%d\nbind=%d\n", g_chams.active, g_chams.bind); | 249 | fprintf(f, "[chams]\nactive=%d\nbind=%d\n", g_chams.active, g_chams.bind); |
| 248 | auto save_chams = [&](const char *name, const ChamsGroup &g) { | 250 | auto save_chams = [&](const char *name, const ChamsGroup &g) { |
| 249 | fprintf(f, "[%s]\nvis=%d\nvis_mat=%d\nvis_r=%d\nvis_g=%d\nvis_b=%d\n" | 251 | fprintf(f, "[%s]\nvis=%d\nvis_mat=%d\nvis_r=%d\nvis_g=%d\nvis_b=%d\n" |
| @@ -425,6 +427,8 @@ static bool config_load() { | |||
| 425 | g_proj_fuse = atoi(val) != 0; | 427 | g_proj_fuse = atoi(val) != 0; |
| 426 | else if (strcmp(key, "radius") == 0) | 428 | else if (strcmp(key, "radius") == 0) |
| 427 | g_proj_radius = atoi(val) != 0; | 429 | g_proj_radius = atoi(val) != 0; |
| 430 | else if (strcmp(key, "trajectory") == 0) | ||
| 431 | g_proj_traj = atoi(val) != 0; | ||
| 428 | } | 432 | } |
| 429 | if (chams_grp) { | 433 | if (chams_grp) { |
| 430 | ChamsGroup &g = *chams_grp; | 434 | ChamsGroup &g = *chams_grp; |
| @@ -702,6 +706,7 @@ void config_reset_defaults() { | |||
| 702 | g_projectiles = {true, 0}; | 706 | g_projectiles = {true, 0}; |
| 703 | g_proj_fuse = true; | 707 | g_proj_fuse = true; |
| 704 | g_proj_radius = true; | 708 | g_proj_radius = true; |
| 709 | g_proj_traj = true; | ||
| 705 | g_chams = {false, 0}; | 710 | g_chams = {false, 0}; |
| 706 | g_chams_hostile = {true, 3, {255, 60, 60, 255}, true, 3, | 711 | g_chams_hostile = {true, 3, {255, 60, 60, 255}, true, 3, |
| 707 | {255, 60, 60, 255}}; | 712 | {255, 60, 60, 255}}; |
