Author Topic: Wounding Property editable?  (Read 483 times)

Legacy_lordofworms

  • Sr. Member
  • ****
  • Posts: 422
  • Karma: +0/-0
Wounding Property editable?
« on: September 11, 2010, 05:35:34 pm »


               Hello all again, I have a question I was unable to find the answer for..

I have a simple custom VFX (and an edited VFX 2da) that produces a bleeding FX complete with trails of blood pools. Now I can easily set this using a Apply VFX but what I really wanted to do was hook it to the wounding property found on many weapons (under properties ON HIT) so that when the wounding is in effect the VFX can be applied as well...but I dont see how I can hook into it anywhere? can anybody guide me in the right direction or is this hardcoded and cannot be applied the way I wish?

thanks in advance (:
               
               

               
            

Legacy_Invisig0th

  • Sr. Member
  • ****
  • Posts: 279
  • Karma: +0/-0
Wounding Property editable?
« Reply #1 on: September 11, 2010, 05:58:16 pm »


               If I recall correctly, wounding is entirely hard coded. Sorry.
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Wounding Property editable?
« Reply #2 on: September 14, 2010, 07:03:26 am »


               Ahhh the dreaded "h" word.  Oddly enough, you might be able to do this for monsters but not players.  Since wounding is a form of damage you could hook into the OnPhysicalAttacked event?  Alas, there is no such thing for players.  The other dreaded "h" word, heartbeat, is a nasty route to go.



This is a very neat idea, I’ll stick it in the back of my mind and see what comes up in the way of solutions. =)
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Wounding Property editable?
« Reply #3 on: September 14, 2010, 07:20:14 am »


               

TheSpiritedLass wrote...

Ahhh the dreaded "h" word.  Oddly enough, you might be able to do this for monsters but not players.  Since wounding is a form of damage you could hook into the OnPhysicalAttacked event?  Alas, there is no such thing for players.  The other dreaded "h" word, heartbeat, is a nasty route to go.

This is a very neat idea, I’ll stick it in the back of my mind and see what comes up in the way of solutions. =)

You can make pseudo OnDamaged event for players check this thread for hint how to do that. OnPhysicalAttacked is bad place to do it anyway, you just need OnDamaged and then make pseudo-heartbeat with wounding effect, default wounding is 1magical damage per 6second IIRC. Now, you could not make the healing removal properly cos healer kits are hardcoded (again!), but otherwise it would be possible + you can make wounding +2-X... etc.
               
               

               
            

Legacy_TheSpiritedLass

  • Hero Member
  • *****
  • Posts: 1118
  • Karma: +0/-0
Wounding Property editable?
« Reply #4 on: September 14, 2010, 12:38:43 pm »


               Heya ShaDoOow,

*chuckles*  That will teach me to talk about programming before I've finished my first cup of coffee. '<img'>  I meant OnDamaged not OnPhysicalAttacked.  Don't even get me started on how annoying it is that healing kits are hard coded.  *grits teeth*
               
               

               
            

Legacy_Invisig0th

  • Sr. Member
  • ****
  • Posts: 279
  • Karma: +0/-0
Wounding Property editable?
« Reply #5 on: September 14, 2010, 04:59:07 pm »


               So, to summarize: wounding is hard coded. You could try to make your own pseudo-wounding effect -- but that wouldn't quite work either due to other hard coded limitations. Unfortunate, but true.
               
               

               


                     Modifié par Invisig0th, 14 septembre 2010 - 04:18 .
                     
                  


            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Wounding Property editable?
« Reply #6 on: September 15, 2010, 12:52:39 am »


               While the wounding effect has no valid effect type or effect spell id it is still a valid effect and it can still be removed. The effectID returns 0 and the creator of the effect = attacker that had the weapon with the OnHit wounding. Now I'm not sure if there are any other valid effects that have no ID but if there aren't then it may be possible to loop through valid effects and just filter out the one that has no ID or match the creator in some way . You would have to do this via a player heartbeat if you want your VFX to be applied to players and not just creatures. And while there is no traditional player HB there is the "default" script which is in essence a player HB script. There are mixed feelings about messing with the "default" script but it is an option. I've personally never used it.

Just some thoughts. Hope it helps. Good luck.
               
               

               


                     Modifié par GhostOfGod, 14 septembre 2010 - 11:55 .
                     
                  


            

Legacy_lordofworms

  • Sr. Member
  • ****
  • Posts: 422
  • Karma: +0/-0
Wounding Property editable?
« Reply #7 on: September 28, 2010, 10:48:10 pm »


               Hmmm...I suppose I could always 'remove' all the standard bioware 'wounding' weapons and make my own TAG based ones i suppose. of course then I have to remove the wounding option on my forges, then try and remove the ones my players already miight have...

ugh.

I think I will just stick with my bleeding VFX for now.