Editor Stuff for Ballistic Addon Studios
Deltas, Rangers and Spec Op Weapons
**********************************************************************************************************************
Editor / scripting commands are in sections defined by [code] [endcode]. When copying and pasting, you only the stuff between the code markers.

**********************************************************************************************************************
Animation
**********************************************************************************************************************
Animation Syntax:
Paste these lines into soldiers INIT feild in the editor, or use them in scripts to raise / lower goggles. Note: Animations reset after loading from a save. 

Raise Goggles:
[code]
this animate ["goggles", 0]
[end code]

Lower Goggles:
[code]
this animate ["goggles", 1]
[end code]

To check if goggles are raised or lowered, you can use;

Goggles are down:
[code]
unitname animationPhase "goggles" == 0
[end code]

Goggles are Up:
[code]
unitname animationPhase "goggles" == 1
[end code]


and things like;

Goggles are Moving Down:
[code]
player animationPhase "goggles" > 0
[end code]

or 
[code]
player animationPhase "goggles" > 0 : player say "eng20"; group player setbehaviour "combat"
[end code]

or 
[code]
player animationPhase "goggles" < 1 : player say "eng35"; group player setbehaviour "aware"
[end code]


To lower / raise goggles of an entire squad, use this in init field of leader (or in scripting with Group name):
[code]
{_X animate ["goggles", 1]} forEach units this
[end code]


Example Trigger Setup 1: 
Condition Field:     player animationPhase "goggles" > 0
Actiavtion Field:    player say "eng20"; group player setbehaviour "combat"; {_X animate ["goggles", 1]} forEach units group player

Example Trigger Setup 2: 
Condition Field:     player animationPhase "goggles" > 0
Actiavtion Field:    player say "eng35"; group player setbehaviour "aware"; {_X animate ["goggles", 0]} forEach units group player

Example Script called "bas_AIGoggles.sqs"
; ========================================================================
; BAS Delta Goggles
; Put in init field  
; for soldier -  [this] exec "bas_AIGoggles.sqs" 
; ========================================================================
_delta = _this select 0 
#goggle
? behaviour _delta == "combat" : _delta animate ["goggles",1]
? behaviour _delta == "safe" : _delta animate ["goggles",0]
? behaviour _delta == "aware" : _delta animate ["goggles",0]
~3
?alive _delta : goto "goggle"
exit 
; ========================================================================

NOTE: To counter warping of goggles on Helicopters, you can add an Event Handler to the aircraft, so that any Delta / Ranger that gets in will lower his goggles (prevents warping).

To add the auto goggles to a helo or vehicle, use this line in the vehicles INIT field:
[code]
this addEventHandler ["GetIn", {_this select 2 animate ["Goggles", 1]}]
[end code]

**********************************************************************************************************************
ARM PATCH TEXTURES
**********************************************************************************************************************
You can select a Patch to put on the units arm, by pasting this code into the INIT field :
NOTE: The texture can be changed in mission


OR different Ranger Divisions: 
[code]
this setObjectTexture [0,"\BAS_weap\unitpatch\82nd.paa"]
[end code]

Available Ranger Patches are :
this setObjectTexture [0,"\BAS_weap\unitpatch\82nd.paa"]
this setObjectTexture [0,"\BAS_weap\unitpatch\101st.paa"]
this setObjectTexture [0,"\BAS_weap\unitpatch\10thMt.paa"]
this setObjectTexture [0,"\BAS_weap\unitpatch\75thRanger.paa"]

And Subdued patches:
this setObjectTexture [0,"\BAS_weap\unitpatch\82ndsub.paa"]
this setObjectTexture [0,"\BAS_weap\unitpatch\101stsub.paa"]
this setObjectTexture [0,"\BAS_weap\unitpatch\10thMtsub.paa"]
this setObjectTexture [0,"\BAS_weap\unitpatch\75thRangersub.paa"]

OR

SQUAD PATCHES
To quickly and easily change the arm patch of an entire squad, past this line in the INIT field of squad leader:
[code]
{_x setObjectTexture [0,"\BAS_weap\unitpatch\10thMt.paa"]} forEach units this
[end code]

or (for use outside init field, requires Group name):
[code]
{_x setObjectTexture [0,"\BAS_weap\unitpatch\10thMt.pac"]} forEach units Grpname
[end code]

**********************************************************************************************************************
CAMOFLAGE FACE TEXTURES
**********************************************************************************************************************
You can add inbuilt camo faces to the units, by pasting this code into the INIT field of editor.:

[code]
this setFace "basfaceDD1"
[end code]

Other faces are:

basfaceDD1
basfaceDD2
basfaceDD3
basfaceDD4
basfaceDD5

basfaceDW1
basfaceDW2
basfaceDW3
basfaceDW4
basfaceDW5

basfaceRD1
basfaceRW1
basfaceRW2
basfaceRW3

**********************************************************************************************************************
WEAPON CLASS NAMES
**********************************************************************************************************************
Weapon Name
Weapon Classname
Magazine Classnames

M4 SOPMOD, ACOG Optics
wpn:	BAS_JM4ACOG
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag

M4 SOPMOD, ACOG Optics w/ Silencer
wpn:	BAS_JM4ACOGS
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag

M4 SOPMOD, ACOG Optics, w/ Masterkey Shotgun
wpn:	BAS_JM4MKACOG
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_12Gauge_Shotgun_Mag

M4 SOPMOD, Reflex Optics
wpn:	BAS_JM4REFLEX
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag

M4 SOPMOD, Reflex Optics w/ Silencer
wpn:	BAS_JM4REFLEXS
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag

M4 SOPMOD, Reflex Optics w/ M203 Grenade Launcher
wpn:	BAS_JM4ReflexM203
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M4 SOPMOD, Reflex Optics w/ M203 Grenade Launcher and Silencer
wpn:	BAS_JM4ReflexSM203
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M4 SOPMOD, Reflex Optics w/ Masterkey Shotgun
wpn:	BAS_JM4MKReflex
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_12Gauge_Shotgun_Mag

M4 SOPMOD, EoTech 551 Optics
wpn:	BAS_JM4EOTech
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag

M4 SOPMOD, EoTech 551 Optics w/ Silencer
wpn:	BAS_JM4EOTechS:
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag

M4 SOPMOD, EoTech 551 Optics w/ M203 Grenade Launcher
wpn:	BAS_JM4EOTechM203
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M4 SOPMOD, EoTech 551 Optics w/ M203 Grenade Launcher and Silencer
wpn:	BAS_JM4EOTechSM203
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M4 SOPMOD, Aimpoint CCO Optics
wpn:	BAS_JM4Aimpoint
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag

M4 SOPMOD, Aimpoint CCO Optics w/ Silencer
wpn:	BAS_JM4AimpointS
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag

M4 SOPMOD, Aimpoint CCO Optics w/ M203 Grenade Launcher
wpn:	BAS_JM4AimpointM203
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M4 SOPMOD, Aimpoint CCO Optics w/ M203 Grenade Launcher and Silencer
wpn:	BAS_JM4AimpointSM203
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M14 Rifle, Aimpoint Optics
wpn:	BAS_JM14AIMPOINT
mag:	JAM_W762_20mag OR JAM_W762_20HDmag OR BAS_M14Mag

M14 Rifle, ACOG Optics
wpn:	BAS_JM14DMR
mag:	JAM_W762Sniper_20mag

M24 Sniper Weapon System
wpn:	BAS_JM24SWS
mag:	JAM_W762_5mag OR BAS_M24Mag

SR-25 Rifle
wpn:	BAS_JSR25
mag:	JAM_W762Sniper_20Mag

SR-25 Rifle w/ Silencer
wpn:	BAS_JSR25S
mag:	JAM_W762Sniper_20SDMag

H&K MP5 SD6
wpn:	BAS_JMP5SDAimpoint
mag:	JAM_MP5SBASDmag OR BAS_MP5SDMag

M249 Squad Automatic Weapon
wpn:	BAS_JM249
mag:	JAM_W556M_200mag OR JAM_W556M_200HDmag OR BAS_M249Mag

M249 Special Purpose Weapon
wpn:	BAS_JM249SPW
mag:	JAM_W556M_200mag OR JAM_W556M_200HDmag OR BAS_M249Mag

M249 Special Purpose Weapon w/ Silencer
wpn:	BAS_JM249SPWSD
mag:	JAM_W556M_200SDmag OR JAM_W556M_200SDHDmag

M240 Machinegun
wpn:	BAS_JM240B
mag:	JAM_W762M_100mag OR JAM_W762M_100HDmag OR BAS_M240Mag

SIG P226 9mm
wpn:	BAS_JP226
mag:	JAM_M9mag

Colt M1911
wpn:	BAS_JM1911
mag:	JAM_M1911mag


DESERT VERSIONS

M4 SOPMOD, ACOG Optics
wpn:	BAS_JM4desACOG
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag

M4 SOPMOD, ACOG Optics w/ Silencer
wpn:	BAS_JM4desACOGS
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag

M4 SOPMOD, ACOG Optics, w/ Masterkey Shotgun
wpn:	BAS_JM4desMKACOG
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_12Gauge_Shotgun_Mag

M4 SOPMOD, Reflex Optics
wpn:	BAS_JM4desREFLEX
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag

M4 SOPMOD, Reflex Optics w/ Silencer
wpn:	BAS_JM4desREFLEXS
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag

M4 SOPMOD, Reflex Optics w/ M203 Grenade Launcher
wpn:	BAS_JM4desReflexM203
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M4 SOPMOD, Reflex Optics w/ M203 Grenade Launcher and Silencer
wpn:	BAS_JM4desReflexSM203
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M4 SOPMOD, Reflex Optics w/ Masterkey Shotgun
wpn:	BAS_JM4desMKReflex
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_12Gauge_Shotgun_Mag

M4 SOPMOD, EoTech 551 Optics
wpn:	BAS_JM4desEOTech
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag

M4 SOPMOD, EoTech 551 Optics w/ Silencer
wpn:	BAS_JM4desEOTechS:
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag

M4 SOPMOD, EoTech 551 Optics w/ M203 Grenade Launcher
wpn:	BAS_JM4desEOTechM203
mag:	JAM_W556_30mag OR JAM_W556_30HDmag OR BAS_M4Mag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade

M4 SOPMOD, EoTech 551 Optics w/ M203 Grenade Launcher and Silencer
wpn:	BAS_JM4desEOTechSM203
mag:	JAM_W556_30SDmag OR JAM_W556_30SDHDmag OR BAS_M4SMag, JAM_M433grenade OR JAM_M433vest OR BAS_M433grenade


M24 Sniper Weapon System
wpn:	BAS_JM24desSWS
mag:	JAM_W762_5mag OR BAS_M24Mag

**********************************************************************************************************************
UNIT CLASS NAMES
**********************************************************************************************************************
This info can be used in createunit / createvehicle scripting:

BAS Ammo Crate: 
BAS_deltacrate

WOODLAND DELTA

BAS_JDeltaTeamLeader
BAS_JDeltaFireTeamLeader
BAS_JDeltaOperatorGL
BAS_JDeltaOperator
BAS_JDeltaOperator2
BAS_JDeltaMK
BAS_JDeltaRTO
BAS_JDeltaSniper
BAS_JDeltaSpotter
BAS_JDeltaMGunner
BAS_JDeltaAT

DESERT DELTA

BAS_JDeltaTeamLeaderDES
BAS_JDeltaFireTeamLeaderDES
BAS_JDeltaOperatorGLDES
BAS_JDeltaOperatorDES
BAS_JDeltaOperator2DES
BAS_JDeltaMKDES
BAS_JDeltaRTODES
BAS_JDeltaSniperDES
BAS_JDeltaSpotterDES
BAS_JDeltaMGunnerDES
BAS_JDeltaATDES

WOODLAND DELTA w/ HD Weapons

BAS_JDeltaTeamLeaderHD
BAS_JDeltaFireTeamLeaderHD
BAS_JDeltaOperatorGLHD
BAS_JDeltaOperatorHD
BAS_JDeltaOperator2HD
BAS_JDeltaMKHD
BAS_JDeltaRTOHD
BAS_JDeltaMGunnerHD
BAS_JDeltaATHD

DESERT DELTA w/ HD Weapons

BAS_JDeltaTeamLeaderDESHD
BAS_JDeltaFireTeamLeaderDESHD
BAS_JDeltaOperatorGLDESHD
BAS_JDeltaOperatorDESHD
BAS_JDeltaOperator2DESHD
BAS_JDeltaMKDESHD
BAS_JDeltaRTODESHD
BAS_JDeltaMGunnerDESHD
BAS_JDeltaATDESHD

WOODLAND DELTA w/ Silenced Weapons

BAS_JDeltaTeamLeaderS
BAS_JDeltaFireTeamLeaderS
BAS_JDeltaOperatorGLS
BAS_JDeltaOperatorS
BAS_JDeltaRTOS
BAS_JDeltaSniperS
BAS_JDeltaSpotterS
BAS_JDeltaMGunnerS
BAS_JDeltaATS

DESERT DELTA w/ Silenced Weapons

BAS_JDeltaTeamLeaderSDES
BAS_JDeltaFireTeamLeaderSDES
BAS_JDeltaOperatorGLSDES
BAS_JDeltaOperatorSDES
BAS_JDeltaRTOSDES
BAS_JDeltaSniperSDES
BAS_JDeltaSpotterSDES
BAS_JDeltaMGunnerSDES
BAS_JDeltaATSDES

WOODLAND DELTA w/ Silenced HD Weapons

BAS_JDeltaTeamLeaderSHD
BAS_JDeltaFireTeamLeaderSHD
BAS_JDeltaOperatorGLSHD
BAS_JDeltaOperatorSHD
BAS_JDeltaRTOSHD
BAS_JDeltaMGunnerSHD
BAS_JDeltaATSHD

DESERT DELTA w/ Silenced HD Weapons

BAS_JDeltaTeamLeaderSDESHD
BAS_JDeltaFireTeamLeaderSDESHD
BAS_JDeltaOperatorGLSDESHD
BAS_JDeltaOperatorSDESHD
BAS_JDeltaRTOSDESHD
BAS_JDeltaMGunnerSDESHD
BAS_JDeltaATSDESHD

WOODLAND RANGERS

BAS_JRangerOfficer
BAS_JRangerTeamLeader
BAS_JRangerFireTeamLeader
BAS_JRangerAmmoBearer
BAS_JRangerAssistantGunner
BAS_JRangerDesignatedMarksman
BAS_JRanger
BAS_JRangerMK
BAS_JRangerGL
BAS_JRangerMedic
BAS_JRangerRTO
BAS_JRangerMGunner
BAS_JRangerHvyMG
BAS_JRangerAT
BAS_JRangerLD
BAS_JRangerSniper
BAS_JRangerSpotter

DESERT RANGERS

BAS_JRangerOfficerDES
BAS_JRangerTeamLeaderDES
BAS_JRangerFireTeamLeaderDES
BAS_JRangerAmmoBearerDES
BAS_JRangerAssistantGunnerDES
BAS_JRangerDesignatedMarksmanDES
BAS_JRangerDES
BAS_JRangerMKDES
BAS_JRangerGLDES
BAS_JRangerMedicDES
BAS_JRangerRTODES
BAS_JRangerMGunnerDES
BAS_JRangerHvyMGDES
BAS_JRangerATDES
BAS_JRangerLDDES
BAS_JRangerSniperDES
BAS_JRangerSpotterDES

WOODLAND RANGERS w/ HD Weapons

BAS_JRangerOfficerHD
BAS_JRangerTeamLeaderHD
BAS_JRangerFireTeamLeaderHD
BAS_JRangerAmmoBearerHD
BAS_JRangerAssistantGunnerHD
BAS_JRangerHD
BAS_JRangerMKHD
BAS_JRangerGLHD
BAS_JRangerMedicHD
BAS_JRangerRTOHD
BAS_JRangerMGunnerHD
BAS_JRangerHvyMGHD
BAS_JRangerATHD
BAS_JRangerLDHD

DESERT RANGERS w/ HD Weapons

BAS_JRangerOfficerDESHD
BAS_JRangerTeamLeaderDESHD
BAS_JRangerFireTeamLeaderDESHD
BAS_JRangerAmmoBearerDESHD
BAS_JRangerAssistantGunnerDESHD
BAS_JRangerDesignatedMarksmanDESHD
BAS_JRangerDESHD
BAS_JRangerMKDESHD
BAS_JRangerGLDESHD
BAS_JRangerMedicDESHD
BAS_JRangerRTODESHD
BAS_JRangerMGunnerDESHD
BAS_JRangerHvyMGDESHD
BAS_JRangerATDESHD
BAS_JRangerLDDESHD

WOODLAND RANGERS w/ Silenced Weapons

BAS_JRangerOfficerS
BAS_JRangerTeamLeaderS
BAS_JRangerFireTeamLeaderS
BAS_JRangerS
BAS_JRangerGLS
BAS_JRangerMedicS
BAS_JRangerRTOS
BAS_JRangerMGunnerS
BAS_JRangerATS
BAS_JRangerLDS
BAS_JRangerSniperS
BAS_JRangerSpotterS

DESERT RANGERS w/ Silenced Weapons

BAS_JRangerOfficerSDES
BAS_JRangerTeamLeaderSDES
BAS_JRangerFireTeamLeaderSDES
BAS_JRangerSDES
BAS_JRangerGLSDES
BAS_JRangerMedicSDES
BAS_JRangerRTOSDES
BAS_JRangerMGunnerSDES
BAS_JRangerATSDES
BAS_JRangerLDSDES
BAS_JRangerSniperSDES
BAS_JRangerSpotterSDES

WOODLAND RANGERS w/ HD Silenced Weapons

BAS_JRangerOfficerHDS
BAS_JRangerTeamLeaderHDS
BAS_JRangerFireTeamLeaderHDS
BAS_JRangerHDS
BAS_JRangerGLHDS
BAS_JRangerMedicHDS
BAS_JRangerRTOHDS
BAS_JRangerMGunnerHDS
BAS_JRangerATHDS
BAS_JRangerLDHDS

DESERT RANGERS w/ HD Silenced Weapons

BAS_JRangerOfficerSDESHD
BAS_JRangerTeamLeaderSDESHD
BAS_JRangerFireTeamLeaderSDESHD
BAS_JRangerSDESHD
BAS_JRangerGLSDESHD
BAS_JRangerMedicSDESHD
BAS_JRangerRTOSDESHD
BAS_JRangerMGunnerSDESHD
BAS_JRangerATSDESHD
BAS_JRangerLDSDESHD

******************************************************************************************************************************************