Ace3: REARM_ACTION_DISTANCE REARM_ACTION_DISTANCE_SQR default values are too low.

Created on 3 Mar 2018  路  6Comments  路  Source: acemod/ACE3

Arma 3 Version: 1.80 (stable / rc / dev)
CBA Version: 3.5 (stable / dev + commit hash)
ACE3 Version: 3.12.1 (stable / dev + commit hash)

Mods:

- CBA_A3
- ace

Description:
ace_rearm not working on big vehicles due to small default values of

#define REARM_ACTION_DISTANCE 7
#define REARM_ACTION_DISTANCE_SQR 49

For example VTOL V-44. You can't get closer than ~8 and ~64.

Steps to reproduce:
Place empty V-44 gunship. Try to rearm.

Where did the issue occur?

  • Everywhere

Placed Modules:

  • None
kinenhancement

Most helpful comment

Should be changed to use the common functions that return distance based on vehicle size.

All 6 comments

when you want to have REARM_ACTION_DISTANCE at 8 then REARM_ACTION_DISTANCE_SQR must be the square of that...

@jokoho48 I got it. Symbol ~ means 'approximately'.
Let me just show.
https://i.imgur.com/9VLK0LV.jpg
Point not in actual numbers, but in that I can't reach them.

Should be changed to use the common functions that return distance based on vehicle size.

I'm personally a fan of sizeOf:

sizeOf typeOf _vehicle

Why it is not in 3.13.0?

Will look into swapping to ace_interaction_fnc_getInteractionDistance

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SimichRE picture SimichRE  路  3Comments

armyinf0703 picture armyinf0703  路  3Comments

thirald picture thirald  路  3Comments

ItayNoyman picture ItayNoyman  路  3Comments

GalNa picture GalNa  路  3Comments