I use MFPS 1.7.
I'll start with the fact that Player2 (master client) in the Editor, Player1 in the web. When bots kill Player 1, camera orbit is displayed not on the killer (bot), but on Player2, since it is a masterclient. In killfeed, the record of Player1's death does not appear at all in this case. If the players kill each other, everything works correctly. Works poorly only with bots and if they kill other players, that is, someone who is not a master client.
Killer bot
- Lovatto
- Admin
- Posts: 1834
- Joined: Sun Dec 07, 2014 3:18 pm
- Contact:
Thanks for the video, I found and the problem and fix it, for it simply replace the line:
in bl_Bullet.cs -> SendPlayerDamage(RaycastHit hit), with:
Let me know if that works for you.
Code: Select all
damageData.Cause = DamageCause.Player;
Code: Select all
if (bulletData.MFPSActor != null)
{
damageData.Cause = bulletData.MFPSActor.isRealPlayer ? DamageCause.Player : DamageCause.Bot;
}
else
{
damageData.Cause = DamageCause.Player;
}