Author Topic: New BETA Update  (Read 13774 times)

Online Dinomite

  • Global Moderator
  • *****
  • Posts: 2876
  • T:REP 8833
    • View Profile
Re: New BETA Update
« Reply #30 on: August 30, 2019, 05:22:27 AM »
I found a problem that only happens in MP. OnDamage seems to be getting called twice, meaning everything is taking twice the amount of damage it should. Unless that's intended but I don't think it is. In SP it only gets called once.
Can't reproduce this. OnDamage only ever triggers once, and frankly only has one place it can be called.
If you are sure this happens, you are missing an important detail.

What I'm doing to get the result is attaching a script on a player or enemy that simply prints a message to the console when OnDamage is called.

Here is the .kpf file of it for you to be able to replicate it.
  • defs/actors/player.txt - added the script component to the player def
  • scripts/main.txt - added the line: #include "scripts/ScriptPlayer.txt"
  • scripts/ScriptPlayer.txt - OnDamage prints to console

Here is a video of it happening in MP and then in SP. You can see whenever I get hit the prints to console happen twice at the same time in MP.

Thank you for taking the time to look into this I really appreciate it.
The video does not work anymore.

The most hated person on the internet.


SimplePortal 2.3.6 © 2008-2014, SimplePortal