morerokk / IreNFist

A continuation/fix of the IreNFist mod for PAYDAY 2
MIT License
4 stars 2 forks source link

Getting cuffed while interacting only works as host #55

Closed morerokk closed 3 years ago

morerokk commented 3 years ago

Someone correct me if I'm wrong, but according to the current code, you are only cuffed while interacting if you are the host. This is because the hook checks if you're the host. This should be changed to if self._unit == (the local player unit).

While I did implement this same code on HuskPlayerDamage, it seems unlikely that it actually triggers. If someone can confirm that it does then great, otherwise I'll change the code around a bit.

The reasoning behind this current check is because I don't want clients to get cuffed when playing with non-InF hosts, but now I realize that it just doesn't matter all that much.

morerokk commented 3 years ago

Regardless of whether or not this was actually broken, it is now fixed.