Wire attack and combo execution (mobile step 3b)
Port the ActorInstanceBattle combo state machine, CRaceMotionData attack data, player motion/combo tables, NEW_Attack + OnAttack/OnHit packets and remote FUNC_ATTACK/FUNC_COMBO playback so keyboard and touch attacks swing and hit on the real-server path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5597842d90
commit
260d421bde
@@ -93,6 +93,12 @@ void CancelPlayerMovement();
|
||||
void SetPlayerJoystick(bool active, float x, float y);
|
||||
// player.SetAttackKeyState for native input (touch attack button).
|
||||
void SetPlayerAttackKey(bool pressed);
|
||||
// Per frame, before movement: combo pre-input, held attack key (CPythonPlayer::NEW_Attack), FUNC_COMBO
|
||||
// state packets for started attack motions, and the attack hit test (SendAttackPacket). wasMoving:
|
||||
// a walk is in progress on the server; its stop packet is sent first. Returns true when it sent it.
|
||||
bool ProcessPlayerAttack(float cameraYaw, float frameDt, bool wasMoving);
|
||||
// The main actor is playing an attack motion (movement input is ignored meanwhile).
|
||||
bool IsPlayerAttacking();
|
||||
// True when handler is the window passed to player.SetGameWindow (game.GameWindow).
|
||||
bool IsPlayerGameWindow(const void* handler);
|
||||
void SetWeaponPower(uint32_t dwMinPower, uint32_t dwMaxPower, uint32_t dwMinMagicPower, uint32_t dwMaxMagicPower, uint32_t dwAddPower);
|
||||
|
||||
Reference in New Issue
Block a user