mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
cc3bad3c56
* XM157 (NGSW-FC Smart Scope) * Update addons/common/functions/fnc_rscObjectHelper.sqf Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> * Update addons/xm157/functions/fnc_weaponInfo_draw.sqf Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com> * Headers * Handle prone-deploy weapon bank * Disable Reticle picker for now * some localizations * Change font looks like CUP modifies EtelkaMonospaceProBold for some reason?? * Create xm157-framework.md * Formating Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
57 lines
1.7 KiB
Markdown
57 lines
1.7 KiB
Markdown
---
|
|
layout: wiki
|
|
title: XM157 Framework
|
|
description: Explains how to add the XM157 scope framework
|
|
group: framework
|
|
order: 5
|
|
parent: wiki
|
|
mod: ace
|
|
version:
|
|
major: 5
|
|
minor: 1
|
|
patch: 0
|
|
---
|
|
|
|
## 1. Config Values
|
|
|
|
|
|
```cpp
|
|
class CfgWeapons {
|
|
class ItemCore;
|
|
class InventoryOpticsItem_Base_F;
|
|
|
|
class your_XM157: ItemCore {
|
|
class CBA_ScriptedOptic {
|
|
bodyTexture = "\z\ace\addons\xm157\data\ace_vector_body_co.paa";
|
|
bodyTextureSize = 1;
|
|
hideMagnification = 1;
|
|
disableTilt = 0;
|
|
};
|
|
weaponInfoType = "ace_xm157_info";
|
|
class ItemInfo: InventoryOpticsItem_Base_F {
|
|
modelOptics = "\x\cba\addons\optics\cba_optic_big_100.p3d";
|
|
class OpticsModes {
|
|
class optic {
|
|
opticsID=1;
|
|
useModelOptics=1;
|
|
opticsPPEffects[]={ "OpticsCHAbera1", "OpticsBlur1" };
|
|
opticsZoomMin = "8 call (uiNamespace getVariable 'cba_optics_fnc_setOpticMagnificationHelper')";
|
|
opticsZoomMax = "1 call (uiNamespace getVariable 'cba_optics_fnc_setOpticMagnificationHelper')";
|
|
opticsZoomInit = "1 call (uiNamespace getVariable 'cba_optics_fnc_setOpticMagnificationHelper')";
|
|
discreteDistance[] = {100};
|
|
discreteDistanceInitIndex = 0;
|
|
distanceZoomMin=100;
|
|
distanceZoomMax=100;
|
|
memoryPointCamera="opticView";
|
|
visionMode[] = {"Normal"};
|
|
opticsFlare=1;
|
|
opticsDisablePeripherialVision=1;
|
|
cameraDir="";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
```
|