OpenXcom Forum

OpenXcom => Suggestions => Topic started by: Bobit on May 16, 2019, 03:29:46 pm

Title: Mortars and custom psi
Post by: Bobit on May 16, 2019, 03:29:46 pm
Don't take me too seriously cuz I haven't modded anything yet. But it seems like it would be nice to have and (maybe) easy to program this feature:

Also it would make sense if you could use the attributes of the target (if any) to determine accuracy, as with psi attacks. So there might be a Decay spell which is easy to  resist for strong soldiers.
Title: Re: Mortars and custom psi
Post by: ohartenstein23 on May 16, 2019, 03:45:39 pm
Getting arcing trajectories to work properly has been a bit troublesome, so making this behavior more complex is not a very attractive proposal. However, all of what you suggest is either possible or already implemented in some form:
Title: Re: Mortars and custom psi
Post by: Bobit on May 16, 2019, 11:02:11 pm
Thx for the info, maybe I'll use it someday.
Title: Re: Mortars and custom psi
Post by: The_Funktasm on May 21, 2019, 11:28:29 am
Getting arcing trajectories to work properly has been a bit troublesome, so making this behavior more complex is not a very attractive proposal. However, all of what you suggest is either possible or already implemented in some form:
  • Arcing 2 is a feature that I've been working on in the form of "artillery strikes," where an attack will create a projectile that falls down from the top of the map. Whether or not it requires line of sight would be up to the modder. Not finished yet, but shouldn't take too long for me to pick up on again.
  • Arcing 3 is just a damaging psi attack right? That's already possible in OXCE and some mods use it like the Staff of Heart Grip in X-Com Files.

Ooh! Noted.
Title: Re: Mortars and custom psi
Post by: jtgibson on March 30, 2022, 10:15:48 pm
Arcing 2 is a feature that I've been working on in the form of "artillery strikes," where an attack will create a projectile that falls down from the top of the map. Whether or not it requires line of sight would be up to the modder. Not finished yet, but shouldn't take too long for me to pick up on again.

Deliberate bump, rather than starting a new OXCE suggestion thread.  Has there been any progress on this front?  I was rather disappointed with the "mortars are just bows with extra steps" from a certain mod and wound up blowing up my crew by thinking that the mortars would shoot at a 45-degree angle or better over my landing ship (needless to say I rolled back that mission).  While it's an imperfect solution to have straight-down shots, it's still a better solution for mortars than behaving like Javelins in front-attack mode. =)

I'd still love a proper 45+ degree mortar arc that increases the arc toward vertical the closer the target is from the maximum range.  Is the underlying mechanical issue based on a tile grid problem or a projectile physic problem?  Not knowing the guts of the physics engine, I figure the low arc was a harder problem to solve than the high arc would be, since the low arc has to try to hit the collision box in the middle of the target tile, but the high arc only concerns itself with landing on the target tile at all.  (I guess the raytraced "No Line of Fire" was probably the hard part, thinking on it at bit.  That could probably be ignored entirely for the player, but the AI units might self-destruct if they didn't have that system implemented.)