Skip to content

New Engine Feature: Add companion opcodes for op248/op249#6

Open
4Luke4 wants to merge 1 commit into
Bubb13:develfrom
4Luke4:miss
Open

New Engine Feature: Add companion opcodes for op248/op249#6
4Luke4 wants to merge 1 commit into
Bubb13:develfrom
4Luke4:miss

Conversation

@4Luke4
Copy link
Copy Markdown

@4Luke4 4Luke4 commented May 15, 2026

This pull request adds support for two new effect types (opcodes 410 and 411) that trigger custom .EFF files when a melee or ranged attack misses.

New Missed Attack Effects Functionality:

  • Added support for "miss melee" (op410) and "miss ranged" (op411) effects, including:
    • New vectors in ExStatData to store these effects, with associated management functions for copying, destroying, and transferring effects.
    • New API functions: GetMissMeleeEffectCount, GetMissMeleeEffect, GetMissRangedEffectCount, and GetMissRangedEffect, exposed in headers and bindings.
    • New hooks to apply these effects when an attack misses (Opcode_Hook_ApplyMissMeleeEffects, Opcode_Hook_ApplyMissRangedEffects).

Integration with Effect Application and Stat Management:

  • Modified op248 and op249 hooks to support the new miss effect types, ensuring effects are properly transferred and managed.
  • Updated stat hooks (OnDestruct, OnReload, OnEqu, OnPlusEqu) to correctly copy, destroy, and transfer miss effects during stat changes.

See also: Bubb13/EEex#121.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant