Calculate asymmetric movement penalty based on movement direction and injured leg.
Korean: 비대칭 이동 패널티 계산
Left leg damage affects left-side movements more, and vice versa. This creates realistic limping behavior where movement toward the injured side is more impaired.
Current body part health
Maximum health values
Direction of movement (positive = right, negative = left)
Additional speed multiplier for asymmetric penalty
Calculate modified movement speed with all penalties applied.
Korean: 수정된 이동 속도 계산
Applies base movement penalty, asymmetric penalties, and instant penalties to calculate the final movement speed.
Base movement speed (pixels per frame)
Current body part health
Maximum health values
Direction vector of movement
OptionalinstantPenalty: InstantMovementPenaltyOptional active instant penalty
Current timestamp
Final movement speed with all penalties applied
Calculate movement penalty from body part health.
Korean: 이동 패널티 계산
Analyzes leg health and returns comprehensive movement penalty including speed multiplier, stance change penalties, and balance effects.
Current body part health
Maximum health values
OptionalinstantPenalty: InstantMovementPenaltyOptional active instant penalty
Current timestamp for instant penalty expiry check
Movement penalty with all modifiers
Create instant movement penalty from knee/ankle strike.
Korean: 순간 이동 패널티 생성
Applied when knee or ankle vital points are struck, causing immediate severe movement impairment for 5 seconds.
Instant movement penalty configuration
PrivategetPrivateGet injury state and speed multiplier from leg health percentage.
Korean: 부상 상태 및 속도 배율 조회
Average leg health as percentage (0.0-1.0)
Injury state and corresponding speed multiplier
Check if player should enter HELPLESS state from leg damage.
Korean: 무력 상태 확인
Both legs critically damaged or hobbled - player cannot maintain effective combat stance and is highly vulnerable.
Current body part health
Maximum health values
True if player should enter helpless state
Check if player should enter VULNERABLE state from leg damage.
Korean: 취약 상태 확인
Low leg health increases chance of entering vulnerable state, making player more susceptible to follow-up attacks.
Current body part health
Maximum health values
True if player should enter vulnerable state
Movement Penalty System class.
Korean: 이동 패널티 시스템 클래스
Calculates movement penalties from leg injuries, manages instant penalties from knee/ankle strikes, and integrates with balance system.
Example