Back to the Vavoom Forum Archives
Crimson Wizard
Firebrand
Crimson Wizard
Firebrand
Crimson Wizard
Firebrand
//========================================================================== // // A_DaggerAlert // //========================================================================== final void A_DaggerAlert(EntityEx target, EntityEx emitter) self(Actor) { Entity looker; if (emitter.LastHeard) return; if (emitter.Health <= 0) return; if (!emitter.bMonster) return; if (emitter.bInCombat) return; emitter.bInCombat = true; emitter.Target = target; emitter.SetState(emitter.FindState('Pain')); for (looker = Sector->ThingList; looker; looker = looker.SNext) { if (looker == emitter || looker == target) continue; if (looker.Health <= 0) continue; if (!EntityEx(looker).bSeesDaggers) continue; if (!EntityEx(looker).bInCombat) { if (!looker.CanSee(target) && !looker.CanSee(emitter)) continue; EntityEx(looker).Target = target; looker.PlaySound(SightSound, CHAN_VOICE); looker.SetState(EntityEx(looker).SeeState); EntityEx(looker).bInCombat = true; } } }Then call the method from A_JabDagger method <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->, it seems this method wasn't implemented due to commented line on A_JabDagger <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->.
Crimson Wizard
Firebrand
Crimson Wizard
Crimson Wizard