mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
-ammo weights affected by # bullets remaining
-added code to support urban, desert and snow camo 2 issues: 1. Need to test this to make sure it works, since I'm at work. I'll test it all out tonight. 2. There is no Snow terrain type. Anyone have any great ideas on how to test for it? git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@399 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -457,7 +457,10 @@ SOLDIERTYPE* TacticalCreateSoldier( SOLDIERCREATE_STRUCT *pCreateStruct, UINT8 *
|
||||
if ( i != NO_SLOT && Random( 5 ) < SoldierDifficultyLevel( &Soldier ))
|
||||
{
|
||||
// start camouflaged
|
||||
Soldier.bCamo = 100;
|
||||
Soldier.bCamo = Item[i].camobonus;
|
||||
Soldier.urbanCamo = Item[i].urbanCamobonus;
|
||||
Soldier.desertCamo = Item[i].desertCamobonus;
|
||||
Soldier.snowCamo = Item[i].snowCamobonus;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -722,6 +725,21 @@ BOOLEAN TacticalCopySoldierFromProfile( SOLDIERTYPE *pSoldier, SOLDIERCREATE_STR
|
||||
// set camouflaged to 100 automatically
|
||||
pSoldier->bCamo = 100;
|
||||
}
|
||||
if ( HAS_SKILL_TRAIT( pSoldier, CAMOUFLAGED_URBAN ) )
|
||||
{
|
||||
// set camouflaged to 100 automatically
|
||||
pSoldier->urbanCamo = 100;
|
||||
}
|
||||
if ( HAS_SKILL_TRAIT( pSoldier, CAMOUFLAGED_DESERT ) )
|
||||
{
|
||||
// set camouflaged to 100 automatically
|
||||
pSoldier->desertCamo = 100;
|
||||
}
|
||||
if ( HAS_SKILL_TRAIT( pSoldier, CAMOUFLAGED_SNOW ) )
|
||||
{
|
||||
// set camouflaged to 100 automatically
|
||||
pSoldier->snowCamo = 100;
|
||||
}
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user