Open PEMapModder opened 10 years ago
can i add a suggestion? --> Player chat only can be heard by other player's within the chatter (10)radius.
On contrary, I think the Walk slower feature requires a client mod as of i know.
Read the italic words.
by randomly cancelling move events
And player chat distance is sound waves thing
I think we can change "walk slower" into "sometimes trip over".
@PEMapModder For the slow walk... We should use $player->speed (when it's available :P)
@iksaku that doesn't change the player speed. It should be a read-only field because it is only changed by the client packets. No packets are sent to the client about this. You can change it, but then it'll be immediately overridden by the next player motion packet, which only differentiates (not sure if this is the correct word) the player location of the client and the server. Well, it may look different to other players (but I think it won't), but not to the client himself. Moreover, changing a field absolutely won't do anything unless that class implements the __set() magic method because other clients receive the change of speed after an uncanceled EntityMotionEvent is called, which doesn't happen in this case.
In another view, if you only set it once, the speed can be immediately overridden if the player stops/starts walking, walks into lava, jumps, walks into water, go onto a minecart, etc... Any events that could change his speed can change the value.
I hope it will restart: D
TODOs
*
, amount inversely proportional to the sound wave magnitude when it reaches)(Everyone is assigned)