mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
scopes framework
This commit is contained in:
parent
62f20f5756
commit
e55c80429f
32
documentation/framework/scopes-framework.md
Normal file
32
documentation/framework/scopes-framework.md
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
layout: wiki
|
||||
title: Scopes framework
|
||||
description:
|
||||
group: framework
|
||||
order: 5
|
||||
parent: wiki
|
||||
---
|
||||
|
||||
## 1. Adding scope adjustement support
|
||||
|
||||
```c++
|
||||
class CfgWeapons {
|
||||
class ItemCore;
|
||||
class InventoryOpticsItem_Base_F;
|
||||
|
||||
class yourHighPoweredScope : ItemCore {
|
||||
ACE_ScopeAdjust_Vertical[] = { -4, 30 }; // max vertical adjustement limits
|
||||
ACE_ScopeAdjust_Horizontal[] = { -6, 6 }; // max horizontal adjustement limits
|
||||
ACE_ScopeAdjust_VerticalIncrement = 0.1; // vertical incrementation
|
||||
ACE_ScopeAdjust_HorizontalIncrement = 0.1; // horizontal incrementation
|
||||
class ItemInfo : InventoryOpticsItem_Base_F {
|
||||
class OpticsModes {
|
||||
class Snip {
|
||||
discreteDistance[] = { 100 };
|
||||
discreteDistanceInitIndex = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
```
|
Loading…
Reference in New Issue
Block a user