mirror of
https://github.com/projectbraf/braf_factions.git
synced 2026-06-13 14:13:29 +00:00
adjustments to errors generated in the .rpt
This commit is contained in:
@@ -29,6 +29,14 @@ class CfgVehicles
|
||||
|
||||
#include "thug_opfor_units_CUP.hpp"
|
||||
};
|
||||
class CfgWeapons
|
||||
{
|
||||
class Item_Base_F;
|
||||
class U_I_C_Soldier_Bandit_4_F: Item_Base_F
|
||||
{
|
||||
modelSides[] = {3,2,1,0};
|
||||
};
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -84,8 +84,9 @@ _currentMagazine = getArray ( configFile >> "CfgWeapons" >> primaryWeapon _unit
|
||||
_definedWeapon = (selectRandom _weapon);
|
||||
_unit addWeaponGlobal _definedWeapon;
|
||||
|
||||
_compatibleMagazines = _compatibleMagazines - magazineBlacklist;
|
||||
|
||||
_compatibleMagazines = compatibleMagazines _definedWeapon;
|
||||
_compatibleMagazines = _compatibleMagazines - magazineBlacklist;
|
||||
|
||||
_magazine = (selectRandom _compatibleMagazines);
|
||||
_unit addMagazines [_magazine, 6];
|
||||
@@ -38,8 +38,9 @@ _currentMagazine = getArray ( configFile >> "CfgWeapons" >> primaryWeapon _unit
|
||||
_definedWeapon = (selectRandom _sniper);
|
||||
_unit addWeaponGlobal _definedWeapon;
|
||||
|
||||
_compatibleMagazines = _compatibleMagazines - magazineBlacklist;
|
||||
|
||||
_compatibleMagazines = compatibleMagazines _definedWeapon;
|
||||
_compatibleMagazines = _compatibleMagazines - magazineBlacklist;
|
||||
|
||||
|
||||
_magazine = (selectRandom _compatibleMagazines);
|
||||
|
||||
@@ -106,4 +106,8 @@ Vests = [
|
||||
"braf_ephod_vest"
|
||||
];
|
||||
|
||||
_unit addVest (selectRandom Vests);
|
||||
_randomVests = selectRandom Vests
|
||||
if (((_randomVests) != "") || (!isNull(_randomVests))) then
|
||||
{
|
||||
_unit addVest _randomVests;
|
||||
}; // IF Statement criado para parar com erros no log
|
||||
@@ -140,6 +140,20 @@ facewears = [
|
||||
"CUP_G_WristWatch",
|
||||
"G_EyeProtectors_F"
|
||||
];
|
||||
_unit forceAddUniform (selectRandom suits);
|
||||
_unit addHeadgear (selectRandom headgears);
|
||||
_unit addGoggles (selectRandom facewears);
|
||||
_randomSuit = selectRandom suits
|
||||
if (((_randomSuit) != "") || (!isNull(_randomSuit))) then
|
||||
{
|
||||
_unit forceAddUniform _randomSuit;
|
||||
}; // IF Statement criado por que sim
|
||||
|
||||
_randomHeadgear = selectRandom headgears
|
||||
if (((_randomHeadgear) != "") || (!isNull(_randomHeadgear))) then
|
||||
{
|
||||
_unit addHeadgear _randomHeadgear;
|
||||
}; // IF Statement criado para parar com erros no log
|
||||
|
||||
_randomFacewears = selectRandom facewears
|
||||
if (((_randomFacewears) != "") || (!isNull(_randomFacewears))) then
|
||||
{
|
||||
_unit addGoggles _randomFacewears;
|
||||
}; // IF Statement criado para parar com erros no log
|
||||
@@ -26,6 +26,10 @@ suits = [
|
||||
];
|
||||
|
||||
headgears = [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
@@ -101,6 +105,20 @@ facewears = [
|
||||
"CUP_G_WristWatch",
|
||||
"G_EyeProtectors_F"
|
||||
];
|
||||
_unit forceAddUniform (selectRandom suits);
|
||||
_unit addHeadgear (selectRandom headgears);
|
||||
_unit addGoggles (selectRandom facewears);
|
||||
_randomSuit = selectRandom suits
|
||||
if (((_randomSuit) != "") || (!isNull(_randomSuit))) then
|
||||
{
|
||||
_unit forceAddUniform _randomSuit;
|
||||
}; // IF Statement criado por que sim
|
||||
|
||||
_randomHeadgear = selectRandom headgears
|
||||
if (((_randomHeadgear) != "") || (!isNull(_randomHeadgear))) then
|
||||
{
|
||||
_unit addHeadgear _randomHeadgear;
|
||||
}; // IF Statement criado para parar com erros no log
|
||||
|
||||
_randomFacewears = selectRandom facewears
|
||||
if (((_randomFacewears) != "") || (!isNull(_randomFacewears))) then
|
||||
{
|
||||
_unit addGoggles _randomFacewears;
|
||||
}; // IF Statement criado para parar com erros no log
|
||||
Reference in New Issue
Block a user