Vice City Multiplayer

VC:MP 0.4 (Beta) => Script Discussion => Topic started by: sseebbyy on October 10, 2014, 01:08:11 pm

Title: onPlayerCrouchChange is bugged ?!
Post by: sseebbyy on October 10, 2014, 01:08:11 pm
I wanted to test the new event onPlayerCrouchChange by just adding Message("crouch status changed");, but when I crouched and uncrouched in game, there was no message.

Now the question is: "Is the event bugged ?"
Title: Re: onPlayerCrouchChange is bugged ?!
Post by: S.L.C on October 10, 2014, 01:22:30 pm
By the looks of it the callback function is implemented in C++ but wasn't attached to the event. Therefore the function is never called to forward the event to the script. The following code is never executed:
Code: [Select]
function onPlayerCrouchChange( i_player, state )
{
print( "Player " + i_player.Name + " is " + (state ? "crouched" : "standing") );
}
Title: Re: onPlayerCrouchChange is bugged ?!
Post by: Gudio on October 10, 2014, 10:00:12 pm
- Fixed onPlayerOnFireChange, onPlayerCrouchChange, onPlayerGameKeysChange
- Added onPlayerActionChange( player, oldAction, newAction ), onPlayerStateChange( player, oldState, newState )

I noticed that onPlayerCrouchChange always returns false (probably server's bug)

Linux 32-bit module (https://bitbucket.org/stormeus/0.4-squirrel/downloads/squirrel04rel32.so)
Linux 64-bit module (https://bitbucket.org/stormeus/0.4-squirrel/downloads/squirrel04rel64.so)
Title: Re: onPlayerCrouchChange is bugged ?!
Post by: sseebbyy on October 11, 2014, 05:46:16 pm
/me is waiting for windows plugin update
Title: Re: onPlayerCrouchChange is bugged ?!
Post by: ysc123 on October 11, 2014, 08:25:06 pm
/me is waiting for windows plugin update
I can build for you, your email?

Here is it http://www.solidfiles.com/d/fd8f42f7c2/squirrel.zip
Title: Re: onPlayerCrouchChange is bugged ?!
Post by: Gudio on October 11, 2014, 09:11:36 pm
I finally got a license for Visual Studio. Compiled (https://bitbucket.org/stormeus/0.4-squirrel/downloads).
Title: Re: onPlayerCrouchChange is bugged ?!
Post by: sseebbyy on October 11, 2014, 11:37:57 pm
I noticed that onPlayerCrouchChange always returns false (probably server's bug)

I hope it will be fixed soon.



/me is waiting for windows plugin update
I can build for you, your email?

Here is it http://www.solidfiles.com/d/fd8f42f7c2/squirrel.zip

Thank you very much, I appreciate that ! but I'm really dedicated to official plugins. :D



I finally got a license for Visual Studio. Compiled (https://bitbucket.org/stormeus/0.4-squirrel/downloads).

Good, thanks !
Title: Re: onPlayerCrouchChange is bugged ?!
Post by: ysc123 on October 12, 2014, 12:51:02 pm
I noticed that onPlayerCrouchChange always returns false (probably server's bug)

I hope it will be fixed soon.



/me is waiting for windows plugin update
I can build for you, your email?

Here is it http://www.solidfiles.com/d/fd8f42f7c2/squirrel.zip

Thank you very much, I appreciate that ! but I'm really dedicated to official plugins. :D



I finally got a license for Visual Studio. Compiled (https://bitbucket.org/stormeus/0.4-squirrel/downloads).

Good, thanks !
You can download VS2013 Express for free. And it's easy to complie it!
Title: Re: onPlayerCrouchChange is bugged ?!
Post by: sseebbyy on October 12, 2014, 08:50:35 pm
I don't want to join to that "world" yet :D but thanks for the suggestion.