Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced Ballistics - Removed all unnecessary settings #5814

Merged
merged 1 commit into from
Nov 30, 2017

Conversation

ulteq
Copy link
Contributor

@ulteq ulteq commented Nov 24, 2017

Replaced simulateForSnipers, simulateForGroupMembers, simulateForEveryone, disabledInFullAutoMode and simulationRadius with some automagic.

Advanced Ballistics is now only running if:
a) The projectile is local
b) The projectile is a tracer (or has a visible bullet trace effect) and is reasonably close to the player

@ulteq ulteq added kind/cleanup Release Notes: **CHANGED:** status/discussion labels Nov 24, 2017
@ulteq ulteq added this to the 3.12.0 milestone Nov 24, 2017
@ulteq ulteq force-pushed the advanced-ballistics-settings-overhaul branch from b6f31b2 to 6ae8c21 Compare November 25, 2017 09:26
};
if (ACE_player distance _unit > _maxRange && {ACE_player distance ((getPosASL _unit) vectorAdd ((vectorNormalized _bulletVelocity) vectorMultiply _maxRange)) > _maxRange}) exitWith {};

private _ammoCount = _unit ammo _muzzle;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to add +1 here as first shot is 29 and last is 0 (the ammo is already removed by the time firedEH runs)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right!

if (_ammoCount <= _lastRoundsTracer || {_tracersEvery > 0 && {(_ammoCount - _lastRoundsTracer) % _tracersEvery == 0}}) exitWith { _abort = false };

if (GVAR(bulletTraceEnabled) && {_muzzleVelocity > BULLET_TRACE_MIN_VELOCITY} && {cameraView == "GUNNER"}) then {
if (currentWeapon ACE_player == binocular ACE_player) exitWith { _abort = false };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess a civilian driving a tank could have cameraView gunner and currentWeapon ACE_player == binocular ACE_player (both "")
but I wouldn't worry about it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could check if the player is currently sitting in a vehicle. But then we would need extra code for the spotting scope.

An ideal solution would be to only display the bullet trace if the view is magnified at least 4 times.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can always refine this later, I wouldn't bother changing it for now

@ulteq ulteq force-pushed the advanced-ballistics-settings-overhaul branch from 6ae8c21 to 332bd46 Compare November 30, 2017 18:36
@PabstMirror PabstMirror merged commit 9c4a32d into master Nov 30, 2017
@PabstMirror PabstMirror deleted the advanced-ballistics-settings-overhaul branch November 30, 2017 23:13
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cleanup Release Notes: **CHANGED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants