| Blockland Forums > Modification Help |
| No crouch playertype. |
| << < (9/15) > >> |
| Nexus:
--- Quote from: rkynick on May 17, 2011, 06:19:04 PM ---Also, allow me to propose the 'last ditch' solution, wherein you make it so crouching causes you to die. --- End quote --- hey u --- Quote from: Nexus on May 16, 2011, 01:32:53 AM ---If all else fails, and do not do this except as a last resort, you can probably enforce not crouching by adding some nasty piece of code to the armor::ontrigger which will make the player think twice before they hit the floor. --- End quote --- |
| Iban:
Is my bounding box method really not that appreciable? |
| Ash:
What would this do (assuming that I'm coding it correctly)? --- Code: ---function armor::onTrigger(%client, %slot, %io) { if(%slot == 3 && %io) crouch(0); } --- End code --- Basically, uncrouch the player on-crouch |
| Destiny/Zack0Wack0:
--- Quote from: Ash on May 18, 2011, 01:18:50 AM ---What would this do (assuming that I'm coding it correctly)? --- Code: ---function armor::onTrigger(%client, %slot, %io) { if(%slot == 3 && %io) crouch(0); } --- End code --- Basically, uncrouch the player on-crouch --- End quote --- No, no and no as it has been said many times. |
| Iban:
--- Quote from: Ash on May 18, 2011, 01:18:50 AM ---What would this do (assuming that I'm coding it correctly)? --- Code: ---function armor::onTrigger(%client, %slot, %io) { if(%slot == 3 && %io) crouch(0); } --- End code --- Basically, uncrouch the player on-crouch --- End quote --- 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. |
| Navigation |
| Message Index |
| Next page |
| Previous page |