mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
- New camo handling:
Camo Kits can now only be used to paint naked skin which usually means face and hands. Clothing will take care of the rest Together they can reach 100% camo. CAMO_KIT_USABLE_AREA = 5 in Ja2_Options.ini sets the area that can be painted. CAMO_LBE_OVER_VEST_MODIFIER = 0.2 CAMO_LBE_OVER_PANTS_MODIFIER = 0.6 These two set the amount of camo that armor vest/pants can provide if LBE is worn over them. http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/327902/Re_Code_Snippets.html#Post327902 - New Mine avoidance for civilians (by Sevenfm) Civilians can now avoid player placed mines. CIVILIANS_AVOID_PLAYER_MINES = TRUE in Ja2_Options.INI takes care of that. I set the default to TRUE which will allow players to use mine fields in city sectors. http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/327817/Re_Code_Snippets.html#Post327817 - Smoke effects and explosive attachments (by Sevenfm) Normal explosions can now cause a smoke effect. Explosives can be attached to other exlosives to create a more potent bundle. Ja2_Options.INI has some new options for that: ADD_SMOKE_AFTER_EXPLOSION = FALSE ALLOW_EXPLOSIVE_ATTACHMENTS = FALSE ALLOW_SPECIAL_EXPLOSIVE_ATTACHMENTS = FALSE http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/327918/Re_Code_Snippets.html#Post327918 git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6582 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+12
-11
@@ -919,9 +919,10 @@ void SetAutoFaceInActive(INT32 iFaceIndex )
|
||||
|
||||
BOOLEAN SetCamoFace(SOLDIERTYPE * pSoldier)
|
||||
{
|
||||
INT8 worn = -1;
|
||||
// silversurfer: Worn camo is not relevant for the face anymore. Only camo kits can paint our face.
|
||||
// INT8 worn = -1;
|
||||
INT8 applied = -1;
|
||||
INT16 wornCamo[4];
|
||||
// INT16 wornCamo[4];
|
||||
INT16 appliedCamo[4];
|
||||
|
||||
//reset gCamoFace
|
||||
@@ -934,27 +935,27 @@ BOOLEAN SetCamoFace(SOLDIERTYPE * pSoldier)
|
||||
appliedCamo[1] = pSoldier->urbanCamo;
|
||||
appliedCamo[2] = pSoldier->desertCamo;
|
||||
appliedCamo[3] = pSoldier->snowCamo;
|
||||
wornCamo[0] = pSoldier->wornCamo;
|
||||
/* wornCamo[0] = pSoldier->wornCamo;
|
||||
wornCamo[1] = pSoldier->wornUrbanCamo;
|
||||
wornCamo[2] = pSoldier->wornDesertCamo;
|
||||
wornCamo[3] = pSoldier->wornSnowCamo;
|
||||
wornCamo[3] = pSoldier->wornSnowCamo;*/
|
||||
|
||||
for(INT8 loop = 0; loop < 4; loop ++)
|
||||
{
|
||||
if(wornCamo[loop] > 50)
|
||||
worn = loop;
|
||||
if(appliedCamo[loop] > 50)
|
||||
// if(wornCamo[loop] > 50)
|
||||
// worn = loop;
|
||||
if(appliedCamo[loop] > 0 ) //50)
|
||||
applied = loop;
|
||||
}
|
||||
|
||||
|
||||
BOOLEAN isCamoFace = FALSE;
|
||||
|
||||
if(applied != -1 && worn != -1)
|
||||
if(applied != -1) // && worn != -1)
|
||||
{
|
||||
isCamoFace = TRUE;
|
||||
|
||||
if(appliedCamo[applied] >= wornCamo[worn])
|
||||
// if(appliedCamo[applied] >= wornCamo[worn])
|
||||
{
|
||||
if(applied == 0)
|
||||
gCamoFace[pSoldier->ubProfile].gCamoface = TRUE;
|
||||
@@ -967,7 +968,7 @@ BOOLEAN SetCamoFace(SOLDIERTYPE * pSoldier)
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
/* else
|
||||
{
|
||||
isCamoFace = TRUE;
|
||||
|
||||
@@ -992,7 +993,7 @@ BOOLEAN SetCamoFace(SOLDIERTYPE * pSoldier)
|
||||
if(applied == 2 || worn == 2)
|
||||
gCamoFace[pSoldier->ubProfile].gDesertCamoface = TRUE;
|
||||
if(applied == 3 || worn == 3)
|
||||
gCamoFace[pSoldier->ubProfile].gSnowCamoface = TRUE;
|
||||
gCamoFace[pSoldier->ubProfile].gSnowCamoface = TRUE;*/
|
||||
}
|
||||
|
||||
return isCamoFace;
|
||||
|
||||
Reference in New Issue
Block a user