mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
491 B
Markdown
28 lines
491 B
Markdown
|
---
|
||
|
layout: wiki
|
||
|
title: HuntIR Framework
|
||
|
description: Explains how to add HuntIR support to a weapon.
|
||
|
group: framework
|
||
|
order: 5
|
||
|
parent: wiki
|
||
|
---
|
||
|
|
||
|
## 1. Config Values
|
||
|
|
||
|
```cpp
|
||
|
class CfgWeapons {
|
||
|
class MyRifle {
|
||
|
class MyGL: UGL_F {
|
||
|
magazines[] = {
|
||
|
// All default UGL magazines
|
||
|
"MyFirstMag",
|
||
|
"MySecondMag",
|
||
|
"MyLastMag",
|
||
|
// HuntIR magazine
|
||
|
"ACE_HuntIR_M203"
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
```
|