47 lines
1.6 KiB
Lua
47 lines
1.6 KiB
Lua
---@class BP_ShootingTarget_C:AActor
|
|
---@field Widget UWidgetComponent
|
|
---@field TripleScoreRange USphereComponent
|
|
---@field TargetMesh UStaticMeshComponent
|
|
---@field DefaultRootComponent USceneComponent
|
|
---@field DoubleScoreRange USphereComponent
|
|
---@field BaseScoreRange USphereComponent
|
|
---@field Center USceneComponent
|
|
---@field HitEffectPlayTime float
|
|
---@field StartTF FTransform
|
|
---@field FinishTF FTransform
|
|
---@field ResetTime float
|
|
---@field BaseScore int32
|
|
--Edit Below--
|
|
---@type BP_ShootingTarget_C
|
|
local ShootingTargetBase = require('Script.Blueprint.MiniLevelActor.ShootLevel.ShootingTargetBase')
|
|
|
|
local BP_ShootingTarget = setmetatable(
|
|
{
|
|
},
|
|
{
|
|
__index = ShootingTargetBase,
|
|
__metatable = ShootingTargetBase
|
|
}
|
|
);
|
|
|
|
function BP_ShootingTarget:ReceiveBeginPlay()
|
|
self.SuperClass.ReceiveBeginPlay(self);
|
|
self.BaseScoreRangeRadius = self.BaseScoreRange:GetScaledSphereRadius()
|
|
self.DoubleScoreRangeRadius = self.DoubleScoreRange:GetScaledSphereRadius()
|
|
self.TripleScoreRangeRadius = self.TripleScoreRange:GetScaledSphereRadius()
|
|
end
|
|
|
|
function BP_ShootingTarget:ReceiveTick(DeltaTime)
|
|
self.SuperClass.ReceiveTick(self, DeltaTime);
|
|
if UGCGameSystem.IsServer() then
|
|
else
|
|
self:TickPlayEffect()
|
|
end
|
|
end
|
|
|
|
function BP_ShootingTarget:ReceivePointDamage(Damage, DamageType, HitLocation, HitNormal, HitComponent, BoneName, ShotFromDirection, InstigatedBy, DamageCauser, HitInfo)
|
|
ShootingTargetBase.ReceivePointDamage(self, Damage, DamageType, HitLocation, HitNormal, HitComponent, BoneName, ShotFromDirection, InstigatedBy, DamageCauser, HitInfo)
|
|
end
|
|
|
|
|
|
return BP_ShootingTarget; |