About fire angel system... |
About fire angel system... |
19 Apr 2018, 12:59
Post
#1
|
|
Group: Members Posts: 149 Joined: 1 March 2014 From: China(Mainland) Member No.: 10320 |
In Ench there are fire angel system, allowing artillery unit use different fire pitch for different weapon(a precise but shorter range and a long range but inaccurate one)
However I don't get its code's logic First for different fire pitch there should be two turret, but..... Turret = TURRET TurretPitch = TURRETEL AltTurret = TURRET AltTurretPitch = TURRETEL (shocking...) Well I see if I just copy that there will be a problem, when the unit using its primary weapon. The turret will instantly recover to default state after fire,and will pitch from default if weapon change frome secondary to primary. And the author also said there is some code fixing it: TransitionState = TRANS_UsingA TRANS_None Model = AVM270 Animation = AVM270.AVM270 AnimationMode = ONCE AnimationSpeedFactorRange = -3.0 -3.0 Turret = TURRET TurretPitch = TURRETEL WeaponLaunchBone = PRIMARY WeaponA End TransitionState = TRANS_UsingAReallyDamaged TRANS_ReallyDamaged Model = AVM270_D Animation = AVM270_D.AVM270_D AnimationMode = ONCE AnimationSpeedFactorRange = -3.0 -3.0 Turret = TURRET TurretPitch = TURRETEL WeaponLaunchBone = PRIMARY WeaponA End Can't figur out what it do and how it fix the problem.... |
|
|
17 Feb 2019, 5:12
Post
#2
|
|
Group: Members Posts: 46 Joined: 18 June 2015 From: Shanghai,China Member No.: 11608 |
I don't know, but it seems that the "re-positioning" of the artillery turret pitch is completed by an transition animation rather than "real" turret pitch angle change. Therefore I guess maybe they use the "AnimationSteeringUpdate" (which can be found in the original GLA combat bike) to ensure the transition animation is completed before acutal fire.
CODE Behavior = AnimationSteeringUpdate ModuleTag_17 MinTransitionTime = 300 End Also, I guess to make sure WeaponB won't fire on its own until the pitch angle change animation is played, maybe there're a few Pre-Attack parameters in its Weapon.ini setting. Weapon A vice versa. Since I never played the mod you mentioned (Also I didn't find it in Moddb lol ), I suggest posting the full code of this unit if the suggested mechanism is not the actual case. |
|
|
Lo-Fi Version | Time is now: 28 April 2024 - 1:18 |