Disable camera centering on group selection

Disable camera centering on group selection

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Disable camera centering on group selection

Post 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?
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Disable camera centering on group selection

Post by Beherith »

Well, you could intercept the keypresses while checking what is selected?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Disable camera centering on group selection

Post by Silentwings »

What's the cause for wanting too? I find the centering really useful, no idea about others.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Disable camera centering on group selection

Post 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?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Disable camera centering on group selection

Post 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).
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: Disable camera centering on group selection

Post 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.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: Disable camera centering on group selection

Post by Silentwings »

Impossible is nothing
Image
Post Reply

Return to “General Discussion”