Results 1 to 10 of 21

Thread: Player Collision CoD UO

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by fabio View Post
    To Solution 2:
    Is the callback_playerdamage() even called when the bots are stuck in each other?
    Well, using the codecallbacks to place your timer probably isn't the best idea. Put it in a gametype file, at the callback_playerdamage() method.

    But, to answer your question: yes: it is called, but no damage is returned because the victim is undefined. To actual produce any damage, the victim and damage amount has to be passed to the finishPlayerDamage() function. If either the victim or damage amount (iDamage) is undefined, no effect is produced. And that is precisely what is happening here - both bots are receiving damage and the code can't work out which one is the victim, so it returns 0 damage to them. Creating the timer will solve that problem.

    This solution is one that Perry Heart aka PEZZALUCIFER of Pezbot fame came up with. You might want to check out his code for it.

  2. The Following User Says Thank You to Tally For This Useful Post:

    kung foo man (29th October 2014)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •