View Single Post
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-07-2020 , 03:46   Re: [L4D2] Defibrillate via Menu
Reply With Quote #8

Quote:
Originally Posted by Shadowysn View Post
Wow, that's a lot of base code. Thanks a lot!

The difference between the Signature (SDKCall) and VScript methods is that using SDKCall offers more control, is guaranteed to defib players and can defib a person with a body of a different character; only downside is that it requires a body entity alongside a client.

VScript won't be able to work well if there are duplicate survivors; sometimes it does nothing when attempting to defib a corpse of a duplicate.
Ahh ok, I didn't want to bother adding the SDK method because it looked like more work to copy paste the verification checks instead of the single line VScript. SDKCall would be better then. You understand it better than I do (I'm too lazy/busy to look closely and learn how it works) so I'll leave it up to you!
__________________
Silvers is offline