Remove duplicate code
This commit is contained in:
parent
f99ecfde4a
commit
b95606ff40
@ -449,10 +449,7 @@ public void OnEntitySpawned(int entity)
|
|||||||
char sBreakable[64];
|
char sBreakable[64];
|
||||||
Config.GetBreakable(sBreakable, sizeof(sBreakable));
|
Config.GetBreakable(sBreakable, sizeof(sBreakable));
|
||||||
|
|
||||||
char sTargetName[64];
|
if (StrEqual(sBreakable, sTargetname))
|
||||||
GetEntPropString(entity, Prop_Data, "m_iName", sTargetName, sizeof(sTargetName));
|
|
||||||
|
|
||||||
if (StrEqual(sBreakable, sTargetName))
|
|
||||||
HookSingleEntityOutput(entity, "OnHealthChanged", HookCallbackDamagedBoss, false);
|
HookSingleEntityOutput(entity, "OnHealthChanged", HookCallbackDamagedBoss, false);
|
||||||
}
|
}
|
||||||
else if (_Config.IsCounter)
|
else if (_Config.IsCounter)
|
||||||
|
Loading…
Reference in New Issue
Block a user