File "items.rul"
The shot animation replacement function is assigned to all firing modes of one weapon at once
Code:
###items:
### - type: STR_RIFLE
### explosionSpeed: 50
### bulletSpeed: 10
### confAuto:
### followProjectiles: false
### - type: STR_RIFLE_CLIP
### explosionSpeed: 50
### bulletSpeed: 10
### confAuto:
### followProjectiles: false
It is necessary to make sure that these functions are assigned not to the weapon or its clip, but to the shooting mode (as well as the "followProjectiles" function) or to the weapon clip in a separate shooting mode
Code:
###items:
### - type: STR_RIFLE
### confAuto:
### followProjectiles: false
### explosionSpeed: 50
### bulletSpeed: 10
### confSnap:
### followProjectiles: true
### explosionSpeed: 10
### bulletSpeed: 5
### confAimed:
### followProjectiles: true
### explosionSpeed: 25
### bulletSpeed: 7
### - type: STR_RIFLE_CLIP
### confAuto:
### followProjectiles: false
### explosionSpeed: 50
### bulletSpeed: 10
### confSnap:
### followProjectiles: true
### explosionSpeed: 10
### bulletSpeed: 5
### confAimed:
### followProjectiles: true
### explosionSpeed: 25
### bulletSpeed: 7
Such settings will allow you to more smoothly configure individual firing modes for individual types of weapons, for individual, special types of bullets for these weapons, while assigning different animation speeds for different types of shots.
There is another idea, to add new shooting modes for the machine gun.
Various mods add this type of weapon under the name “minigun”, but to be honest, it is no different from a machine gun, the weight and number of shots are simply increased, and the bullet animation is accelerated, but in fact this type of weapon does not have its own shooting mode, such as a shotgun that fires shot.
I suggest looking at the description of this version of the game
https://mod.io/g/openxcom/m/enemy-unknown-extended-130The author says that in this game, the machine gun fires its own types of shooting:
1) Burst mode:
- you select 3 target points, and the soldier will shoot a 5 shots burst (on each and between points). Recharge time: 2 turns.
2) Full auto:
- you select 2 points, the soldier will spray the area inbetween with 8 shots. Recharge time: 3 turns.
I suggest taking a few ideas and mini-mods from this version of the game and adding new features to OXCE or better yet BOXCE (OpenXcom Extended Brutal).
Also think about how to expand the capacity of .MCD .PCK .TAB files (sometimes there is not enough space for animated sprites in a PCK file, sometimes you even want to add many different sprites in one texture pack, but for this you need to expand the capacity of these files). If there is at least 10% chance of successfully expanding the texture pack, then you should think about how to do it, if not, then give a reason why exactly this amount fits in this file and why these files cannot be modified in any way. I would like to know what and why.