Blockland Forums > Modification Help
No crouch playertype.
<< < (4/15) > >>
Ash:
How the hell does my idea not work?

You don't break crouching AFTER crouching. You simply make it impossible for them to crouch by removing the keybinded-shortcut. Thus, the keybind doesn't work, thus no crouching.

Using an alternate command for crouching will obviously still work.
Ipquarx:
heres a idea, nice and plain and simple.


--- Code: ---function crouch(%this)
{
    if(%this.datablock == "nocrouchplayer")
        return;
    else
    return parent::crouch(%this);
}
--- End code ---
Nexus:

--- Quote from: Ash on May 16, 2011, 12:26:49 AM ---How the hell does my idea not work?

You don't break crouching AFTER crouching. You simply make it impossible for them to crouch by removing the keybinded-shortcut. Thus, the keybind doesn't work, thus no crouching.

Using an alternate command for crouching will obviously still work.

--- End quote ---

keybinds are client sided, the server cannot do anything to affect them.
Ipquarx:

--- Quote from: Ipquarx on May 16, 2011, 12:33:53 AM ---
--- Code: ---function crouch(%this)
{
    if(%this.datablock == "nocrouchplayer")
        return;
    else
    return parent::crouch(%this);
}
[/quote]
This.
--- End code ---

--- End quote ---
Iban:

--- Quote from: Nexus on May 16, 2011, 12:36:43 AM ---keybinds are client sided, the server cannot do anything to affect them.

--- End quote ---

--- Quote from: Nexus on May 16, 2011, 12:36:43 AM ---keybinds are client sided, the server cannot do anything to affect them.

--- End quote ---

--- Quote from: Nexus on May 16, 2011, 12:36:43 AM ---keybinds are client sided, the server cannot do anything to affect them.

--- End quote ---

--- Quote from: Nexus on May 16, 2011, 12:36:43 AM ---keybinds are client sided, the server cannot do anything to affect them.

--- End quote ---

--- Quote from: Nexus on May 16, 2011, 12:36:43 AM ---keybinds are client sided, the server cannot do anything to affect them.

--- End quote ---

--- Quote from: Nexus on May 16, 2011, 12:36:43 AM ---keybinds are client sided, the server cannot do anything to affect them.

--- End quote ---

You cannot remove key-binds from the server side you idiots.

Ipq, your code doesn't even make sense. There is no %this parameter in crouch(). crouch() is a client-side function.
Navigation
Message Index
Next page
Previous page

Go to full version