OpenXcom Forum

OpenXcom => Suggestions => Topic started by: moriarty on February 28, 2013, 10:49:58 pm

Title: "force fire" when no line of fire - hotkey?
Post by: moriarty on February 28, 2013, 10:49:58 pm
do we have a hotkey to force firing even though the LOF is blocked? this might be nice. especially for breaking down (multiple) walls when trying to fire at an alien...
Title: Re: "force fire" when no line of fire - hotkey?
Post by: Arpia on March 01, 2013, 06:32:25 am
hmm... clicking the same tile after the LoF message could override no LoF and fire anyway, toggle able feature in options maybe?
Title: Re: "force fire" when no line of fire - hotkey?
Post by: Volutar on March 01, 2013, 07:10:31 am
I have suggested this idea about month agom in IRC.
Just second click to override no LoF? how much time should came from last click to still no LoF message? This is bad option.
I was thinking about ctrl+click as no LoF override. Like in other games. I don't think it would be a problem. just firing wherever you want.
It's literally 2 lines of changed code.
Title: Re: "force fire" when no line of fire - hotkey?
Post by: Sharp on March 01, 2013, 08:47:14 am
maybe 4 lines (or some really long lines) to set it as an option like strafe?
Title: Re: "force fire" when no line of fire - hotkey?
Post by: Volutar on March 01, 2013, 09:36:43 am
If that be used by aliens it would be much better. Destroying walls used as cover. I'd like that.
Title: Re: "force fire" when no line of fire - hotkey?
Post by: AMX on March 01, 2013, 01:13:44 pm
How about turning the "No LoF" message into a "No LoF - Fire anyway?" button?
I would prefer to keep "Ctrl-Fire" free for another use, and "klick again to override" has a problem with accidental double-klicks.
Title: Re: "force fire" when no line of fire - hotkey?
Post by: Volutar on March 01, 2013, 01:15:41 pm
UI button for "fire anyway" seems to me as too complicated..
Title: Re: "force fire" when no line of fire - hotkey?
Post by: moriarty on March 01, 2013, 01:22:08 pm
no UI button, please. I would like to avoid unneccessary mouse movement - that's what hotkeys are for.

what do you want to use "ctrl" + "left click" for, then? to me that sounds like a reasonable combination.

Aliens shooting down walls: yes, please! this would give even more importance to using spotters and indirect tactics.
although that would be even better with a full environment damage model: heavy-plasma-bolt-punching-through-a-house-to-hit-a-soldier-on-the-other-side, anybody? :)
Title: Re: "force fire" when no line of fire - hotkey?
Post by: AMX on March 01, 2013, 01:56:44 pm
no UI button, please. I would like to avoid unneccessary mouse movement - that's what hotkeys are for.

Quite the opposite of me, then - I prefer to avoid unnecessary use of my off-hand.
Of course, we could compromise and make the button accept "Enter"  ;D
Quote
what do you want to use "ctrl" + "left click" for, then? to me that sounds like a reasonable combination.

Aiming at a specific object inside a tile. Still trying to formulate a reasonable-sounding suggestion for that...
Title: Re: "force fire" when no line of fire - hotkey?
Post by: moriarty on March 01, 2013, 04:29:31 pm
targeting a specific object? like wall/floor/object? you'd either need more than one hotkey for that, or something to toggle through the options... maybe a hotkey and then mousewheel to select the actual object? this might become complicated easily.

I have just come up with another idea here: https://openxcom.org/forum/index.php/topic,1012.0.html (https://openxcom.org/forum/index.php/topic,1012.0.html)

maybe we can even come up with a kind of advanced sniper mode, where you can target specific voxels? first select a tile, then select the exact voxel with mouse (x/y axis) and mousewheel (z axis)?
Title: Re: "force fire" when no line of fire - hotkey?
Post by: AMX on March 01, 2013, 05:34:01 pm
targeting a specific object? like wall/floor/object?

Exactly - like "shoot the floor, even if there's a wall" or "shoot that wall, not the other wall"
Quote
you'd either need more than one hotkey for that, or something to toggle through the options... maybe a hotkey and then mousewheel to select the actual object? this might become complicated easily.

I have just come up with another idea here: https://openxcom.org/forum/index.php/topic,1012.0.html (https://openxcom.org/forum/index.php/topic,1012.0.html)

maybe we can even come up with a kind of advanced sniper mode, where you can target specific voxels? first select a tile, then select the exact voxel with mouse (x/y axis) and mousewheel (z axis)?

I was thinking:
Point at tile
Press and hold CTRL
Move mouse to a neighboring tile

That's  good enough if we only aim at objects, since a tile can't have more than 5 that are valid targets (wall, other wall, floor, content, unit; items lying in the tile are not valid targets) and one of them can be ignored (unit is the preferred target when shooting normally, no need to aim specifically for it)
Title: Re: "force fire" when no line of fire - hotkey?
Post by: xracer on March 01, 2013, 06:52:27 pm
targeting a specific object? like wall/floor/object? you'd either need more than one hotkey for that, or something to toggle through the options... maybe a hotkey and then mousewheel to select the actual object? this might become complicated easily.

I have just come up with another idea here: https://openxcom.org/forum/index.php/topic,1012.0.html (https://openxcom.org/forum/index.php/topic,1012.0.html)

maybe we can even come up with a kind of advanced sniper mode, where you can target specific voxels? first select a tile, then select the exact voxel with mouse (x/y axis) and mousewheel (z axis)?

I think the two thread are becoming redundant.

in any case the force fire should be a simple implementation no need to create a new button or a combination of keys, as i posted in the other thread.
 

I think a simple notification should be displayed
"no LoF, double-click to force fire"
Also this could be in the in the option menu to show or not show the notification.

This simply says are you sure you want to attempt to fire even if you probably won't hit there target since there are obstacles

This way experienced user can simply use the feature and do not have to be bugged about it.

or in the first instance of the notification have a little tick mark.
"[ ] Show only on first time"
or
"[ ] Always show notification"
Title: Re: "force fire" when no line of fire - hotkey?
Post by: Yankes on March 01, 2013, 07:14:17 pm
or simply add new option that will change color of cursor if you dont have LoF and you will always shooting even without LoS.
Title: Re: "force fire" when no line of fire - hotkey?
Post by: moriarty on March 01, 2013, 09:21:29 pm
we have two issues here. one is an extension of free-aim, the other is a limitation, but I think both could be solved by one change, as explained above.

1) I am trying to allow shooting even when terrain or objects are blocking the path via a hotkey.

2)as TopCat wrote:
Quote
Please allow shooting to terrain only with some key pressed (Shift, ctrl, etc).

this is asking for a limitation of free-aim: only allow firing at terrain ( = free-aim) with a hotkey. probably to avoid accidentally firing at a tile adjacent to an alien by mis-clicking.



both could be resolved by the need for a hotkey for either, along with a correct warning message when not using the hotkey.

either case should be configurable:

Code: [Select]
FreeAimRequiresHotkey : boolean, defaults to 0 (like in original)
FreeAimHotkey : default "Ctrl"
ForcedFiringWithoutLoF : boolean, defaults to 0 (like in original)
ForcedFiringWithoutLoFHotkey : default "Ctrl"
Title: Re: "force fire" when no line of fire - hotkey?
Post by: xracer on March 01, 2013, 09:39:15 pm
I know i am no programmer and i am out of place here.

But why add 2 variables with the same value, i think that simply complicates the code.

add a single variable that will allow to shoot no matter what.

a notification could be displayed to the user,
"Invalid target or no LOF, double click to force fire"

I think this will simplify code and it will be easy for the user to remember adding more hotkeys can become overwhelming. Also double click implementation should be easy enough just make they system listen for the mouse event within a time threshold.

Again this is just my $0.02
Title: Re: "force fire" when no line of fire - hotkey?
Post by: moriarty on March 01, 2013, 09:50:25 pm
I know i am no programmer and i am out of place here.

But why add 2 variables with the same value, i think that simply complicates the code.

I am not a programmer either :)

all for configurability. I don't want to impose using the same hotkey for both instances on the user. I can easily imagine that some people might want one, but not the other... or different hotkeys... this way, you can use the same hotkey, but don't have to :)
Title: Re: "force fire" when no line of fire - hotkey?
Post by: Warboy1982 on March 13, 2013, 07:41:03 am
there IS now a force-fire mode, simply hold control when selecting a target to ignore LOF.
Title: Re: "force fire" when no line of fire - hotkey?
Post by: moriarty on March 13, 2013, 08:06:12 am
nice!  ;D
Title: Re: "force fire" when no line of fire - hotkey?
Post by: pmprog on March 13, 2013, 10:04:08 am
I'm tempted to ask if we could look at modifying the battlescape UI to make some of these options more visible to the player (strafing, force fire etc.)?