@@ -32,6 +32,8 @@ simulated function Initialize(DynamicLoadOutSpec DynamicSpec, bool IsSuspect)
3232 if (Level .GetEngine ().EnableDevTools )
3333 log (self .Name$ " >>> Initialize ( "$DynamicSpec$" )");
3434
35+ mplog(self.Name$" >>> Initialize ("$DynamicSpec$" )");
36+
3537// if( DynamicSpec != None )
3638// {
3739// log(self.Name$" ... Dynamic Loadout spec :");
@@ -44,17 +46,19 @@ simulated function Initialize(DynamicLoadOutSpec DynamicSpec, bool IsSuspect)
4446 if ( DynamicSpec != None )
4547 {
4648 MutateLoadOutSpec ( DynamicSpec , IsSuspect );
47-
49+ mplog ( self . name$ "...MutateLoadOutSpec" );
4850 //log(self.Name$" ... After mutation:");
4951 //PrintLoadOutSpecToMPLog();
5052 }
5153
5254 ValidateLoadOutSpec (IsSuspect , DynamicSpec );
55+ mplog (self .name$ "...ValidateLoadOutSpec" );
5356
5457 //log(self.Name$" ... After validation:");
5558 //PrintLoadOutSpecToMPLog();
5659
5760 SpawnEquipmentFromLoadOutSpec (DynamicSpec );
61+ mplog (self .name$ "...SpawnEquipmentFromLoadOutSpec" );
5862
5963 //log(self.Name$" ... Spawned equipment:");
6064 //PrintLoadOutToMPLog();
@@ -112,13 +116,15 @@ simulated function bool ValidateLoadOutSpec(bool IsSuspect, DynamicLoadoutSpec D
112116 PrimaryAmmo = class <SwatAmmo >(LoadOutSpec [1 ]);
113117 SecondaryAmmo = class <SwatAmmo >(LoadOutSpec [3 ]);
114118
119+ mplog (self .name$ "...ValidateLoadOutSpec..." );
115120 if (DynamicSpec .GetPrimaryAmmoCount () < PrimaryAmmo .default .MinReloadsToCarry ) {
116121 DynamicSpec .SetPrimaryAmmoCount (PrimaryAmmo .default .MinReloadsToCarry );
117122 }
118123 if (DynamicSpec .GetSecondaryAmmoCount () < SecondaryAmmo .default .MinReloadsToCarry ) {
119124 DynamicSpec .SetSecondaryAmmoCount (SecondaryAmmo .default .MinReloadsToCarry );
120125 }
121126
127+ mplog (self .name$ "...ValidateLoadOutSpec::SetPrimary/SecondaryAmmo counts" );
122128 if (GetTotalWeight () > GetMaximumWeight () || GetTotalBulk () > GetMaximumBulk ()) {
123129 // We are overweight. We need to completely respawn our gear from scratch.
124130 AssertWithDescription (false , "Loadout " $self$ " exceeds maximum weight. It's getting reset to the default equipment." );
@@ -131,6 +137,7 @@ simulated function bool ValidateLoadOutSpec(bool IsSuspect, DynamicLoadoutSpec D
131137 }
132138 return true ;
133139 }
140+ mplog (self .name$ "...ValidateLoadOutSpec: checked max weight" );
134141
135142 for ( i = 0 ; i < Pocket .EnumCount ; i ++ )
136143 {
@@ -716,7 +723,7 @@ function float GetTotalWeight() {
716723 local float minimum ;
717724
718725 total = 0.0 ;
719- minimum = GetTotalWeight ();
726+ minimum = GetMinimumWeight ();
720727
721728 for (i = 0 ; i < Pocket .EnumCount ; i ++) {
722729 if (PocketEquipment [i ] == None )
0 commit comments