mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Strip clothes: drop item to soldier's level if no place in inventory.
HandleTalkInit: - use SoldierToSoldierLineOfSightTest to check sight to person - increased talking range for militia to TACTICAL_RANGE When checking if radio set equipped for using with militia command feature, don't check for AP_RADIO as the game will deduct AP_TALK when giving order. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8942 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -6506,7 +6506,8 @@ BOOLEAN HandleTalkInit( )
|
||||
if ( !(( pTSoldier->bTeam == MILITIA_TEAM ) && ( CheckIfRadioIsEquipped() )) ) //lal
|
||||
{
|
||||
// Check LOS!
|
||||
if ( !SoldierTo3DLocationLineOfSightTest( pSoldier, pTSoldier->sGridNo, pTSoldier->pathing.bLevel, 3, TRUE, CALC_FROM_ALL_DIRS ) )
|
||||
//if ( !SoldierTo3DLocationLineOfSightTest( pSoldier, pTSoldier->sGridNo, pTSoldier->pathing.bLevel, 3, TRUE, CALC_FROM_ALL_DIRS ) )
|
||||
if (!SoldierToSoldierLineOfSightTest(pSoldier, pTSoldier, TRUE, CALC_FROM_ALL_DIRS))
|
||||
{
|
||||
if ( pTSoldier->ubProfile != NO_PROFILE )
|
||||
{
|
||||
@@ -6620,14 +6621,9 @@ BOOLEAN HandleTalkInit( )
|
||||
|
||||
//lal
|
||||
if ( pTSoldier->bTeam == MILITIA_TEAM )
|
||||
{
|
||||
commandRange = NPC_TALK_RADIUS*3;
|
||||
}
|
||||
commandRange = TACTICAL_RANGE;
|
||||
else
|
||||
{
|
||||
commandRange = NPC_TALK_RADIUS;
|
||||
}
|
||||
|
||||
|
||||
if ( ( uiRange > commandRange ) && ( !CheckIfRadioIsEquipped() ) ) //lal
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user