Prevent Fast Ladder Climb
- Prevent players from climbing ladders quickly (using two directions movement to climb faster; i.e. 'wa', 'wd', 'as' or 'sd'). This is done by disabling left (a) and right (d) keys when people are climbing a ladder while using UP (w)and DOWN (s).
- Just saw that other plugin here which adressed that problem, but was for L4D only and aimed at other different fixes. So this one is for any mod that has ladders. It uses almost the same method (mine corrected a bug that I'm reporting as I write these lines).
- It can be annoying when people climb at different speed (like when you move too quickly, and you are blocked by a noob who doesn't know how to climb quickly; or when you climb a ladder too quickly and do a little jump in the air and get stuck on someone's head). I believe this solve (ungracefully ) the problem.
- preventfastladderclimbversion: Gives version '
- preventfastladderclimb : Is the plugin enabled ? 1=Yes (Default), 0=No.
- 1.0.0 Initial release. (06-04-2012)
- 1.0.1 Optimized plugin. Thanks to thetwistedpanda for pointing out that I should cache things besides only ConVar values. (06-04-2012)
- 1.0.1b Reuploaded (forgot to update something that I thought I done). (06-04-2012)
- 1.0.2 Corrected error that made the plugin unable to compile :3. Also potentially optimized a case where someone that just connected would be running commands while being considered alive without spawning (so one less check in bools). Thanks to Powerlord for pointing out a different thing slightly related to that. (06-04-2012)
- 1.0.3 Optimization : ConVarChange now uses "convar" parameter rather than global variable (I read once somewhere that passing throught registers is faster than global variables; don't know for this scenario thought; but I believe it still apply).
- Approved by Dr!fter. Thanks! (13-04-2012)
- Tested only in CS: Source, but code is taken from a L4D plugin (and I see no reason to not work in a Source game that has ladders).
- Credits to "disawar1" for the way to prevent people from climbing quickly the ladders.
Attached Files Get Plugin or Get Source (preventfastladderclimb.sp - 2.0 KB)
Wyświetl pełny artykuł