Blockland Forums > Modification Help
No crouch playertype.
Destiny/Zack0Wack0:
The functions are protected by the engine and cannot be packaged or they are a not wrapped into the scripting system. Even if you end up finding a function to package (eg. Armor::onTrigger which many have said) the engine handles the core code before the scripting side of the function is processed so returning in the package does nothing.
Iban:
--- Quote from: Destiny/Zack0Wack0 on May 19, 2011, 02:53:51 AM ---The functions are protected by the engine and cannot be packaged or they are a not wrapped into the scripting system. Even if you end up finding a function to package (eg. Armor::onTrigger which many have said) the engine handles the core code before the scripting side of the function is processed so returning in the package does nothing.
--- End quote ---
They're not protected, they simply don't exist.
The engine functions that exist in script are specifically added in C++ to be manipulated through script.
Ephialtes:
--- Quote from: Nexus on May 19, 2011, 12:55:16 AM ---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.
--- End quote ---
Nope.
--- Quote from: Nexus on May 19, 2011, 12:55:16 AM ---also, idea:
maybe the trick to blocking crouching is to block the animation playthread?
--- End quote ---
An animation has no relevance to being able to hit someone with a bullet.
Destiny/Zack0Wack0:
--- Quote from: Iban on May 19, 2011, 02:58:11 AM ---They're not protected, they simply don't exist.
--- End quote ---
I wasn't referring to the crouch code, I meant how he was saying that anything can be manipulated through script.
Nexus:
--- Quote from: Ephialtes on May 19, 2011, 03:08:51 AM ---Nope.
An animation has no relevance to being able to hit someone with a bullet.
--- End quote ---
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...?