-
Notifications
You must be signed in to change notification settings - Fork 19
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 #305 from 7Cav/ModLoadoutUpdate
Converted Loadouts to to utilize new classnames
- Loading branch information
Showing
18 changed files
with
1,343 additions
and
425 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#include "..\script_component.hpp"; | ||
/* | ||
* Author: CPL.Brostrom.A | ||
* This function fetches your rank based on your name prefix. | ||
* | ||
* Arguments: | ||
* None | ||
* | ||
* Return Value: | ||
* Role name <STRING> | ||
* | ||
* Example: | ||
* call cScripts_fnc_getPlayerRole | ||
* | ||
*/ | ||
|
||
private _return = "Trooper"; | ||
|
||
if !(isMultiplayer) exitWith { _return }; | ||
|
||
private _playerRole = roleDescription player; | ||
|
||
if !(_playerRole == "") then { | ||
_playerRole = _playerRole splitString "@"; | ||
_playerRole = _playerRole select 0; | ||
|
||
} else { | ||
_playerRole = getText (configFile >> "CfgVehicles" >> typeOf player >> "displayName"); | ||
_playerRole = _playerRole splitString " "; | ||
if (_playerRole select 0 in ["Platoon", "Squad"]) then { | ||
_return = [_playerRole select 0, _playerRole select 1] joinString " "; | ||
} else { | ||
_return = _playerRole joinString " "; | ||
}; | ||
}; | ||
|
||
_return; |
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 |
---|---|---|
@@ -1,15 +1,59 @@ | ||
|
||
// A L P H A C O M P A N Y | ||
|
||
// Helo Crew | ||
class Cav_B_A_AirController_Pegasus_1_F : Cav_B_A_AirController_F {}; | ||
class Cav_B_A_AirController_Pegasus_2_F : Cav_B_A_AirController_F {}; | ||
|
||
class Cav_B_A_Helicopter_Tra_Pilot_B1_F : Cav_B_A_Helicopter_Tra_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Tra_Pilot_B2_F : Cav_B_A_Helicopter_Tra_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Tra_Pilot_B3_F : Cav_B_A_Helicopter_Tra_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Tra_Pilot_B4_F : Cav_B_A_Helicopter_Tra_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Tra_Pilot_B5_F : Cav_B_A_Helicopter_Tra_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Tra_Pilot_B6_F : Cav_B_A_Helicopter_Tra_Pilot_F {}; | ||
|
||
class Cav_B_A_Helicopter_Att_Pilot_Raider_1_F : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Att_Pilot_Raider_2_F : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Att_Pilot_Raider_3_F : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Att_Pilot_Raider_4_F : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Att_Pilot_Raven_1_F : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Att_Pilot_Raven_2_F : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Att_Pilot_Raven_3_F : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
class Cav_B_A_Helicopter_Att_Pilot_Raven_4_F : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
|
||
class Cav_B_A_Plane_Fighter_Pilot_Hog_1_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Fighter_Pilot_Hog_2_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Fighter_Pilot_Hog_3_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Fighter_Pilot_Hog_4_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Fighter_Pilot_Hog_5_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Fighter_Pilot_Hog_6_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Fighter_Pilot_Hog_7_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Fighter_Pilot_Hog_8_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Fighter_Pilot_Hog_9_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
|
||
class Cav_B_A_Plane_Transport_Pilot_Titan_1_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Transport_Pilot_Titan_2_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Transport_Pilot_Titan_3_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
class Cav_B_A_Plane_Transport_Pilot_Titan_4_F : Cav_B_A_Plane_Transport_Pilot_F {}; | ||
|
||
|
||
// L E G A C Y | ||
// Saved for backwards compability | ||
|
||
// Old class definitions to New class definition | ||
class CAV_Alpha_Helo_PILOT : Cav_B_A_Helicopter_Tra_Pilot_F {}; | ||
class CAV_Alpha_Helo_COPILOT : Cav_B_A_Helicopter_Tra_coPilot_F {}; | ||
class CAV_Alpha_Helo_CHIEF : Cav_B_A_Helicopter_Tra_CrewChief_F {}; | ||
class CAV_Alpha_Helo_GNR : Cav_B_A_Helicopter_Tra_DoorGunner_F {}; | ||
class CAV_Alpha_Helo_PILOT_ATT : Cav_B_A_Helicopter_Att_Pilot_F {}; | ||
class CAV_Alpha_Fixed_PILOT : Cav_B_A_Plane_Fighter_Pilot_F {}; | ||
|
||
|
||
// Older class structure | ||
class B_Helipilot_F : CAV_Alpha_Helo_PILOT {}; | ||
class rhsusf_army_ocp_helipilot : CAV_Alpha_Helo_COPILOT {}; | ||
class B_T_Helicrew_F : CAV_Alpha_Helo_CHIEF {}; | ||
class B_Helicrew_F : CAV_Alpha_Helo_GNR {}; | ||
|
||
class B_T_Helipilot_F : CAV_Alpha_Helo_PILOT_ATT {}; | ||
//class undefinedClass : CAV_Alpha_Helo_COPILOT_ATT {}; | ||
|
||
// Fixed-Wing | ||
|
||
class B_Fighter_Pilot_F : CAV_Alpha_Fixed_PILOT {}; |
Oops, something went wrong.