Jump to content

Inquisitor/Undead Hunter Hold Immunity


Recommended Posts

Both Undead Hunters and Inquisitors are immune to hold, but the hold animation will still play. This adds immunty to the hold animation to the special abilities that grant these bonuses. BD caught the Inquisitor bug, but devSin got it for the Undead Hunter as well.

 

// inqusitor/undead hunter hold immunity not suppressing animation
COPY_EXISTING ~spcl233b.spl~ ~override~
             ~spcl242.spl~  ~override~
 READ_LONG  0x64 "abil_off"
 READ_SHORT 0x68 "abil_num"
 READ_LONG  0x6a "fx_off"
 SET "loops" = 0
 SET "delta" = 0
 WHILE ("%loops%" < "%abil_num%") BEGIN
   READ_SHORT ("%abil_off%" + 0x20 + (0x28 * "%loops%")) "abil_fx_idx"
   SET "abil_fx_idx" = ("%abil_fx_idx%" + "%delta%")
   WRITE_SHORT ("%abil_off%" + 0x20 + (0x28 * "%loops%")) "%abil_fx_idx%"
   INSERT_BYTES  ("%fx_off%" +        (0x30 * "%abil_fx_idx%")) 0x30
     WRITE_SHORT ("%fx_off%" +        (0x30 * "%abil_fx_idx%")) 296 // suppress animation
     WRITE_BYTE  ("%fx_off%" + 0x01 + (0x30 * "%abil_fx_idx%")) 1   // target:self
     WRITE_BYTE  ("%fx_off%" + 0x02 + (0x30 * "%abil_fx_idx%")) 2   // power
     WRITE_BYTE  ("%fx_off%" + 0x0c + (0x30 * "%abil_fx_idx%")) 9   // instant/permanent
     WRITE_BYTE  ("%fx_off%" + 0x0d + (0x30 * "%abil_fx_idx%")) 2   // no dispel/not bypass
     WRITE_BYTE  ("%fx_off%" + 0x12 + (0x30 * "%abil_fx_idx%")) 100 // probability
     WRITE_ASCII ("%fx_off%" + 0x14 + (0x30 * "%abil_fx_idx%")) ~spmindat~ // vvc file
   SET "delta1" = 1
   SET "delta" = ("%delta%" + "%delta1%")
   READ_SHORT  ("%abil_off%" + 0x1e + (0x28 * "%loops%")) "abil_fx_num"
   WRITE_SHORT ("%abil_off%" + 0x1e + (0x28 * "%loops%")) ("%abil_fx_num%" + "%delta1%")
   SET "loops" = ("%loops%" + 1)
 END
 BUT_ONLY_IF_IT_CHANGES

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...