View Single Post
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