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?
Disable camera centering on group selection
Moderator: Moderators
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: Disable camera centering on group selection
Well, you could intercept the keypresses while checking what is selected?
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Disable camera centering on group selection
What's the cause for wanting too? I find the centering really useful, no idea about others.
- very_bad_soldier
- Posts: 1397
- Joined: 20 Feb 2007, 01:10
Re: Disable camera centering on group selection
@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?
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?
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Disable camera centering on group selection
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
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.
You can also change the speed of the camera zoom, the default altitude etc. Impossible is nothing.
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Disable camera centering on group selection
Impossible is nothing
