Raised This Month: $218 Target: $400
 54% 

[L4D2] Fixing body_yaw when incapped? / Set pose parameters?


Post New Thread Reply   
 
Thread Tools Display Modes
Shadowysn
Senior Member
Join Date: Sep 2015
Location: Location:
Old 01-25-2020 , 01:10   Re: [L4D2] Fixing body_yaw when incapped? / Set pose parameters?
Reply With Quote #21

Quote:
Originally Posted by cravenge View Post
I just saw the source code of the plugin included in this post. I have to admit that it's a bit messy but you don't need the "player_incapacitated" event. All you have to do is apply the PostThinkPost hook on clients in OnClientPutInServer and do the cloning stuff there.
And keep having the hooks running at all times?
__________________
Shadowysn is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Black Hole
Old 01-25-2020 , 11:37   Re: [L4D2] Fixing body_yaw when incapped? / Set pose parameters?
Reply With Quote #22

Quote:
Originally Posted by Shadowysn View Post
And keep having the hooks running at all times?
Why not? It's more efficient that way rather than unhooking when the player isn't incapacitated anymore and hooking once more when they are again every time. All the hook needs to have are valid and incapacitated checks so the plugin wouldn't do anything to invalid and non incapacitated players.

Last edited by cravenge; 01-25-2020 at 11:43.
cravenge is offline
Reply


Thread Tools
Display Modes

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 00:38.


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