Skip to content

Commit

Permalink
wrong call!
Browse files Browse the repository at this point in the history
  • Loading branch information
DrAbcOfficial committed May 28, 2023
1 parent 2ea3d43 commit 7669cde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/source/dllapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int SC_SERVER_DECL ApacheTakeDamage(CBaseMonster* pThis, SC_SERVER_DUMMYARG entv
bitsDamageType
};
CALL_ANGELSCRIPT(pMonsterTakeDamage, &dmg);
int value = CALL_ORIGIN(gHookItems.BaseMonsterTakeDamage, TakeDamage, pevInflictor, pevAttacker, dmg.flDamage, dmg.bitsDamageType);
int value = CALL_ORIGIN(gHookItems.ApacheTakeDamage, TakeDamage, pevInflictor, pevAttacker, dmg.flDamage, dmg.bitsDamageType);
CALL_ANGELSCRIPT(pMonsterPostTakeDamage, &dmg);
return value;
}
Expand All @@ -159,7 +159,7 @@ int SC_SERVER_DECL SentryTakeDamage(CBaseMonster* pThis, SC_SERVER_DUMMYARG entv
bitsDamageType
};
CALL_ANGELSCRIPT(pMonsterTakeDamage, &dmg);
int value = CALL_ORIGIN(gHookItems.BaseMonsterTakeDamage, TakeDamage, pevInflictor, pevAttacker, dmg.flDamage, dmg.bitsDamageType);
int value = CALL_ORIGIN(gHookItems.SentryTakeDamage, TakeDamage, pevInflictor, pevAttacker, dmg.flDamage, dmg.bitsDamageType);
CALL_ANGELSCRIPT(pMonsterPostTakeDamage, &dmg);
return value;
}
Expand All @@ -181,7 +181,7 @@ int SC_SERVER_DECL TurretTakeDamage(CBaseMonster* pThis, SC_SERVER_DUMMYARG entv
bitsDamageType
};
CALL_ANGELSCRIPT(pMonsterTakeDamage, &dmg);
int value = CALL_ORIGIN(gHookItems.BaseMonsterTakeDamage, TakeDamage, pevInflictor, pevAttacker, dmg.flDamage, dmg.bitsDamageType);
int value = CALL_ORIGIN(gHookItems.TurretTakeDamage, TakeDamage, pevInflictor, pevAttacker, dmg.flDamage, dmg.bitsDamageType);
CALL_ANGELSCRIPT(pMonsterPostTakeDamage, &dmg);
return value;
}
Expand Down

0 comments on commit 7669cde

Please sign in to comment.