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

[Vanilla Bug] Ammo is bugged on infantry, vehicles, and buildings with a weapon #1034

Open
3 tasks done
Crimsonum opened this issue Sep 27, 2023 · 1 comment
Open
3 tasks done
Labels
vanilla-bug Something isn't working in the original game

Comments

@Crimsonum
Copy link

First Check

  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I have attached as much information as possible (screenshots, debug and exception logs, etc).

Description

Ammo can be used on any techno type to limit its ammunition. Unfortunately, the ammunition consumption/reload logic is bugged:

  • Infantry reload only after going prone and standing back up. This means that the infantry must receive damage in order to be able to reload. Once the infantry stands back up, it reloads all ammo instantly.
  • Vehicles never reload.
  • Buildings fire all ammunition immediately, ignoring the weapon's ROF. Once all ammo has been depleted, the building will reload instantly, however it will wait for the duration of the weapon's ROF before firing again. This is most likely a leftover from Red Alert (i.e. Tesla Coil) and not a bug per se, but it presents a limitation for modders.

Should these issues be fixed, it should also be relevant to allow modders to override the hardcoded default reload rate. In addition, technos should probably be able to reload while idling and still having some ammo left, instead of having to deplete all ammunition first before the reload mechanism kicks in.

Required Code (optional)

In vanilla TS, the only non-aircraft unit with limited ammo is the Technician. To make reproducing the issue easier, I've modified several basic units and buildings to have limited ammo in the attached test map.

Steps To Reproduce

  1. Download the attached test map
  2. Place it in your TS folder
  3. Start the TS GDI campaign
  4. Shoot around with the units and buildings

Expected Behaviour

Units/defenses should reload after depleting their ammunition.

Actual Behaviour

Most reload mechanisms are bugged or broken/missing altogether.

Additional Context

bandicam.2023-09-27.15-28-28-456.mp4

Download test map

@Crimsonum Crimsonum added the vanilla-bug Something isn't working in the original game label Sep 27, 2023
@Bittah
Copy link

Bittah commented Sep 27, 2023

What might also be useful to know is that if you add NoMovingFire=yes to [SMECH] it will reload 1 pip of ammo every 7 seconds at 60 FPS (this only works for vehicles and doesn't for infantry or aircraft).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vanilla-bug Something isn't working in the original game
Projects
None yet
Development

No branches or pull requests

2 participants