Page 1 of 1

Disable camera centering on group selection

Posted: 07 Jan 2013, 12:52
by very_bad_soldier
Currently when you have selected a group of units using a group button (for example '1') and you press it again then the camera is automatically centered to the location of the units.
Is there a way to disable this automatic centering of the camera entirely? Maybe with Lua?

Re: Disable camera centering on group selection

Posted: 07 Jan 2013, 13:02
by Beherith
Well, you could intercept the keypresses while checking what is selected?

Re: Disable camera centering on group selection

Posted: 07 Jan 2013, 14:48
by Silentwings
What's the cause for wanting too? I find the centering really useful, no idea about others.

Re: Disable camera centering on group selection

Posted: 07 Jan 2013, 15:01
by very_bad_soldier
@Behe:
Hm not sure what you mean. Intercepting the keypress so the engine does not know about the selection of the unit group and then selecting the group "manually" in Lua?

@Bluestone:
Because it is extremely annoying for me when I am microing at the front having a couple of units already selected and when I then select a group (which also includes some of the already selected units) the camera decides to just jump away.
That also is a behavior that maybe better would not be hardcoded into the engine?

Re: Disable camera centering on group selection

Posted: 07 Jan 2013, 15:48
by Silentwings
Oh I see, that does sound pretty annoying and woudl be nice to customize (I only use it to flick between front and base at high speed, not for moving units).

Re: Disable camera centering on group selection

Posted: 07 Jan 2013, 16:54
by Jools
Yes, well you can customisee it. As Mr Batman said, if you add a Keypress event and check for what units are selected, you can do whatever you want in that keypress. Return true and spring wont process the event any further.

You can also change the speed of the camera zoom, the default altitude etc. Impossible is nothing.

Re: Disable camera centering on group selection

Posted: 07 Jan 2013, 17:06
by Silentwings
Impossible is nothing
Image