Thread
:
[L4D & L4D2] Elevator Teleport - v1.6 | 03/01/2023
View Single Post
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
08-06-2022 , 02:30 Re: [L4D/L4D2] Elevator Teleport - v1.0 | Teleport Survivors With Count Down
#
3
Quote:
Originally Posted by
Silvers
You have a redundant check for "if (i && I" in a loop where i is specified from 1.
I think this whole plugin needs to be re-written, there could be many false positives, you have many repeating timers for no reason.
You should hook the elevators actual "use" button or whatever triggers it to move and then do the actions required, not just blindly listening for the "player_use" and "success_checkpoint_button_used" events which could be triggered by other things, you have no checks to verify otherwise. If you want to see how to hook the use button, look at the "Lift Music" and maybe "Lift Control" plugins I wrote.
I will definitely take a look at it, thank you Silvers
__________________
Peace Be Upon You
L4D2: Ultimate Point System
alasfourom
View Public Profile
Send a private message to alasfourom
Find More Posts by alasfourom