Skip to content

Commit

Permalink
Update joke_medigun_mod_drain_health.sp
Browse files Browse the repository at this point in the history
  • Loading branch information
artvin01 committed Feb 24, 2024
1 parent 559982b commit dea9192
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public MRESReturn OnMedigunPostFramePost(int medigun) {
flDrainRate *= target_sucked_long[healTarget];

static float Entity_Position[3];
Entity_Position = WorldSpaceCenterOld(healTarget);
WorldSpaceCenter(healTarget, Entity_Position );

SDKHooks_TakeDamage(healTarget, medigun, owner, flDrainRate * GetGameFrameTime() * 3.0, DMG_PLASMA, medigun, _, Entity_Position);
}
Expand All @@ -309,7 +309,7 @@ public MRESReturn OnMedigunPostFramePost(int medigun) {
flDrainRate *= target_sucked_long[healTarget];

static float Entity_Position[3];
Entity_Position = WorldSpaceCenterOld(healTarget);
WorldSpaceCenter(healTarget, Entity_Position );

SDKHooks_TakeDamage(healTarget, medigun, owner, flDrainRate * GetGameFrameTime(), DMG_PLASMA, medigun, _, Entity_Position);
}
Expand Down Expand Up @@ -680,7 +680,7 @@ public MRESReturn OnMedigunPostFramePost(int medigun) {
flDrainRate *= target_sucked_long[healTarget];

static float Entity_Position[3];
Entity_Position = WorldSpaceCenterOld(healTarget);
WorldSpaceCenter(healTarget, Entity_Position );

SDKHooks_TakeDamage(healTarget, medigun, owner, flDrainRate * GetGameFrameTime(), DMG_PLASMA, medigun, _, Entity_Position);
}
Expand Down

0 comments on commit dea9192

Please sign in to comment.