Skip to content

Conversation

@Starkku
Copy link
Contributor

@Starkku Starkku commented Feb 14, 2025

  • Fixes an issue where last shot of strafing aircraft weapon with Strafing.Shots < 5 or if interrupted by ammo running out if Strafing.UseAmmoPerShot=true would not be followed by a similar delay before resuming strafing run or returning to base as there would otherwise be. The delay is also now explicitly customizable although I urge caution in using it in certain cases.

  • Strafing.EndDelay can be used to override the delay after firing last shot in strafing run before aircraft resumes another strafing run or returns to base. Defaults to (Weapon Range * 256 + 1024) / Aircraft Speed. Note that using a short delay with aircraft that can do multiple strafing runs with their ammo can cause undesired behaviour.

In rulesmd.ini:

[SOMEWEAPON]         ; WeaponType
Strafing.EndDelay=   ; integer, game frames

@Starkku Starkku added the Minor Minor feature and/or fix, not a lot of changes or they are not significant label Feb 14, 2025
@github-actions
Copy link

github-actions bot commented Feb 14, 2025

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@Metadorius Metadorius requested a review from a team February 14, 2025 21:28
@Metadorius Metadorius added the ⚙️T1 T1 maintainer review is sufficient label Feb 14, 2025
@fagonghaiwo
Copy link

I adjusted the Strafing.EndDelay to 10. Which is the undesired behaviour?
bandicam 2025-03-23 03-12-20-809

@Coronia
Copy link
Contributor

Coronia commented Mar 25, 2025

tested and worked

@Starkku Starkku merged commit b6c545a into Phobos-developers:develop Mar 28, 2025
6 checks passed
@Starkku Starkku deleted the fix/strafe-fixes branch March 28, 2025 07:52
Coronia pushed a commit that referenced this pull request Mar 28, 2025
- Fixes an issue where last shot of strafing aircraft weapon with
`Strafing.Shots` < 5 or if interrupted by ammo running out if
`Strafing.UseAmmoPerShot=true` would not be followed by a similar delay
before resuming strafing run or returning to base as there would
otherwise be. The delay is also now explicitly customizable although I
urge caution in using it in certain cases.

---------------------------------

- `Strafing.EndDelay` can be used to override the delay after firing
last shot in strafing run before aircraft resumes another strafing run
or returns to base. Defaults to (Weapon `Range` * 256 + 1024) / Aircraft
`Speed`. Note that using a short delay with aircraft that can do
multiple strafing runs with their ammo can cause undesired behaviour.
 
In `rulesmd.ini`:
```ini
[SOMEWEAPON]         ; WeaponType
Strafing.EndDelay=   ; integer, game frames
```
Metadorius pushed a commit to Metadorius/Phobos that referenced this pull request Mar 30, 2025
- Fixes an issue where last shot of strafing aircraft weapon with
`Strafing.Shots` < 5 or if interrupted by ammo running out if
`Strafing.UseAmmoPerShot=true` would not be followed by a similar delay
before resuming strafing run or returning to base as there would
otherwise be. The delay is also now explicitly customizable although I
urge caution in using it in certain cases.

---------------------------------

- `Strafing.EndDelay` can be used to override the delay after firing
last shot in strafing run before aircraft resumes another strafing run
or returns to base. Defaults to (Weapon `Range` * 256 + 1024) / Aircraft
`Speed`. Note that using a short delay with aircraft that can do
multiple strafing runs with their ammo can cause undesired behaviour.
 
In `rulesmd.ini`:
```ini
[SOMEWEAPON]         ; WeaponType
Strafing.EndDelay=   ; integer, game frames
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Minor Minor feature and/or fix, not a lot of changes or they are not significant ❓Phobos bug Something isn't working properly ⚙️T1 T1 maintainer review is sufficient Tested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants