Vice City: Multiplayer

Community Projects => SLC's Squirrel Plugin => Bug Reports => Topic started by: EK.IceFlake on July 7th, 2017, 06:21 AM

Title: [BUG] iscrouching is always false
Post by: EK.IceFlake on July 7th, 2017, 06:21 AM
I was reimplementing slide but a problem occurred. The iscrouching parameter is always false.

Code: [Select]
SqCore.On().PlayerCrouching.Connect(function (player, iscrouching)
{
    print(iscrouching);
});

[USR] false

Luckily I can use player.Crouched for now.
Title: Re: [BUG] iscrouching is always false
Post by: . on July 7th, 2017, 06:35 AM
This is most-likely not a plugin bug, but rather a server bug. All I'm doing is forwarding whatever the server sends(https://github.com/iSLC/VCMP-SqMod/blob/b3cdc101a48e79cc8fd4c02b5f273d57a817f1ae/source/Main.cpp#L537). Therefore, the server is the one that always sends the value `false`.