Created
December 6, 2016 03:40
-
-
Save sigsegv-mvm/236eebe275a6e3b9b24afe6b0d3a797d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WTF WTF WTF WTF WTF | |
void CBaseObject::UpdateOnRemove() | |
{ | |
// ... | |
this->DestroyObject(); | |
if (TFGameRules() != nullptr && TFGameRules()->IsMannVsMachineMode() && this->GetTeamNumber() == TF_TEAM_BLUE) { | |
for (int i = 0; i < IBaseObjectAutoList::AutoList().Count(); ++i) { | |
CBaseObject *obj = static_cast<CBaseObject *>(IBaseObjectAutoList::AutoList()[i]); | |
if (obj == this) continue; | |
if (obj->GetType() == this->GetType()) { | |
if (!obj->IsDying() && obj->GetBuilder() == nullptr) { | |
obj->DetonateObject(); | |
} | |
} | |
} | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment