View Single Post
alasfourom
Senior Member
Join Date: Feb 2022
Location: Saudi Arabia
Old 08-06-2022 , 02:30   Re: [L4D/L4D2] Elevator Teleport - v1.0 | Teleport Survivors With Count Down
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
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
__________________
alasfourom is offline