---@class UGCGameMode_C:BP_UGCGameBase_C --Edit Below-- ---@type AUGCGameModeBase local UGCGameMode = {}; function UGCGameMode:ReceiveBeginPlay() self.bIsOpenShovelingAbility = true end -- function UGCGameMode:ReceiveTick(DeltaTime) end -- function UGCGameMode:ReceiveEndPlay() 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 ---@param PlayerController UGCPlayerController_C ---@param Target APickUpWrapperActor ---@param ItemID int32 ---@param Count int32 function UGCGameMode:UGC_PlayerPickUpEvent(PlayerController, Target, ItemID, Count) table.func(UGCGameSystem.GameState.MiniGameManager, "OnPlayerPickup", PlayerController, Target, ItemID, Count); end return UGCGameMode;