View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 02-24-2012 , 23:03   [L4D2] Charger Steering (1.10) [03-Apr-2024]
Reply With Quote #1

Related Plugins:

About:
  • Allows chargers to steer/turn with the mouse while charging.
  • Allows humans to strafe, bots cannot.


CVars:

Saved to l4d2_charger_steering.cfg in your servers \cfg\sourcemod\ folder.

PHP Code:
// 0=Plugin off, 1=Allow steering with mouse, 2=Allow strafing, 3=Both.
l4d2_charger_steering_allow "3"

// Who can steer with the mouse. 0=Humans Only, 1=AI only, 2=Humans and AI.
l4d2_charger_steering_bots "2"

// Users with these flags can use the steering. Empty string = anyone.
l4d2_charger_steering_flags ""

// Display hint when charging? 0=Off, 1=Chat text, 2=Hint box.
l4d2_charger_steering_hint "2"

// How many times to display hints, count is reset each map/chapter.
l4d2_charger_steering_hints "5"

// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d2_charger_steering_modes ""

// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d2_charger_steering_modes_off ""

// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d2_charger_steering_modes_tog "0"

// 0.0=Off. Other value sets the amount humans strafe to the side.
l4d2_charger_steering_strafe "50.0"

// Charger Steering plugin version.
l4d2_charger_steering_version 


Changes:
Code:
1.10 (03-Apr-2024)
    - Added cvar "l4d2_charger_steering_flags" to control who is allowed to use steering. Requested by "caphao1101".

1.9 (09-Oct-2020)
    - Changed "OnClientPostAdminCheck" to "OnClientPutInServer" - to fix any issues if Steam service is down.

1.8 (10-May-2020)
    - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    - Various changes to tidy up code.

1.7 (01-Apr-2020)
    - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    - Updated these translations file encoding to UTF-8 (to display all characters correctly): German (de).

1.6 (05-May-2018)
    - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.
    - Removed instructor hints due to Valve: FCVAR_SERVER_CAN_EXECUTE prevented server running command: gameinstructor_enable.

1.5 (22-May-2012)
    - Fixed error: "SetEntPropFloat reported: Entity -1 (-1) is invalid".

1.4 (20-May-2012)
    - Added German translations - Thanks to "Dont Fear The Reaper".
    - Fixed errors reported by "Dont Fear The Reaper".

1.3 (15-May-2012)
    - Fixed cvar "l4d2_charger_steering_modes_tog" missing.
    - Small fixes.

1.2 (30-Mar-2012)
    - Fixed a bug which could allow strafing as a survivor.

1.1 (30-Mar-2012)
    - Added cvar "l4d2_charger_steering_modes_off" to control which game modes the plugin works in.
    - Added cvar "l4d2_charger_steering_modes_tog" same as above.
    - Added cvars to control hints and what humans/bots have access to.
    - Added Strafing - Thanks to "dcx2".
    - Added translations and hint messages.
    - Added Russian translations - Thanks to "disawar1".
    - Fixed being able to punch while charging.

1.0 (25-Feb-2012)
    - Initial release.


Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
  2. Download "translations.zip" and extract the "translations" folder to your servers \addons\sourcemod\ folder.

Updating from 1.0:
  • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.

Current Translations: English (en), German (de), Russian (ru).
Attached Files
File Type: zip translations.zip (1.8 KB, 4606 views)
File Type: sp Get Plugin or Get Source (l4d2_charger_steering.sp - 182 views - 14.0 KB)
__________________

Last edited by Silvers; 04-03-2024 at 05:35.
Silvers is offline