Raised This Month: $51 Target: $400
 12% 

[L4D2] Easiest way to get-up after pin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 09-25-2023 , 15:11   [L4D2] Easiest way to get-up after pin
Reply With Quote #1

Requires Left4Dhooks, but even if you can't use it for whatever reason, find snippets for VScript.

Code:
    char TempFormat[128];
    FormatEx(TempFormat, sizeof(TempFormat), "GetPlayerFromUserID(%i).SetModel(GetPlayerFromUserID(%i).GetModelName())", GetClientUserId(victim), GetClientUserId(victim));
    L4D2_ExecVScriptCode(TempFormat);
victim is the player in question.

Getting up means getting up from whatever animation player is in, with the sole exception of tank rock hit.

This includes:

Getting up from hunter
Getting up from charger post-charge.
Getting up from charger after impact
Getting up from Tank after Punch.
Getting up from Bitch Slap, as exists in some plugins.

Please verify you're doing it on a non-incapped player.

This also frees a Special Infected from stagger, so if Left4Dhooks didn't have unpin method, you could stagger into this function.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334

Last edited by eyal282; 09-25-2023 at 15:12.
eyal282 is offline
Reply



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 14:46.


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