mirror of
https://github.com/ENSL/NS.git
synced 2025-01-31 05:00:53 +00:00
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:
parent
aafcb5e0f2
commit
1c428eb52a
1 changed files with 6 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue