Raised This Month: $ Target: $400
 0% 

[L4D & L4D2] Elevator Teleport - v1.6 | 03/01/2023


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 08-06-2022 , 02:21   Re: [L4D/L4D2] Elevator Teleport - v1.0 | Teleport Survivors With Count Down
Reply With Quote #2

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.
__________________
Silvers is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:00.


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