Page 2 of 2
Re: Zoom in tanks
Posted: 2014-05-13 13:54
by czesiek77
Does it work with SmokeLaunchers too?
Re: Zoom in tanks
Posted: 2014-05-13 14:22
by Mats391
czesiek77 wrote:Does it work with SmokeLaunchers too?
Hmmm? I dont understand what you mean.
You mean when you switch away from coax and to the smoke launcher? It would be the same principle then.
You could also try to make a third weapon that is on the PIFlareFire slot and is always active (using blank projectiles+infinite ammo). Then add the zoom comp to that as well as use guiIndex from it (not sure if this will work). This way you wouldnt lose the zoom level when switching away from the coax gun.
Re: Zoom in tanks
Posted: 2014-05-13 14:41
by czesiek77
It is working now, God bless you.
Re: Zoom in tanks
Posted: 2014-05-13 15:22
by Mats391
czesiek77 wrote:It is working now, God bless you.
Great

Which solution did you go with?
Re: Zoom in tanks
Posted: 2014-05-16 19:39
by czesiek77
I created "empty" coax guns and now I got what I wanted

Thanks.
Re: Zoom in tanks
Posted: 2014-05-25 13:51
by czesiek77
Is there any way to create in HUD a square border for horizon, that if a part of horizon pass it, that part dissapears? I mean something like compass but for horizon and including vehicle banking and normal moves of horizon. Like here :
http://1.bp.blogspot.com/-vSYJkBbEQC4/U ... nation.jpg
As you can see there is only part of horizon becouse that part is visible on that glass. I want to achieve something like that.
Re: Zoom in tanks
Posted: 2014-05-25 14:28
by Mats391
I dont know an direct answer to this only some things you could try.
1. Use "AngleOfAttack" variable in a CompassNode
2. Use a TransformNode and add the textures to that. Transform nodes are kinda like SplitNodes but do have a specific size, maybe it wont draw outside of the nodes size then.
Im not sure if either will work. Maybe someone has a better answer to this.
Re: Zoom in tanks
Posted: 2014-05-30 22:58
by czesiek77
How to use this TransformNode? And I was thinking about one more. What that extra numbers in compass means?
Code: Select all
hudBuilder.createCompassNode PilotHud JETCompass [b]3[/b] 130 50 533 43 [b]1[/b] [b]0[/b]
Re: Zoom in tanks
Posted: 2014-05-31 09:14
by Mats391
czesiek77 wrote:How to use this TransformNode?
TransformNode is similar to SplitNode. You can create other nodes in the TransformNode
Example:
Code: Select all
hudBuilder.createTransformNode CommanderTools Artillery 0 32 234 100
hudBuilder.createPictureNode Artillery CommanderArtilleryBackground 0 1 234 15
hudBuilder.setPictureNodeTexture Ingame/Commander/buttonBig_Up.tga
As you can see you do specify a position and size for the TransformNode. The position is set the same as for any other node, so on a 800x600 plane. Any subnode of the TransformNode do have their position specified relative to the position of the TransformNode. So in the example the PictureNode would have position [0, 33].
The size of a TranformNode is only used for TransformListNode i think. I am unsure if it draws subnodes outside of the initial size, my guess is that it will.
czesiek77 wrote:And I was thinking about one more. What that extra numbers in compass means?
Code: Select all
hudBuilder.createCompassNode PilotHud JETCompass [b]3[/b] 130 50 533 43 [b]1[/b] [b]0[/b]
The first digit is for the orientation of the compassnode, so whether it goes from left to right, right to left, bot to top or top to bot. Valid numbers are 0-3. I dont know which number is for what, so dont even ask

The last two i forgot
