Blockland Forums > Modification Help
No crouch playertype.
Iban:
You're about 3 days late to that answer.
Red_Guy:
--- Quote from: Iban on May 20, 2011, 11:17:56 AM ---You're about 3 days late to that answer.
--- End quote ---
sorry - I tend to lose track of useful posts with all the trolling and arguments.
Lørd Tøny:
--- Quote from: Red_Guy on May 20, 2011, 03:47:20 AM ---Now it will LOOK like the player crouches.. but, it will have no effect.. they will still get hit by stuff, and they wont be able to crawl under things.
--- End quote ---
I'm fine with this because the build I am making was made specifically for a top down playertype that doesn't jump or crouch.
Derroith:
I'd be nice if there was a playertype, that when crouch, it sits instead.
Chrono:
--- Quote from: Nexus on May 19, 2011, 04:54:17 PM ---I am pretty sure that when the client side function crouch(); is called, it sends some sort of command to the server. As far as I know, any case where there is a client sided command to the server, there is a function on the server that recieves that command and handles the player crouching.
If this isn't the case, then there is some other way for the client to communicate to the server which I have never heard of.
And I don't know alot about animations, but I know they have to do with what the player does when certain actions are done, and it might be by blocking animations that crouching can be prevented.
I'm not sure what you mean by being able to be hit with a bullet, I don't think I said that...?
--- End quote ---
Here's the code for crouching on the client side.
function crouch(%val)
{
if(%val != $crouching && %val !$= "")
{
$mvTriggerCount3++;
$crouching = !$crouching;
}
}
Figure out how to stop that on the server side.
Edit: Bolded part is the part that actually makes the player crouch.