Mantis: 0001131

o Fixed an exploit where commanders could place structures silently.

git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@495 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
puzl 2006-05-20 00:27:27 +00:00
parent aafcb5e0f2
commit 1c428eb52a

View file

@ -474,7 +474,12 @@ CBaseEntity* AvHSUBuildTechForPlayer(AvHMessageID inBuildID, const Vector& inLoc
{
//voogru: play effect at player origin in combat, cause the item is in the middle of nowhere.
Vector vecOrigin = (theEntity->IsInWorld() && !GetGameRules()->GetIsCombatMode()) ? inLocation : inPlayer->pev->origin;
PLAYBACK_EVENT_FULL(0, inPlayer->edict(), gPhaseInEventID, 0, vecOrigin, (float *)&g_vecZero, 0.0, 0.0, 0, 0, 0, 0 );
if( GetGameRules()->GetIsCombatMode() ) {
PLAYBACK_EVENT_FULL(0, inPlayer->edict(), gPhaseInEventID, 0, vecOrigin, (float *)&g_vecZero, 0.0, 0.0, 0, 0, 0, 0 );
}
else {
PLAYBACK_EVENT_FULL(0, 0, gPhaseInEventID, 0, vecOrigin, (float *)&g_vecZero, 0.0, 0.0, 0, 0, 0, 0 );
}
}
}
}