-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from kasteelharry/DevBranch
Pull request DevBranch into Master
- Loading branch information
Showing
12 changed files
with
613 additions
and
468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
Author: MR. H. | ||
Description: removes the NVGs on player. Based upon Mr. H. MRH_fnc_removeNVGs function in MRHMilsimTools | ||
Return value:None | ||
Public: Yes | ||
Parameters: | ||
0 - <OBJECT> - Unit to remove NVGs from. | ||
Example(s): | ||
[player] call Kast_fnc_removeNVGs; | ||
*/ | ||
|
||
params ["_unit"]; | ||
|
||
_assignedItems = assigneditems _unit; | ||
_items = items _unit; | ||
_toSave = []; | ||
_toSaveAssigned = []; | ||
{ | ||
if (_x in _items) then {_unit removeItem _x; _toSave pushBack _x;}; | ||
if (_x in _assignedItems) then {_unit unlinkItem _x; _toSaveAssigned pushBackUnique _x;}; | ||
|
||
} forEach allNVGsArray; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
Author: Mr. H. | ||
Description: Put's all the NVG's in a list to be removed later. Based upon Mr. H. MRH_fnc_removeNVGs function in MRHMilsimTools | ||
Return value:None | ||
Public: Yes | ||
Parameters: | ||
*/ | ||
|
||
|
||
//Gets all the objects from cfgWeapon | ||
_allWeaponsConfigs = "true" configClasses (configFile >> "cfgWeapons"); | ||
_allWeaponsConfigNames = _allWeaponsConfigs apply {configName _x}; | ||
|
||
//Hardcoded the apex NVGs due to them not being found... | ||
allNVGsArray = ["NVGoggles_tna_F"]; | ||
{ | ||
_disp = getnumber (configfile >> "CfgWeapons" >> _x >> "scope"); | ||
_macro = gettext (configfile >> "CfgWeapons" >> _x >> "_generalMacro"); | ||
if (isNil "_macro") then {_macro = "";}; | ||
if ((_disp == 2) && (_macro == "NVGoggles")) then | ||
{ | ||
allNVGsArray pushBackUnique _x; | ||
|
||
}; | ||
} forEach _allWeaponsConfigNames; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
//These lines need to be placed in initPlayerLocal.sqf. | ||
|
||
|
||
//////////////////////////////////////// | ||
//// //// | ||
//// DO NOT CHANGE! //// | ||
//// //// | ||
//////////////////////////////////////// | ||
/////////////////////////////////// | ||
/// /// | ||
/// DO NOT EDIT /// | ||
/// /// | ||
/////////////////////////////////// | ||
|
||
//Removes the markers in the local channels | ||
[] spawn kast_fnc_KeepMapClean; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.