View Single Post
Author Message
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 03-31-2018 , 07:30   [L4D2] Elevator Control (1.7) [11-Dec-2022]
Reply With Quote #1

About:
  • Originally created on 17-Apr-2011.
  • Unreleased because of potential admin abuse against players.
  • Currently L4D2 only, but L4D1 is easily possible.


Thanks:
  • Visual77 - For converting the plugin to the new syntax


Supporting Other Maps:
  • Use Stripper Source to dump the map
  • Find the func_button or logic_relay which calls MoveToFloor
  • Copy the needed lines to open/close/move up/move down.
  • We copy the stuff instead of calling func_button so survivors can still press it.
  • Certain maps will not have a top/bottom floor, which must be created else it's one way.


Admin Commands: (requires "z" flag)
PHP Code:
sm_lift         // Opens the Lift Commands menu.
sm_lift_up      // Makes lifts move up.
sm_lift_down    // Makes lifts move down.
sm_lift_open    // Opens lift doors.
sm_lift_close   // Closes lift doors.
sm_lift_stop    // Makes lifts stop moving. 

CVars:

PHP Code:
// Elevator Control plugin version.
l4d_lift_version 

Changes:
Code:
1.7 (11-Dec-2022)
    - Changes to fix compile warnings on SourceMod 1.11.

1.6 (07-Oct-2021)
    - Added commands: "sm_lift_up", "sm_lift_down", "sm_lift_open", "sm_lift_close", "sm_lift_stop" to control the lift.

1.5 (18-May-2020)
    - Fixed the last updating breaking the plugin. Thanks to "DrDarkTempler" for reporting.

1.4 (10-May-2020)
    - Various changes to tidy up code.

1.3 (18-Jun-2018)
    - Added support for "c3m1_plankcountry" ferry crossing, as requested by "Pyc".

1.2 (05-May-2018)
    - Converted plugin source to the latest syntax utilizing methodmaps. Requires SourceMod 1.8 or newer.

1.1 (12-Apr-2018)
    - New Syntax - Thanks to "Visual77"
    - Added "Stop" elevator option.
    - Fixed not working after round restart.

1.0 (31-Mar-2018)
    - Initial release.
    - Originally created on 17-Apr-2011.

Installation:
  1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_lift_control.sp - 371 views - 22.1 KB)
__________________

Last edited by Silvers; 12-10-2022 at 20:25.
Silvers is offline