Skip to content

Commit 0039c1f

Browse files
committed
Fix yer unnerf and melee cleave attack
1 parent fa69a1c commit 0039c1f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/mod/etc/melee_ignore_teammates.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ namespace Mod::Etc::Melee_Ignore_Teammates
115115
DETOUR_DECL_STATIC(int, CAttributeManager_AttribHookValue_int, int value, const char *attr, const CBaseEntity *ent, CUtlVector<CBaseEntity *> *vec, bool b1)
116116
{
117117
if (rc_CTFWeaponBaseMelee_Smack > 0 && V_stricmp(attr, "melee_cleave_attack") == 0) {
118-
return DETOUR_STATIC_CALL(CAttributeManager_AttribHookValue_int)(value, "projectile_penetration", ent, vec, b1);
118+
value = DETOUR_STATIC_CALL(CAttributeManager_AttribHookValue_int)(value, "projectile_penetration", ent, vec, b1);
119119
}
120120

121121
return DETOUR_STATIC_CALL(CAttributeManager_AttribHookValue_int)(value, attr, ent, vec, b1);

src/mod/mvm/yer_unnerf.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ namespace Mod::MvM::YER_Unnerf
4646
/* overwrite the CMP and jnz instruction with NOPs */
4747
buf.SetRange(0x09, 13, 0x90);
4848

49+
mask.SetRange(0x09, 13, 0xff);
4950
return true;
5051
}
5152
};

0 commit comments

Comments
 (0)