Raised This Month: $ Target: $400
 0% 

[L4D2] Charger Teleport Infinite CD fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 09-28-2023 , 08:06   Re: [L4D2] Charger Teleport Infinite CD fix
Reply With Quote #2

- You should note this requires left4dhooks plugin.
- Should reset b_IsCharging in round_end event and OnMapEnd, otherwise it can be stuck set as true.
- GetEntData(client, tooFarCanTeleport, 1) can probably be replaced with: GetEntProp(client, Prop_Send, "m_isCulling", 1) and then no need for FindSendPropInfo.
- You could just call the GetEntProp instead of putting into a new function IsPlayerAbleToTeleport just for that 1 call.
- The use of return Plugin_Handled seems wrong, I would that entire else statement.
- You're also mixing new and old syntax.
- You could copy the stocks from left4dhooks to not require the dependency, since you're only using the stocks and not any natives or forwards.

Other than that, good job on fixing the bug. Thanks! Congrats on your first release!

Edit: I've uploaded the changes I think should be good. No more left4dhooks requirement.
Attached Files
File Type: sp Get Plugin or Get Source (fixchargerteleportcooldownbug.sp - 117 views - 2.1 KB)
__________________

Last edited by Silvers; 09-28-2023 at 08:14.
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 04:07.


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