I don't see any problem with it. even the build stuff process works with this module. But at first the guy who opened this thread should know that the recoil stuff is also defined in weapon.ini (don't have the code atm, just search for "recoil" there). This parameter must be in the object's weapon template as well.
I'm not sure if you really need
InitialRecoilSpeed = 10
MaxRecoilDistance = 1.5
RecoilSettleSpeed = 3
Afaik the barrels do recoil even without these parameters. BUT: there's a bug in game logic that forbids recoiling for PRIMARY defined weapons, only SECONDARY and TERTIARY weapons actually do recoil... unfortunately. The way around this bug is in the end doing it per firing animation (see infantry code). You can play with some ConditionStates like FIRING_X, BETWEEN_FIRING_SHOTS_X, RELOADING_X (X= A, B, C for primary, secondary, tertiary weapon)
|