Skip to main content

Titan Greaves

Kicks enemies backward.

Enemies take damage on impact.

Enemies slammed into walls receive additional damage.

Implementation​

On collision, the Knockback Pack runs on every hit enemy. KickDamage applies a flat -3 to Health, and RemoveCastingModifiers interrupts whatever the enemy was casting.

Knockback — Effect Pack
Effect Pack: Knockback
Modifier Remover Effect (BS): RemoveKnockbackModifiers
Target Stat:Knockback / IntClamped / Knockedback
Processor:ModifierRemover
Float Stat Effect (BS): ResetKnockbackTweenValue
Target Stat:Knockback / Tween_Vector3 / KnockbackTween
Processor:Set_Float
Apply Type:Temporary
Vector3 Stat Effect (BS): SetKnockbackEndPoint
Target Stat:Knockback / Vector3 / KnockbackEndPoint
Processor:Set_Vector3
Float Stat Effect (BS): SetKnockbackDuration
Target Stat:Knockback / FloatClamped / KnockbackDuration
Value:0.75
Processor:Set_Float
Int Stat Effect (BS): Knockback
Target Stat:Knockback / IntClamped / Knockedback
Value:1
Apply Type:Temporary
Float Stat Effect (BS): KickDamage
Target Stat:Default / FloatClamped / Health
Value:-3
Processor:Standard_Float
Float Stat Effect (BS): VerticalForce
Target Stat:VerticalMovement / FloatClamped / VerticalSpeed
Value:10
Processor:Standard_Float
Modifier Remover Effect (BS): RemoveCastingModifiers(AttackInteruption)
Target Stat:Default / IntClamped / SkillCastingOnProgress_
Processor:ModifierRemover

The knockback movement is a tween. SetKnockbackEndPoint computes the destination from the kick direction (using Direction → ProjectOnPlane → Multiply), SetKnockbackDuration sets it to 0.75 seconds, ResetKnockbackTweenValue restarts the tween, and VerticalForce adds a small upward pop.

KnockbackTween — Stat (Tweener Vector3)
Stat (Tweener Vector3): KnockbackTween
Stat Key:Knockback / Tween_Vector3 / KnockbackTween
Relation: MaxValue:KnockbackDuration
Max › Type:Stat
Max:0.75
Togglable:true
Toggle Stat Key:Knockback
Toggle On Value Type:On Positive
Ease:Out Quad
Value Update Type:Add Dif
Effect Template:KnockbackTweenTemplate

The kick resolves through an attached Effector. EffectorInitializer sets the Effector's AttachedActor Stat (a FromStat), so the knockback Effects always target the specific enemy that was kicked.

TitanGreaves_Damager › Effector_Attacher — Prefab component
Effector_Attacher: TitanGreaves_Damager
Trigger Actors:Enemy
Hit Limitation Type:Unlimited
Limit Exceeded Behaviour:Dispose
Do Not Effect Target Twice:true
Attaching Effector:TitanGreaves_PushedAttachedEffector (Effector_OnCollide)
Attaching Target Entity:Actor Entity
Attachment Point:On Attached Entity
Attachment Offset:(0, 1, 0)
Effect Pack → initializer:EffectorInitializer

While an enemy is being knocked back, the WallCollision Pack watches for it colliding with the environment. On a wall hit it applies WallCollisionDamage (an additional -2 to Health) and RemoveKnockedbackModifiers to stop the tween. StatValueAdapters reverse the tween's start and end points so the enemy settles against the wall instead of clipping through it.

TitanGreaves_PushedAttachedEffector › Effector_OnCollide — Prefab component
Effector_OnCollide: TitanGreaves_PushedAttachedEffector
Trigger Actors:Neutral
Hit Limitation Type:By Count
Hit Limit:1
Limit Exceeded Behaviour:Dispose
Do Not Effect Target Twice:true
Effect Target:Custom: FromEffectorStat
Effect Pack (target Custom, source Source):WallCollision