2015-04-03 17:25:28 +00:00
class RscOpticsValue ;
class RscMapControl ;
2015-04-03 10:33:12 +00:00
class RscText ;
2015-04-03 17:25:28 +00:00
class RscInGameUI {
class RscUnitInfo ;
class RscWeaponZeroing : RscUnitInfo {
class CA_Zeroing ;
} ;
class ACE_RscWeaponZeroing : RscWeaponZeroing {
2017-08-29 22:47:01 +00:00
controls [ ] = { " CA_Zeroing " , " CA_FOVMode " , " ACE_DrawReticleHelper " , " ACE_ScriptedReticle " } ;
2015-04-03 17:25:28 +00:00
2017-08-29 22:47:01 +00:00
class CA_FOVMode : RscOpticsValue { // Idea by Taosenai. Apparently this can be used via isNil check to determine wheter the scope or the kolimator is used
2015-04-03 17:25:28 +00:00
idc = 154 ;
style = 2 ;
2017-08-29 22:47:01 +00:00
colorText [ ] = { 0 , 0 , 0 , 0 } ;
2015-04-03 17:25:28 +00:00
x = 0 ;
y = 0 ;
w = 0 ;
h = 0 ;
} ;
class ACE_DrawReticleHelper : RscMapControl {
onDraw = QUOTE ( [ ctrlParent ( _this select 0 ) ] call DFUNC ( onDrawScope ) ) ;
idc = - 1 ;
w = 0 ;
h = 0 ;
} ;
2015-04-03 10:33:12 +00:00
2015-04-03 17:25:28 +00:00
class ACE_ScriptedReticle : RscText {
idc = 1713154 ;
style = 48 ;
size = 1 ;
sizeEx = 0 ;
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ ace_shortdot_reticle_1 . paa ) ;
2015-04-03 17:25:28 +00:00
w = 0 ;
h = 0 ;
2015-04-03 10:33:12 +00:00
} ;
} ;
2015-04-03 20:30:29 +00:00
2015-04-04 06:51:22 +00:00
class ACE_RscWeapon_base : RscWeaponZeroing {
2017-08-29 22:47:01 +00:00
controls [ ] = { " CA_Zeroing " , " CA_FOVMode " , " ACE_DrawReticleHelper " , " ReticleDay " , " ReticleNight " , " BodyNight " , " BodyDay " , " trippleHeadLeft " , " trippleHeadRight " } ; // Don't change this order
2015-04-03 20:30:29 +00:00
2017-08-29 22:47:01 +00:00
class CA_FOVMode : RscOpticsValue { // Idea by Taosenai. Apparently this can be used via isNil check to determine wheter the scope or the kolimator is used
2015-04-04 06:51:22 +00:00
idc = 154 ;
style = 2 ;
2017-08-29 22:47:01 +00:00
colorText [ ] = { 0 , 0 , 0 , 0 } ;
2015-04-04 06:51:22 +00:00
x = 0 ;
y = 0 ;
w = 0 ;
h = 0 ;
} ;
class ACE_DrawReticleHelper : RscMapControl {
onDraw = QUOTE ( [ ctrlParent ( _this select 0 ) ] call DFUNC ( onDrawScope2D ) ) ;
idc = - 1 ;
w = 0 ;
h = 0 ;
2015-04-03 20:30:29 +00:00
} ;
2015-04-04 11:15:27 +00:00
# define SIZEX 0.75 / (getResolution select 5)
2015-04-03 20:30:29 +00:00
class ReticleDay : RscText {
idc = 1713001 ;
style = 48 ;
size = 0 ;
sizeEx = 1 ;
2015-04-04 06:51:22 +00:00
text = " " ;
2017-08-29 22:47:01 +00:00
colorText [ ] = { 1 , 1 , 1 , 0 } ;
colorBackground [ ] = { 0 , 0 , 0 , 0 } ;
2023-02-02 05:28:55 +00:00
x = QUOTE ( safezoneX + 0.5 * safezoneW - 0.5 * SIZEX ) ;
y = QUOTE ( safezoneY + 0.5 * safezoneH - 0.5 * SIZEX * ( 4 / 3 ) ) ;
w = QUOTE ( SIZEX ) ;
h = QUOTE ( SIZEX * ( 4 / 3 ) ) ;
2015-04-03 20:30:29 +00:00
} ;
class ReticleNight : ReticleDay {
idc = 1713002 ;
2015-04-04 06:51:22 +00:00
text = " " ;
2015-04-03 20:30:29 +00:00
} ;
2015-04-08 23:20:00 +00:00
# undef SIZEX
2015-04-04 11:15:27 +00:00
# define SIZEX 2*0.75 / (getResolution select 5)
2015-04-03 20:30:29 +00:00
class BodyDay : ReticleDay {
idc = 1713005 ;
2015-04-04 06:51:22 +00:00
text = " " ;
2023-02-02 05:28:55 +00:00
x = QUOTE ( safezoneX + 0.5 * safezoneW - 0.5 * SIZEX ) ;
y = QUOTE ( safezoneY + 0.5 * safezoneH - 0.5 * SIZEX * ( 4 / 3 ) ) ;
w = QUOTE ( SIZEX ) ;
h = QUOTE ( SIZEX * ( 4 / 3 ) ) ;
2015-04-03 20:30:29 +00:00
} ;
class BodyNight : BodyDay {
idc = 1713006 ;
2015-04-04 06:51:22 +00:00
text = " " ;
} ;
2015-05-27 16:28:06 +00:00
2017-08-29 22:47:01 +00:00
// These are just black side panels to cover the areas that the optics p3d doesn't cover
// It will ONLY effect tripple head users as (safezoneX == safeZoneXAbs) for everyone else
// Reference PR #1156:
2015-05-27 16:28:06 +00:00
class trippleHeadLeft : RscText {
idc = 1713010 ;
x = " safeZoneXAbs " ;
Y = " safezoneY " ;
2017-08-29 22:47:01 +00:00
W = " (safezoneX - safeZoneXAbs) * ((getResolution select 4) / (16 / 3)) " ;
2015-05-27 16:28:06 +00:00
H = " safeZoneH " ;
2017-08-29 22:47:01 +00:00
colorBackground [ ] = { 0 , 0 , 0 , 1 } ;
2015-05-27 16:28:06 +00:00
} ;
class trippleHeadRight : trippleHeadLeft {
idc = 1713011 ;
2017-08-29 22:47:01 +00:00
x = " safeZoneXAbs + safeZoneWAbs - (safezoneX - safeZoneXABS) * ((getResolution select 4) / (16 / 3)) " ;
2023-02-02 05:28:55 +00:00
colorBackground [ ] = { 0 , 0 , 0 , 1 } ;
2015-08-19 15:11:15 +00:00
} ;
2015-04-04 06:51:22 +00:00
} ;
class ACE_RscWeapon_Hamr : ACE_RscWeapon_base {
class ReticleDay : ReticleDay {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ hamr - reticle65_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class ReticleNight : ReticleNight {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ hamr - reticle65Illum_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class BodyDay : BodyDay {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ hamr - body_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class BodyNight : BodyNight {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ hamr - bodyNight_ca . paa ) ;
2015-04-03 20:30:29 +00:00
} ;
} ;
2015-04-04 06:51:22 +00:00
class ACE_RscWeapon_Arco : ACE_RscWeapon_base {
class ReticleDay : ReticleDay {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ arco - reticle65_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class ReticleNight : ReticleNight {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ arco - reticle65Illum_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class BodyDay : BodyDay {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ arco - body_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class BodyNight : BodyNight {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ arco - bodyNight_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
} ;
class ACE_RscWeapon_MRCO : ACE_RscWeapon_base {
class ReticleDay : ReticleDay {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ mrco - reticle556_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class ReticleNight : ReticleNight {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ mrco - reticle556Illum_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class BodyDay : BodyDay {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ mrco - body_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class BodyNight : BodyNight {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ mrco - bodyNight_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
} ;
class ACE_RscWeapon_SOS : ACE_RscWeapon_base {
class ReticleDay : ReticleDay {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ sos - reticleMLR_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class ReticleNight : ReticleNight {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ sos - reticleMLRIllum_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class BodyDay : BodyDay {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ sos - body_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
class BodyNight : BodyNight {
2016-04-08 18:34:50 +00:00
text = QPATHTOF ( reticles \ sos - bodyNight_ca . paa ) ;
2015-04-04 06:51:22 +00:00
} ;
} ;
2015-04-03 10:33:12 +00:00
} ;
2015-04-03 20:30:29 +00:00
/*
_ctrl = ( D displayCtrl 1713006 ) ;
2017-08-29 22:47:01 +00:00
_sizeX = 1.54 / ( getResolution select 5 ) ;
_sizeY = _sizeX * safezoneW / safezoneH ;
2015-04-03 20:30:29 +00:00
2015-05-27 16:28:06 +00:00
_ctrl ctrlSetPosition [
2017-08-29 22:47:01 +00:00
safezoneX + 0.5 * safezoneW - 0.5 * _sizeX ,
safezoneY + 0.5 * safezoneH - 0.5 * _sizeY ,
2015-05-27 16:28:06 +00:00
_sizeX ,
_sizeY
2015-04-03 20:30:29 +00:00
] ;
_ctrl ctrlCommit 0
2015-05-27 16:28:06 +00:00
*/