I'm doing a damage multiplier plugin like
SM Damage but with the sdkhooks version that doesn't works :
Quote:
Originally Posted by AtomicStryker
EDIT:
Added a compiled version, for convenience
EDIT #2:
Hopefully fixed some errors
EDIT #3:
Removed it for now, for having no effect ingame.
|
My problem is when someone multiply his damage by for example -100000000000 and attack a sentry, the sentry will be unable to being destroy exept with PDA or "AcceptEntityInput(iSentry, "Kill");", after someone tried to destroy the sentry, the sentry has null hp or 0 hp, I can't destroy it with
PHP Code:
SetVariantInt(9999);
AccepEntityInput(iSentry, "RemoveHealth");
I can just vanish the building, but it doesn't spawn metal like usual when a building get destroyed, so that's why I'm looking for if there is another way to destroy buildings.
I don't see how I can destroy a building with this
Code:
function Action (int victim, int &attacker, int &inflictor, float &damage, int &damagetype, int &weapon, float damageForce[3], float damagePosition[3], int damagecustom);
I use this to "destroy" buildings :
PHP Code:
if(GetEntProp(iSentry, Prop_Data, "m_iHealth") < 1)
{
AcceptEntityInput(iSentry, "Kill");
}
[Edit]
I didn't notice you talked about
Code:
native void SDKHooks_TakeDamage(int entity, int inflictor, int attacker, float damage, int damageType=DMG_GENERIC, int weapon=-1, const float damageForce[3]=NULL_VECTOR, const float damagePosition[3]=NULL_VECTOR);
But I don't know what to do with this.
__________________