---@class UGCGameMode_C:BP_UGCGameBase_C --Edit Below-- ---@type UGCGameMode_C local UGCGameMode = {}; function UGCGameMode:ReceiveBeginPlay() self.bIsOpenShovelingAbility = DefaultSettings.OpenShovel; self.SuperClass.ReceiveBeginPlay(self); end function UGCGameMode:LuaModifyDamage(Damage, DamageType, InstigatorPlayerState, VictimPlayerState) UGCLogSystem.Log("[UGCGameMode:LuaModifyDamage] 接收到基准伤害:%f", Damage); local Instigator = nil; if InstigatorPlayerState ~= nil and UE.IsValid(InstigatorPlayerState) then Instigator = UGCGameSystem.GetPlayerControllerByPlayerKey(InstigatorPlayerState.PlayerKey); end return table.func(UGCGameSystem.GameState.MiniGameManager, "OnPlayerDamage", UGCGameSystem.GetPlayerPawnByPlayerKey(VictimPlayerState.PlayerKey), Damage, DamageType, Instigator); end -- function UGCGameMode:ReceiveTick(DeltaTime) -- end -- function UGCGameMode:ReceiveEndPlay() -- end return UGCGameMode;