Skip to content

Commit

Permalink
Remove the interior abuse message
Browse files Browse the repository at this point in the history
TEF tells me to do so. Fixes #293
  • Loading branch information
RussellLVP committed Sep 5, 2016
1 parent 049f356 commit 2718a0f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions pawn/Features/Deathmatch/DamageManager.pwn
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,6 @@ public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
if (!Player(playerid)->isConnected() || Player(playerid)->isNonPlayerCharacter())
return 0;

// Players inside interiors (including VIP room), should not be hurt.
if (weaponid == WEAPON_EXPLOSION && (!IsPlayerInMainWorld(playerid) || LegacyIsPlayerInVipRoom(playerid))) {
new notice[128];
format(notice, sizeof(notice), "Possible interior bug abuser: %s (Id:%d) damaged %s (Id:%d).",
Player(issuerid)->nicknameString(), issuerid, Player(playerid)->nicknameString(), playerid);
Admin(issuerid, notice);
}

if (issuerid != Player::InvalidId) {
// Keep track of the last person who hit a player.
DamageManager(playerid)->setLastHitId(issuerid);
Expand All @@ -248,9 +240,8 @@ public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
DamageManager(playerid)->setFighting(Time->currentTime());

// Deal noteworthy more damage for sniper headshots.
if (!ShipManager->isPlayerWalkingOnShip(playerid) && weaponid == WEAPON_SNIPER && bodypart == BODY_PART_HEAD) {
if (!ShipManager->isPlayerWalkingOnShip(playerid) && weaponid == WEAPON_SNIPER && bodypart == BODY_PART_HEAD)
DamageManager(issuerid)->dealHeadShot(playerid);
}
}

return 1;
Expand Down

0 comments on commit 2718a0f

Please sign in to comment.