Where To Remove Recticle For Transport Heli.
by J L · in Combat Starter Kit · 04/03/2009 (1:31 pm) · 3 replies
I did a grep search and this is all that came up
There is only one instance of the recticle being called. Could it be that there is a referance to the transport heli named something else ?
00162: new GuiBitmapCtrl(GunshipCrosshair) {
00189: PlayGui.add(GunshipCrosshair);
00197: GunshipCrosshair.SetExtent(getWord(PlayGui.extent, 0) , getWord(PlayGui.Extent, 1) );
00240: PlayGui.remove(GunshipCrosshair);There is only one instance of the recticle being called. Could it be that there is a referance to the transport heli named something else ?
About the author
#2
04/04/2009 (10:47 am)
Okay, so, what I did was remove that line, of course it don't show period now. This means that I have to go through pretty much all the scripts and anything that referances a helicopter, I have to copy and paste then add in the linePlayGui.add(GunshipCrosshair);
#3
04/06/2009 (10:13 am)
I hate the way that was written. It took me a few hours to figure out how to rip it out myself. Glad you guys found an answer.
Associate Michael Hall
Distracted...
First I looked in transport.cs. In function TransHeli::onEnterVehicle() I noticed it was calling a commandToClient for "CreateHeliVehicleGui, which is a Client Command found in HeliVehicleGui.cs, so find clientCmdCreateHeliVehicleGui() look for a line that says and remove it. That will take care of the reticle being added to the vehicle GUI for you.
Apparently both heli's use the same GUI scheme (tsk, tsk) but it should be easy enough to emulate the one in order to derive another in order to have a unique GUI for both. If you don't want it for either of them then it's safe to remove any further references to "GunshipCrosshair", especially if you want to avoid any error messages that will arise from disabling the "GunshipCrosshair". To "correct" those error messages you'll need to remove the following references in the same file:And then there is the reticle GUI element that will need to be removed
// line# 162-175 new GuiBitmapCtrl(GunshipCrosshair) { canSaveDynamicFields = "0"; Profile = "GuiDefaultProfile"; HorizSizing = "center"; VertSizing = "center"; position = "0,0"; Extent = getWord(PlayGui.extent, 0) SPC getWord(PlayGui.extent, 1); MinExtent = "8 2"; canSave = "1"; Visible = "1"; hovertime = "1000"; bitmap = "~/client/ui/GunshipTurretScope.png"; wrap = "0"; };