AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Charger Steering (1.9) [09-Oct-2020] (https://forums.alliedmods.net/showthread.php?t=179034)

Silvers 02-24-2012 23:03

[L4D2] Charger Steering (1.9) [09-Oct-2020]
 
10 Attachment(s)
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"

// 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.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).

alexip121093 02-24-2012 23:50

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
Cool !!!! finally ... someone made this plugin

They should appreciate you
http://forums.alliedmods.net/showthr...hlight=charger
http://forums.alliedmods.net/showthr...hlight=charger

Visual77 02-25-2012 03:42

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
video demonstration please :)

adrianman 02-25-2012 04:27

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
simple,you can turn your charger while charging by looking in that direction with your mouse,even after you picked up a survivor :)

Elektramode 02-25-2012 08:27

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
Quote:

Originally Posted by Visual77 (Post 1656938)
video demonstration please :)

Voilla: http://www.youtube.com/watch?v=h1cQc3B-de0

Video demonstration.

Oh and If I could possibly request, A cvar on the sensitivity of the turn.

Silvers 02-25-2012 09:10

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
Quote:

Originally Posted by Elektramode (Post 1657051)
Voilla: http://www.youtube.com/watch?v=h1cQc3B-de0

Video demonstration.

Oh and If I could possibly request, A cvar on the sensitivity of the turn.

Thank you for the video.

Sorry not possible to make rotation. I did try.

P.S AI chargers do not steer.

Visual77 02-25-2012 09:29

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
looks nice Silvers, keep up the good work :)

adrianman 02-26-2012 08:00

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
bot charger DOES steer :D

Silvers 02-26-2012 08:04

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
Edit: I probably had it disabled when testing, that's good news must check it out later!

dcx2 02-26-2012 11:18

Re: [L4D2] Charger Steering (1.0) [25-Feb-2012]
 
Wow. I'm amazed that this hasn't been done already, given it's as simple as stripping the frozen flag from the client...

Can you strafe while charging, too?

Regarding the sensitivity of the turn, perhaps you could listen in OnPlayerRunCmd for IN_LEFT or IN_MOVELEFT (/RIGHT) and rotate the charger there? Problem is I doubt most people have IN_LEFT bound to anything...


All times are GMT -4. The time now is 05:50.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.