Skip to content

Commit 680c56a

Browse files
committed
Merge branch 'master' into missile_manpad
2 parents 7ade83b + bfdcb7a commit 680c56a

744 files changed

Lines changed: 60835 additions & 56440 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/pboproject.yml

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
1-
name: pboProject
1+
# name: pboProject
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request_target:
3+
# on:
4+
# push:
5+
# branches:
6+
# - master
7+
# pull_request_target:
88

9-
jobs:
10-
pboproject:
11-
runs-on: windows-2022
12-
steps:
13-
- name: Install Arma 3 Tools
14-
uses: arma-actions/arma3-tools@master
15-
with:
16-
toolsUrl: ${{ secrets.ARMA3_TOOLS_URL }}
17-
- name: Install Mikero Tools
18-
uses: arma-actions/mikero-tools@2023-01-04
19-
- name: Download game data
20-
run: |
21-
Invoke-WebRequest "$env:ARMA3_DATA_URL" -OutFile arma3.zip
22-
Invoke-WebRequest "$env:RHSAFRF_URL" -OutFile rhsafrf.zip
23-
Invoke-WebRequest "$env:RHSGREF_URL" -OutFile rhsgref.zip
24-
Invoke-WebRequest "$env:RHSSAF_URL" -OutFile rhssaf.zip
25-
Invoke-WebRequest "$env:RHSUSF_URL" -OutFile rhsusf.zip
26-
$files = @("arma3.zip", "rhsafrf.zip", "rhsgref.zip", "rhssaf.zip", "rhsusf.zip")
27-
ForEach ($file in $files) {
28-
Expand-7ZipArchive -Path $file -DestinationPath .
29-
Remove-Item $file
30-
}
31-
env:
32-
ARMA3_DATA_URL: ${{ secrets.ARMA3_DATA_URL }}
33-
RHSAFRF_URL: ${{ secrets.RHSAFRF_URL }}
34-
RHSGREF_URL: ${{ secrets.RHSGREF_URL }}
35-
RHSSAF_URL: ${{ secrets.RHSSAF_URL }}
36-
RHSUSF_URL: ${{ secrets.RHSUSF_URL }}
37-
- name: Checkout CBA A3
38-
uses: actions/checkout@v4
39-
with:
40-
path: x\cba
41-
ref: master
42-
repository: CBATeam/CBA_A3.git
43-
- name: Checkout ACE3
44-
uses: actions/checkout@v4
45-
with:
46-
path: z\ace
47-
persist-credentials: false
48-
- name: Checkout pull request
49-
uses: actions/checkout@v4
50-
if: ${{ github.event_name == 'pull_request_target' }}
51-
with:
52-
path: pullrequest
53-
ref: 'refs/pull/${{ github.event.number }}/merge'
54-
- name: Replace addons with pull request addons
55-
if: ${{ github.event_name == 'pull_request_target' }}
56-
run: |
57-
rm -r z\ace\addons\
58-
rm -r z\ace\optionals\
59-
rm -r z\ace\tools\pDummies\
60-
xcopy /e /h /q pullrequest\addons z\ace\addons\
61-
xcopy /e /h /q pullrequest\optionals z\ace\optionals\
62-
xcopy /e /h /q pullrequest\tools\pDummies z\ace\tools\pDummies\
63-
- name: Setup build environment
64-
run: |
65-
subst P: .
66-
pboproject -P
67-
xcopy /e /h /q z\ace\tools\pDummies\gm gm\
68-
xcopy /e /h /q z\ace\tools\pDummies\vn vn\
69-
xcopy /e /h /q z\ace\tools\pDummies\WW2 WW2\
70-
xcopy /e /h /q z\ace\tools\pDummies\CUP CUP\
71-
- name: Build
72-
run: py P:\z\ace\tools\make.py ci
73-
env:
74-
PYTHONUNBUFFERED: 1
75-
- name: Archive logs
76-
uses: actions/upload-artifact@v4
77-
if: ${{ always() }}
78-
with:
79-
name: logs
80-
path: temp/*.log
81-
- name: Archive @ace
82-
uses: actions/upload-artifact@v4
83-
with:
84-
name: '@ace3-${{ github.sha }}'
85-
path: z\ace\release\@ace
9+
# jobs:
10+
# pboproject:
11+
# runs-on: windows-2022
12+
# steps:
13+
# - name: Install Arma 3 Tools
14+
# uses: arma-actions/arma3-tools@master
15+
# with:
16+
# toolsUrl: ${{ secrets.ARMA3_TOOLS_URL }}
17+
# - name: Install Mikero Tools
18+
# uses: arma-actions/mikero-tools@2024-10-08
19+
# - name: Download game data
20+
# run: |
21+
# Invoke-WebRequest "$env:ARMA3_DATA_URL" -OutFile arma3.zip
22+
# Invoke-WebRequest "$env:RHSAFRF_URL" -OutFile rhsafrf.zip
23+
# Invoke-WebRequest "$env:RHSGREF_URL" -OutFile rhsgref.zip
24+
# Invoke-WebRequest "$env:RHSSAF_URL" -OutFile rhssaf.zip
25+
# Invoke-WebRequest "$env:RHSUSF_URL" -OutFile rhsusf.zip
26+
# $files = @("arma3.zip", "rhsafrf.zip", "rhsgref.zip", "rhssaf.zip", "rhsusf.zip")
27+
# ForEach ($file in $files) {
28+
# Expand-7ZipArchive -Path $file -DestinationPath .
29+
# Remove-Item $file
30+
# }
31+
# env:
32+
# ARMA3_DATA_URL: ${{ secrets.ARMA3_DATA_URL }}
33+
# RHSAFRF_URL: ${{ secrets.RHSAFRF_URL }}
34+
# RHSGREF_URL: ${{ secrets.RHSGREF_URL }}
35+
# RHSSAF_URL: ${{ secrets.RHSSAF_URL }}
36+
# RHSUSF_URL: ${{ secrets.RHSUSF_URL }}
37+
# - name: Checkout CBA A3
38+
# uses: actions/checkout@v4
39+
# with:
40+
# path: x\cba
41+
# ref: master
42+
# repository: CBATeam/CBA_A3.git
43+
# - name: Checkout ACE3
44+
# uses: actions/checkout@v4
45+
# with:
46+
# path: z\ace
47+
# persist-credentials: false
48+
# - name: Checkout pull request
49+
# uses: actions/checkout@v4
50+
# if: ${{ github.event_name == 'pull_request_target' }}
51+
# with:
52+
# path: pullrequest
53+
# ref: 'refs/pull/${{ github.event.number }}/merge'
54+
# - name: Replace addons with pull request addons
55+
# if: ${{ github.event_name == 'pull_request_target' }}
56+
# run: |
57+
# rm -r z\ace\addons\
58+
# rm -r z\ace\optionals\
59+
# rm -r z\ace\tools\pDummies\
60+
# xcopy /e /h /q pullrequest\addons z\ace\addons\
61+
# xcopy /e /h /q pullrequest\optionals z\ace\optionals\
62+
# xcopy /e /h /q pullrequest\tools\pDummies z\ace\tools\pDummies\
63+
# - name: Setup build environment
64+
# run: |
65+
# subst P: .
66+
# pboproject -P
67+
# xcopy /e /h /q z\ace\tools\pDummies\gm gm\
68+
# xcopy /e /h /q z\ace\tools\pDummies\vn vn\
69+
# xcopy /e /h /q z\ace\tools\pDummies\WW2 WW2\
70+
# xcopy /e /h /q z\ace\tools\pDummies\CUP CUP\
71+
# - name: Build
72+
# run: py P:\z\ace\tools\make.py ci
73+
# env:
74+
# PYTHONUNBUFFERED: 1
75+
# - name: Archive logs
76+
# uses: actions/upload-artifact@v4
77+
# if: ${{ always() }}
78+
# with:
79+
# name: logs
80+
# path: temp/*.log
81+
# - name: Archive @ace
82+
# uses: actions/upload-artifact@v4
83+
# with:
84+
# name: '@ace3-${{ github.sha }}'
85+
# path: z\ace\release\@ace

.hemtt/launch.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ dlc = [
2121
"Western Sahara",
2222
]
2323

24+
[rf]
25+
extends = "default"
26+
dlc = [
27+
"Reaction Forces"
28+
]
29+
2430
[rhs]
2531
extends = "default"
2632
workshop = [

.hemtt/lints.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,22 @@ options.ignore = [
33
"addPublicVariableEventHandler", # Alt syntax is broken, we are using main syntax
44
"createSoundSource", # Greatly attenuated when in first person and in a vehicle
55
]
6+
7+
[sqf.var_all_caps]
8+
options.ignore = [
9+
"SLX_*", "ACE_*"
10+
]
11+
12+
[sqf.undefined]
13+
enabled = true
14+
options.check_orphan_code = true
15+
16+
[sqf.unused]
17+
#enabled = true #many false positives without DEBUG_MODE_FULL
18+
options.check_params = false
19+
20+
[sqf.shadowed]
21+
enabled = false
22+
23+
[sqf.not_private]
24+
enabled = true

AUTHORS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ Walter Pearce <jaynus@gmail.com>
4242
11RDP-LoupVert <loupvert@11rdp.fr>
4343
654wak654 <ozanegitmen@gmail.com>
4444
[BIG]Bull
45+
Abogado "regiregi22"
4546
ACCtomeek
4647
adam3adam <br.ada@seznam.cz>
4748
Adanteh
@@ -63,6 +64,7 @@ Barman75
6364
Bla1337
6465
BlackPixxel <blackpixxel96@gmail.com>
6566
BlackQwar
67+
Bluefield <tatsuyahayami1@gmail.com>
6668
Brakoviejo
6769
Brisse <brisse@outlook.com>
6870
Brostrom.A | Evul <andreas.brostrom.ce@gmail.com>
@@ -177,6 +179,7 @@ SzwedzikPL <szwedzikpl@gmail.com>
177179
Tachi <zaveruha007@gmail.com>
178180
tbeswick96
179181
Tessa Elieff <Fastroping Sound - CreativeCommons Attributions 3.0>
182+
ThomasAngel
180183
Timi007 <timi007@gmx.net>
181184
Toaster <jonathan.pereira@gmail.com>
182185
Tonic

Cargo.lock

Lines changed: 59 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The mod is **built modularly**, so almost any included PBO can be easily removed
5555
- Carrying and dragging
5656
- Realistic names for vehicles and weapons
5757
- A fire control system (FCS) for armored vehicles and helicopters
58-
- Realistic ballistics/FCS calculated in C/C++ extensions
58+
- Realistic ballistics/FCS calculated in Rust extensions
5959
- Backblast area and overpressure simulation
6060
- Disposable launchers
6161
- Realistic G-forces

ace.dll

1 KB
Binary file not shown.

ace_x64.dll

-2 KB
Binary file not shown.

addons/advanced_ballistics/functions/fnc_diagnoseWeapons.sqf

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,18 +108,11 @@ for "_i" from 0 to (count _cfgWeapons)-1 do {
108108
};
109109
if (_weapons find _weapon == -1) then {
110110
_weapons pushBack _weapon;
111-
_magIndex = _magazines find _magazine;
112-
_magSpeed = _magazineInitSpeeds select _magIndex;
111+
private _magIndex = _magazines find _magazine;
112+
private _magSpeed = _magazineInitSpeeds select _magIndex;
113113
_weaponInitSpeeds pushBack (_abInitialSpeed / _magSpeed);
114114
};
115115
} forEach _data;
116-
{
117-
_x params ["_magazineIndex", "_abInitialSpeed", "_magazine", "_weapon"];
118-
_magIndex = _magazines find _magazine;
119-
_magSpeed = _magazineInitSpeeds select _magIndex;
120-
_wepIndex = _weapons find _weapon;
121-
_wepSpeed = _weaponInitSpeeds select _wepIndex;
122-
} forEach _data;
123116
{
124117
diag_log text format ["AB_WeaponInitSpeed,%1,%2", _x, _weaponInitSpeeds select _forEachIndex];
125118
} forEach _weapons;

addons/advanced_ballistics/functions/fnc_displayProtractor.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (GVAR(Protractor)) exitWith {
2626
true
2727
};
2828
if (weaponLowered ACE_player) exitWith { false };
29-
if (vehicle ACE_player != ACE_player) exitWith { false };
29+
if (!isNull objectParent ACE_player) exitWith { false };
3030
if (currentWeapon ACE_player != primaryWeapon ACE_player) exitWith { false };
3131

3232
2 cutText ["", "PLAIN"];

0 commit comments

Comments
 (0)