Skip to content

Commit

Permalink
Charge Target: Release tongue on wall slam
Browse files Browse the repository at this point in the history
【团结杯 单循环积分赛 5MO vs Welcome to osu!】 【精准空降到 54:57】 https://www.bilibili.com/video/BV16z4y1F7EF/?share_source=copy_web&vd_source=f80ca4a66aa762100701677bc8a0c4a8&t=3297
  • Loading branch information
jensewe committed Oct 13, 2023
1 parent bf63cf3 commit a947e2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Binary file modified addons/sourcemod/plugins/fixes/l4d2_charge_target_fix.smx
Binary file not shown.
8 changes: 7 additions & 1 deletion addons/sourcemod/scripting/l4d2_charge_target_fix.sp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <dhooks>
#include <left4dhooks>

#define PLUGIN_VERSION "1.7"
#define PLUGIN_VERSION "1.8"

public Plugin myinfo =
{
Expand Down Expand Up @@ -447,6 +447,12 @@ public void L4D2_OnSlammedSurvivor_Post(int victim, int attacker, bool bWallSlam
{
Dismount(jockey);
}

int smoker = GetEntPropEnt(victim, Prop_Send, "m_tongueOwner");
if (smoker != -1)
{
L4D_Smoker_ReleaseVictim(victim, smoker);
}
}

Action Timer_KnockdownRepeat(Handle timer, int userid)
Expand Down

0 comments on commit a947e2e

Please sign in to comment.