fix scale replication and other fixes
This commit is contained in:
1 parent
762167e3c2
commit
7b0ed3d05f
14 files changed
+477
-119
No files matched your search
@@ -625,7 +625,14 @@ void ACogSampleCharacter::OnGhostTagNewOrRemoved(const FGameplayTag InTag, int32
|
||||
//--------------------------------------------------------------------------------------------------------------------------
|
||||
void ACogSampleCharacter::OnScaleAttributeChanged(const FOnAttributeChangeData& Data)
|
||||
{
|
||||
Scale = Data.NewValue;
|
||||
//----------------------------------------------------------------------------------
|
||||
// 'Data.NewValue' is not used because it seems to only corresponds to the changes
|
||||
// of the BaseValue which do not account for the temporary modifiers.
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
const float CurrentScaleValue = AbilitySystem->GetNumericAttribute(Data.Attribute);
|
||||
Scale = CurrentScaleValue;
|
||||
|
||||
MARK_PROPERTY_DIRTY_FROM_NAME(ACogSampleCharacter, Scale, this);
|
||||
OnRep_Scale();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user