Page 2 of 2

Re: Fixed camera position

Posted: 02 Nov 2013, 13:14
by knorke
you mean HAL_camlock.lua by KDR_11k?
Of course there are several wupget that move the camera around (specrun, actionfinder, "hero-mode" thing in KP etc) but imo only mildly related to this.

Thought as widget it would be easier to try out, can test it without editing the game.
It is fun to try though:
I spectated a game with it and used it a bit for playing in another match (when it was almost over anyway)
It kind of changes the way the game feels...
Maybe as modoption it might be fun.
Some notes:
-pressing TAB (full map view) breaks it and minimap minimizes.
To fix press TAB again and click the red minimap button to restore it.
-The camera goes up & down with the terrain: That is good because otherwise one would not see very much on high mountains. I think it is not really true OTA style, though.

Re: Fixed camera position

Posted: 02 Nov 2013, 17:51
by smoth
knorke wrote:you mean HAL_camlock.lua by KDR_11k?
This is the one. It has been in there for some time. Sad I didn't update it though, the thing had many issues initially with the camera being jerky etc so I had to bug jk about it, so his name should be on there as well.

knorke wrote:-pressing TAB (full map view) breaks it and minimap minimizes.
To fix press TAB again and click the red minimap button to restore it.
Yeah, it is a known thing.
knorke wrote:-The camera goes up & down with the terrain: That is good because otherwise one would not see very much on high mountains. I think it is not really true OTA style, though.
OTA had a 2d image of terrain, the heightfield didn't really bring the units closer to the camera.

Re: Fixed camera position

Posted: 02 Nov 2013, 21:37
by CarRepairer
You can now use the trick I use in COFC, which is to follow the smoothmesh instead of the real terrain. Would need a rewrite though.

Re: Fixed camera position

Posted: 03 Nov 2013, 04:15
by smoth
WOOT

Re: Fixed camera position

Posted: 03 Nov 2013, 12:44
by Forboding Angel
Just unbind tab?

Re: Fixed camera position

Posted: 03 Nov 2013, 19:19
by Google_Frog
You also have to detect when tab is used and counter it. There is probably some console command for the tab command which users could input manually. If they try to get around it this way the gadget would be able to toggle it back and take them to the ground.

If you are rewriting the camera this is probably not a problem at all.

Re: Fixed camera position

Posted: 04 Nov 2013, 03:13
by CarRepairer
Google_Frog wrote:You also have to detect when tab is used and counter it. There is probably some console command for the tab command which users could input manually. If they try to get around it this way the gadget would be able to toggle it back and take them to the ground.

If you are rewriting the camera this is probably not a problem at all.
This is entering the realm of absurdity. If a user is so adamant on circumventing your intentions that he enters the console command for taboverview, you can write that person off. You can't control everything about a player.

Re: Fixed camera position

Posted: 04 Nov 2013, 07:03
by Google_Frog
You have to be able to. Without such control there is a clear exploit in your game.

Re: Fixed camera position

Posted: 04 Nov 2013, 07:13
by smoth
Google_Frog wrote:You have to be able to. Without such control there is a clear exploit in your game.
maybe this should not be part of the engine hard coded and moved to lua?