Blockland Forums > Modification Help
No crouch playertype.
<< < (11/15) > >>
Ash:

--- Quote from: Iban on May 18, 2011, 03:45:43 AM ---Listen, dear.

crouch(%b) is a client-side function. The server cannot disable (or even interact with) this function, ever.
Armor::onTrigger is used to talk to scripts after the engine's reaction to specific key presses. Disabling the crouch reaction in this function does not disable crouching.

There is no function in the game that you can package and disable crouching through the server. None what so ever.

--- End quote ---

Aww, bummer.

This client/server sided stuff is confusing. I know their differences, but not how to tell what's what.

Anywho, I'm glad the problem has been somewhat solved.
Nexus:
If the client is able to tell the server that it wants to crouch, there is a packagable function that can be blocked.  This does not mean the funtion is easy to find, however.
Iban:

--- Quote from: Nexus on May 19, 2011, 12:13:59 AM ---If the client is able to tell the server that it wants to crouch, there is a packagable function that can be blocked.  This does not mean the funtion is easy to find, however.

--- End quote ---
You're a loving idiot.

Most of the game's very basic functionality is entirely within the engine and cannot be manipulated. Crouching is one of those things.

There's nothing you can package to disable walking, looking around, etc.
Chrono:
The only way to do this is to manipulate the TorqueConstructorDTS datablock, which requires:

-Copy all the player .dts and .dsq files into a folder called Player, and all brick .png files into the root folder of your add-on.
-Recreate the TCDTS datablock linked to the new model and then create a player datablock.

This will allow you to change animations, whether it be adding or removing animations. (I would love to have someone work with me to make said animations)

Then you need to make all the crouching values the exact same as the standing values.

Or you can make the client lose control of the player the first time they do it, with a warning. If they try to again, kill them.
Nexus:

--- Quote from: Iban on May 19, 2011, 12:38:45 AM ---You're a loving idiot.

Most of the game's very basic functionality is entirely within the engine and cannot be manipulated. Crouching is one of those things.

There's nothing you can package to disable walking, looking around, etc.

--- End quote ---

Don't be dumb like that.

See what I did there?  I just lowered the credibility of your post by belittling you with my first words for no good reason.  Don't loving do that again because it makes me want to internet punch you.  [/toughguy]

All of those things can be disabled, and actually relatively easily.  Walking can be blocked in numerous ways, from freezing a player, to the "no move" playertype, to all the tasers and tranquilizers and stun guns we have.  I admit that those are not usually packages, but nevertheless, you don't need to be an offensive butt about it.

Looking around has been disabled with the static camera in camera events, also.

But really, if the client can tell the server what is happening, then you can, in fact, package and disable it if you are able to find the functions.

also, idea:
maybe the trick to blocking crouching is to block the animation playthread?
Navigation
Message Index
Next page
Previous page

Go to full version