Skip to content

Commit cd0dff6

Browse files
committed
Removed GameSpy achievements and stats code
GameSpy server hosted by GSC (gamegsc.com) doesn't store achievements and stats. Thus, all this code is nearly dead legacy code. Only thing that keeps it working is mp_profile.ltx file that gets created locally on your PC – the data is being saved only in this file. From project maintenance view, it's better to remove it.
1 parent f7e8e61 commit cd0dff6

135 files changed

Lines changed: 37 additions & 10043 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/xrGame/CMakeLists.txt

Lines changed: 0 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ target_sources(xrGame PRIVATE
1010
account_manager.cpp
1111
account_manager.h
1212
account_manager_script.cpp
13-
accumulative_states.h
1413
action_base.h
1514
action_base_inline.h
1615
action_base_script.cpp
@@ -241,8 +240,6 @@ target_sources(xrGame PRIVATE
241240
alife_update_manager.h
242241
AmebaZone.cpp
243242
AmebaZone.h
244-
ammunition_groups.cpp
245-
ammunition_groups.h
246243
animation_movement_controller.cpp
247244
animation_movement_controller.h
248245
animation_script_callback.cpp
@@ -259,12 +256,6 @@ target_sources(xrGame PRIVATE
259256
Artefact.cpp
260257
Artefact.h
261258
artefact_script.cpp
262-
atlas_stalkercoppc_v1.c
263-
atlas_stalkercoppc_v1.h
264-
#atlas_stalkercs_v1.c
265-
#atlas_stalkercs_v1.h
266-
atlas_submit_queue.cpp
267-
atlas_submit_queue.h
268259
attachable_item.cpp
269260
attachable_item.h
270261
attachable_item_inline.h
@@ -273,30 +264,20 @@ target_sources(xrGame PRIVATE
273264
autosave_manager.cpp
274265
autosave_manager.h
275266
autosave_manager_inline.h
276-
awards_store.cpp
277-
awards_store.h
278267
base_client_classes_script.cpp
279268
base_client_classes_wrappers.h
280269
BastArtifact.cpp
281270
BastArtifact.h
282271
battleye.h
283272
#battleye_system.cpp
284273
#battleye_system.h
285-
best_scores_helper.cpp
286-
best_scores_helper.h
287-
best_scores_store.cpp
288-
best_scores_store.h
289274
BlackDrops.cpp
290275
BlackDrops.h
291276
BlackGraviArtifact.cpp
292277
BlackGraviArtifact.h
293-
black_list.cpp
294-
black_list.h
295278
BlockAllocator.h
296279
Bolt.cpp
297280
Bolt.h
298-
bone_groups.cpp
299-
bone_groups.h
300281
BoneProtections.cpp
301282
BoneProtections.h
302283
BottleItem.cpp
@@ -349,7 +330,6 @@ target_sources(xrGame PRIVATE
349330
client_spawn_manager_script.cpp
350331
ClimableObject.cpp
351332
ClimableObject.h
352-
command_switch_counter.h
353333
configs_common.cpp
354334
configs_common.h
355335
configs_dumper.cpp
@@ -449,8 +429,6 @@ target_sources(xrGame PRIVATE
449429
doors.h
450430
doors_manager.cpp
451431
doors_manager.h
452-
double_shot_double_kill.cpp
453-
double_shot_double_kill.h
454432
DummyArtifact.cpp
455433
DummyArtifact.h
456434
#DynamicHeightMap.cpp
@@ -499,8 +477,6 @@ target_sources(xrGame PRIVATE
499477
EntityCondition_script.cpp
500478
Entity.cpp
501479
Entity.h
502-
event_conditions_collection.cpp
503-
event_conditions_collection.h
504480
ExoOutfit.cpp
505481
ExoOutfit.h
506482
Explosive.cpp
@@ -513,8 +489,6 @@ target_sources(xrGame PRIVATE
513489
F1.h
514490
FadedBall.cpp
515491
FadedBall.h
516-
faster_than_bullets_time.cpp
517-
faster_than_bullets_time.h
518492
filereceiver_node.cpp
519493
filereceiver_node.h
520494
filetransfer_common.h
@@ -574,7 +548,6 @@ target_sources(xrGame PRIVATE
574548
game_cl_teamdeathmatch.cpp
575549
game_cl_teamdeathmatch.h
576550
game_cl_teamdeathmatch_snd_messages.h
577-
game_events_handler.h
578551
game_location_selector.h
579552
game_location_selector_inline.h
580553
game_news.cpp
@@ -586,10 +559,6 @@ target_sources(xrGame PRIVATE
586559
game_path_manager_inline.h
587560
GamePersistent.cpp
588561
GamePersistent.h
589-
game_state_accumulator.cpp
590-
game_state_accumulator.h
591-
game_state_accumulator_inline.h
592-
game_state_accumulator_state_register.cpp
593562
game_sv_artefacthunt.cpp
594563
game_sv_artefacthunt.h
595564
game_sv_artefacthunt_process_event.cpp
@@ -650,8 +619,6 @@ target_sources(xrGame PRIVATE
650619
HairsZone_script.cpp
651620
HangingLamp.cpp
652621
HangingLamp.h
653-
harvest_time.cpp
654-
harvest_time.h
655622
Helicopter2.cpp
656623
Helicopter.cpp
657624
helicopter.h
@@ -668,9 +635,6 @@ target_sources(xrGame PRIVATE
668635
hit_memory_manager.cpp
669636
hit_memory_manager.h
670637
hit_memory_manager_inline.h
671-
hits_store.cpp
672-
hits_store.h
673-
hits_store_inline.h
674638
holder_custom.cpp
675639
holder_custom.h
676640
holder_custom_script.cpp
@@ -756,16 +720,9 @@ target_sources(xrGame PRIVATE
756720
inventory_upgrade_root.cpp
757721
inventory_upgrade_root.h
758722
inventory_upgrade_root_inline.h
759-
invincible_fury.cpp
760-
invincible_fury.h
761723
item_manager.cpp
762724
item_manager.h
763725
item_manager_inline.h
764-
killer_victim_velocity_angle.cpp
765-
killer_victim_velocity_angle.h
766-
kills_store.cpp
767-
kills_store.h
768-
kills_store_inline.h
769726
Level_Bullet_Manager.cpp
770727
Level_bullet_manager_firetrace.cpp
771728
Level_Bullet_Manager.h
@@ -921,8 +878,6 @@ target_sources(xrGame PRIVATE
921878
object_property_evaluators.cpp
922879
object_property_evaluators.h
923880
object_property_evaluators_inline.h
924-
obsolete_queue.h
925-
obsolete_queue_inline.h
926881
obstacles_query.cpp
927882
obstacles_query.h
928883
obstacles_query_inline.h
@@ -1008,41 +963,6 @@ target_sources(xrGame PRIVATE
1008963
player_hud_tune.h
1009964
player_name_modifyer.cpp
1010965
player_name_modifyer.h
1011-
player_spot_params.cpp
1012-
player_spot_params.h
1013-
player_state_achilles_heel.cpp
1014-
player_state_achilles_heel.h
1015-
player_state_ambassador.cpp
1016-
player_state_ambassador.h
1017-
player_state_ammo_elapsed.cpp
1018-
player_state_ammo_elapsed.h
1019-
player_state_avenger.cpp
1020-
player_state_avenger.h
1021-
player_state_blitzkrieg.cpp
1022-
player_state_blitzkrieg.h
1023-
player_state_cherub.cpp
1024-
player_state_cherub.h
1025-
player_state_climber.cpp
1026-
player_state_climber.h
1027-
player_state_mad.cpp
1028-
player_state_mad.h
1029-
player_state_marksman.cpp
1030-
player_state_marksman.h
1031-
player_state_multichampion.cpp
1032-
player_state_multichampion.h
1033-
player_state_opener.cpp
1034-
player_state_opener.h
1035-
player_state_param.h
1036-
player_state_params.cpp
1037-
player_state_params.h
1038-
player_state_remembrance.cpp
1039-
player_state_remembrance.h
1040-
player_state_skewer.cpp
1041-
player_state_skewer.h
1042-
player_state_toughy.cpp
1043-
player_state_toughy.h
1044-
player_team_win_score.cpp
1045-
player_team_win_score.h
1046966
pose_extrapolation.cpp
1047967
pose_extrapolation.h
1048968
poses_blending.cpp
@@ -1053,7 +973,6 @@ target_sources(xrGame PRIVATE
1053973
pp_effector_custom.h
1054974
pp_effector_distance.cpp
1055975
pp_effector_distance.h
1056-
profile_data_types.cpp
1057976
profile_data_types.h
1058977
profile_data_types_script.cpp
1059978
profile_data_types_script.h
@@ -1104,16 +1023,6 @@ target_sources(xrGame PRIVATE
11041023
restricted_object_inline.h
11051024
restricted_object_obstacle.cpp
11061025
restricted_object_obstacle.h
1107-
reward_event_generator.cpp
1108-
reward_event_generator.h
1109-
reward_event_handler.h
1110-
rewarding_events_handlers.cpp
1111-
rewarding_events_handlers.h
1112-
rewarding_state_events.cpp
1113-
rewarding_state_events.h
1114-
reward_manager.cpp
1115-
reward_manager.h
1116-
reward_snd_messages.h
11171026
RGD5.h
11181027
RocketLauncher.cpp
11191028
RocketLauncher.h
@@ -1266,8 +1175,6 @@ target_sources(xrGame PRIVATE
12661175
sight_manager_target.cpp
12671176
Silencer.cpp
12681177
Silencer.h
1269-
silent_shots.cpp
1270-
silent_shots.h
12711178
SimpleDetector.cpp
12721179
SimpleDetector.h
12731180
SleepEffector.cpp
@@ -1362,8 +1269,6 @@ target_sources(xrGame PRIVATE
13621269
spectator_camera_first_eye.h
13631270
Spectator.cpp
13641271
Spectator.h
1365-
sprinter_stopper.cpp
1366-
sprinter_stopper.h
13671272
squad_hierarchy_holder.cpp
13681273
squad_hierarchy_holder.h
13691274
squad_hierarchy_holder_inline.h
@@ -1441,8 +1346,6 @@ target_sources(xrGame PRIVATE
14411346
stalker_death_planner.cpp
14421347
stalker_death_planner.h
14431348
stalker_decision_space.h
1444-
stalker_flair.cpp
1445-
stalker_flair.h
14461349
stalker_get_distance_actions.cpp
14471350
stalker_get_distance_actions.h
14481351
stalker_get_distance_planner.cpp
@@ -1497,16 +1400,11 @@ target_sources(xrGame PRIVATE
14971400
stalker_velocity_holder.cpp
14981401
stalker_velocity_holder.h
14991402
stalker_velocity_holder_inline.h
1500-
state_arguments_functions.cpp
1501-
state_arguments_functions.h
15021403
static_cast_checked.hpp
15031404
#static_cast_checked_test.cpp
15041405
static_obstacles_avoider.cpp
15051406
static_obstacles_avoider.h
15061407
static_obstacles_avoider_inline.h
1507-
#stats_submitter.cpp
1508-
stats_submitter_dsa_params.cpp
1509-
stats_submitter.h
15101408
StdAfx.cpp
15111409
StdAfx.h
15121410
steering_behaviour_alignment.h
@@ -1553,8 +1451,6 @@ target_sources(xrGame PRIVATE
15531451
traffic_optimization.h
15541452
trajectories.cpp
15551453
trajectories.h
1556-
UIAchivementsIndicator.cpp
1557-
UIAchivementsIndicator.h
15581454
UIDialogHolder.cpp
15591455
UIDialogHolder.h
15601456
ui_export_script.cpp

src/xrGame/GameObject.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "xrPhysics/MathUtils.h"
2828
#include "game_cl_base_weapon_usage_statistic.h"
2929
#include "game_cl_mp.h"
30-
#include "reward_event_generator.h"
3130
#include "xrAICore/Navigation/game_level_cross_table.h"
3231
#include "ai_obstacle.h"
3332
#include "magic_box3.h"
@@ -392,9 +391,6 @@ void CGameObject::OnEvent(NET_Packet& P, u16 type)
392391
if (GameID() != eGameIDSingle)
393392
{
394393
Game().m_WeaponUsageStatistic->OnBullet_Check_Result(false);
395-
game_cl_mp* mp_game = smart_cast<game_cl_mp*>(&Game());
396-
if (mp_game->get_reward_generator())
397-
mp_game->get_reward_generator()->OnBullet_Hit(Hitter, this, Weapon, HDS.boneID);
398394
}
399395
//---------------------------------------------------------------------------
400396
}

src/xrGame/Level_Bullet_Manager.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "mt_config.h"
1212
#include "game_cl_base_weapon_usage_statistic.h"
1313
#include "game_cl_mp.h"
14-
#include "reward_event_generator.h"
1514

1615
#include "Include/xrRender/UIRender.h"
1716
#include "Include/xrRender/Kinematics.h"
@@ -196,9 +195,6 @@ void CBulletManager::AddBullet(const Fvector& position, const Fvector& direction
196195
{
197196
if (SendHit)
198197
Game().m_WeaponUsageStatistic->OnBullet_Fire(&bullet, cartridge);
199-
game_cl_mp* tmp_cl_game = smart_cast<game_cl_mp*>(&Game());
200-
if (tmp_cl_game->get_reward_generator())
201-
tmp_cl_game->get_reward_generator()->OnBullet_Fire(sender_id, sendersweapon_id, position, direction);
202198
}
203199
}
204200

src/xrGame/MainMenu.cpp

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
#include "account_manager.h"
3636
#include "login_manager.h"
3737
#include "profile_store.h"
38-
#include "stats_submitter.h"
39-
#include "atlas_submit_queue.h"
4038
#include "xrEngine/xr_input.h"
4139

4240
// fwd. decl.
@@ -104,14 +102,6 @@ CMainMenu::CMainMenu()
104102
m_deactivated_frame = 0;
105103

106104
m_sPatchURL = "";
107-
#ifdef XR_PLATFORM_WINDOWS
108-
m_pGameSpyFull = NULL;
109-
m_account_mngr = NULL;
110-
m_login_mngr = NULL;
111-
m_profile_store = NULL;
112-
m_stats_submitter = NULL;
113-
m_atlas_submit_queue = NULL;
114-
#endif
115105

116106
m_sPDProgress.IsInProgress = false;
117107
m_downloaded_mp_map_url._set("");
@@ -155,16 +145,10 @@ CMainMenu::CMainMenu()
155145
downloadMsg->AddCallbackStr(
156146
"button_yes", MESSAGE_BOX_YES_CLICKED, CUIWndCallback::void_function(this, &CMainMenu::OnDownloadMPMap));
157147
}
158-
159148
#endif
160-
161149
m_account_mngr = xr_new<gamespy_gp::account_manager>(m_pGameSpyFull->GetGameSpyGP());
162150
m_login_mngr = xr_new<gamespy_gp::login_manager>(m_pGameSpyFull);
163-
m_profile_store = xr_new<gamespy_profile::profile_store>(m_pGameSpyFull);
164-
#ifdef XR_PLATFORM_WINDOWS
165-
m_stats_submitter = xr_new<gamespy_profile::stats_submitter>(m_pGameSpyFull);
166-
m_atlas_submit_queue = xr_new<atlas_submit_queue>(m_stats_submitter);
167-
#endif
151+
m_profile_store = xr_new<gamespy_profile::profile_store>();
168152
}
169153

170154
Device.seqFrame.Add(this, REG_PRIORITY_LOW - 1000);
@@ -185,8 +169,6 @@ CMainMenu::~CMainMenu()
185169
xr_delete(m_account_mngr);
186170
xr_delete(m_login_mngr);
187171
xr_delete(m_profile_store);
188-
xr_delete(m_stats_submitter);
189-
xr_delete(m_atlas_submit_queue);
190172

191173
xr_delete(m_pGameSpyFull);
192174
#endif
@@ -593,7 +575,6 @@ void CMainMenu::OnFrame()
593575
case GSUpdateStatus::Unknown: SetErrorDialog(ErrMasterServerConnectFailed); break;
594576
case GSUpdateStatus::OutOfService: SetErrorDialog(ErrGSServiceFailed); break;
595577
}
596-
m_atlas_submit_queue->update();
597578
}
598579
#endif
599580

0 commit comments

Comments
 (0)