Posted: Tue Apr 28, 2020 3:54 pm Post subject:
I need help with projectile
Subject description: Projectile created at cliff goes into the ground
So problem is when unit fires at flat surface it works well but when unit goes to any cliff or gets higher than target by any way then its projectiles starts to fire into the ground... i know that its caused by CourseLockDuration in this situation but i need it for that weapon...
For some reason at cliffs projectile starts from falling and then rising(but cuz of course lock "rising" isn't happens)...
p.s.
I could lower acceleration but projectile will lose all idea
Code:
[ClusterMissileP]
;Arm=1 <- Tried with and without
Shadow=no
High=yes
AA=yes
AG=yes
Ranged=no
Proximity=no
Image=ClusterM
ROT=100
SubjectToCliffs=yes
SubjectToElevation=yes
SubjectToWalls=yes
Acceleration=10
Airburst=yes
AirburstWeapon=SClusterMissile
CourseLockDuration=10
Cluster=4
AroundTarget=no
Splits=yes
RetargetAccuracy=0.75
RetargetSelf=no
When you give the projectile no option to rotate (due to CurseLockDuration) and don't want to change its behaviour, what do you expect the bullet to do?
There is no magic bullet flies through ground/cliffs logic.
Either change the bullet behaviour and allow it to avoid cliffs, or accept that it hits them.
According to modenc, the SubjectTo* keys work for non-homing projectiles only. So they are redundant on yours. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Joined: 22 Nov 2010 Location: Iszkaszentgyorgy, Hungary
Posted: Wed Apr 29, 2020 11:14 am Post subject:
Can you tweak the FLH to give it more headroom on the fixed path? _________________ "If you didn't get angry and mad and frustrated, that means you don't care about the end result, and are doing something wrong." - Greg Kroah-Hartman
=======================
Past C&C projects: Attacque Supérior (2010-2019); Valiant Shades (2019-2021)
=======================
WeiDU mods: Random Graion Tweaks | Graion's Soundsets
Maintainance: Extra Expanded Enhanced Encounters! | BGEESpawn
Contributions: EE Fixpack | Enhanced Edition Trilogy | DSotSC (Trilogy) | UB_IWD | SotSC & a lot more... QUICK_EDIT
setting FireAngle may help, if the FLH is already set to the correct location.
I know that i limited its rotation but im curious why when unit is on cliff its firing into ground if target is lower... FLH is absolutely correct and FireAngle doesnt help... QUICK_EDIT
Vehicles/Aircraft default to firing down due to some hardcoded dumbness for bombs (Kirov, Hornets, etc.), FireAngle truly does nothing in RA2 from what I remember testing.
Using another weapon that will Split immediately into the weapon you're trying to use might work, but even that may just split into the ground. _________________ "Don't beg for things; Do it yourself or you'll never get anything." QUICK_EDIT
Vehicles/Aircraft default to firing down due to some hardcoded dumbness for bombs (Kirov, Hornets, etc.)
I believe this difference is actually, at very least in part, explained by initial trajectory being set differently for projectiles with voxel images (such as Kirov's bombs) and those without, regardless of what kind of object is firing the weapon in question. That said, even with SHP projectiles which should be smarter about the initial firing angle you'll probably encounter some problems with cliffs, especially if CourseLockDuration, high Acceleration, low ROT or any combination thereof is involved. _________________ QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum