mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- MP: Moved the FOV (friendly players share same field of view) to a define ENABLE_MP_FRIENDLY_PLAYERS_SHARE_SAME_FOV (currently disabled)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6041 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+11
-1
@@ -1114,7 +1114,10 @@ void recieveHIRE(RPCParameters *rpcParameters)
|
||||
|
||||
pSoldier->bSide=0; //default coop only
|
||||
gTacticalStatus.Team[MercCreateStruct.bTeam ].bSide=0;
|
||||
|
||||
#ifdef ENABLE_MP_FRIENDLY_PLAYERS_SHARE_SAME_FOV
|
||||
pSoldier->bVisible = 1;
|
||||
#endif
|
||||
|
||||
if(MercCreateStruct.ubProfile==SLAY)//slay
|
||||
{
|
||||
@@ -1125,16 +1128,23 @@ void recieveHIRE(RPCParameters *rpcParameters)
|
||||
if(cGameType==MP_TYPE_DEATHMATCH)//all vs all only
|
||||
{
|
||||
pSoldier->bSide=1;
|
||||
|
||||
#ifdef ENABLE_MP_FRIENDLY_PLAYERS_SHARE_SAME_FOV
|
||||
pSoldier->bVisible = 0;
|
||||
#endif
|
||||
|
||||
gTacticalStatus.Team[MercCreateStruct.bTeam ].bSide=1;
|
||||
|
||||
}
|
||||
if(cGameType==MP_TYPE_TEAMDEATMATCH) //allow teams
|
||||
{
|
||||
if(sHireMerc->team != TEAM)
|
||||
{
|
||||
pSoldier->bSide=1;
|
||||
|
||||
#ifdef ENABLE_MP_FRIENDLY_PLAYERS_SHARE_SAME_FOV
|
||||
pSoldier->bVisible = 0;
|
||||
#endif
|
||||
|
||||
gTacticalStatus.Team[MercCreateStruct.bTeam ].bSide=1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user