24 lines
523 B
Lua
24 lines
523 B
Lua
|
---@class UGCGameMode_C:BP_UGCGameBase_C
|
||
|
--Edit Below--
|
||
|
local UGCGameMode = {};
|
||
|
-- function UGCGameMode:ReceiveBeginPlay()
|
||
|
|
||
|
-- end
|
||
|
-- function UGCGameMode:ReceiveTick(DeltaTime)
|
||
|
|
||
|
-- end
|
||
|
-- function UGCGameMode:ReceiveEndPlay()
|
||
|
|
||
|
-- end
|
||
|
|
||
|
function UGCGameMode:LuaModifyDamage(Damage, DamageType, InstigatorPlayerState, VictimPlayerState)
|
||
|
return Damage
|
||
|
end
|
||
|
|
||
|
function UGCGameMode:Server_RespawnPlayer(InPlayerKey)
|
||
|
-- 3秒后重生
|
||
|
|
||
|
UGCGameSystem.GetRespawnComponent():AddRespawnPlayer(InPlayerKey, 3)
|
||
|
end
|
||
|
|
||
|
return UGCGameMode;
|