Author Topic: OnPlayerDead  (Read 439 times)

Legacy_ElgarL

  • Full Member
  • ***
  • Posts: 128
  • Karma: +0/-0
OnPlayerDead
« on: July 15, 2010, 05:21:26 am »


               Does anyone know of a way to tell if the Player triggering the death event died from death magic or something else?

Simply
put. I'm looking to implement my bleeding system, but if a player takes
enough damage to instantly hit -10 hp then no OnDying event triggers,
only the OnDeath.

I need to be able to tell if it was something
like 'Finger of death' or some spell that is insta death, or something
else which I'd then set them to -1 and begin the bleeding instead of
insta death.

This is to work along side PRC (Yuck it's a
horrible mess inside PRC) so I really don;t want to have to do messing
with any of their bits.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
OnPlayerDead
« Reply #1 on: July 15, 2010, 11:23:39 pm »


               I think, I saw statement which checked this in Hermyt's Devastating Crit Fix, its long time ago I looked into that but I know there was something like that. Give it a try and look yourself, here is the LINK.
               
               

               


                     Modifié par ShaDoOoW, 15 juillet 2010 - 10:24 .
                     
                  


            

Legacy_ElgarL

  • Full Member
  • ***
  • Posts: 128
  • Karma: +0/-0
OnPlayerDead
« Reply #2 on: July 16, 2010, 03:00:46 pm »


               Thank for the link, it helped a bit. I can now tell easily if it's an insta death, but not if it was caused by a failed saving throw (death spell etc) or just a really big rock on the head.