Death (Kill) Message GUI fix
twiliteblue
bug stalker Join Date: 2003-02-04 Member: 13116Members, NS2 Playtester, Squad Five Blue
<div class="IPBDescription">A quick fix for the Commander (& NS2HD)</div>If anyone has been playing or watching NS2 from the commander perspective, you would have noticed that the "Log out" button covers top part of the Death Message GUi, sometimes obscuring the victims of the kill.
Here is a quick fix that shifts the kill message log downward.
In GUIDeathMessages.lua, after line 16:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GUIDeathMessages.kScreenOffset = 16<!--c2--></div><!--ec2-->
Insert a new line:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GUIDeathMessages.kScreenOffsetY = 64 //new code; you may increase this number if the kill message location is still too high up<!--c2--></div><!--ec2-->
and at line 64 (after the above change), change this line:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->currentPosition.y = GUIDeathMessages.kScreenOffset + (GUIDeathMessages.kBackgroundHeight * (i - 1))<!--c2--></div><!--ec2-->
into:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->currentPosition.y = GUIDeathMessages.kScreenOffset + (GUIDeathMessages.kBackgroundHeight * (i - 1)) + GUIDeathMessages.kScreenOffsetY<!--c2--></div><!--ec2-->
There you go! Here is the replacement lua file you can put into your "Steam\steamapps\common\natural selection 2\ns2\lua" folder: <a href="http://www.mediafire.com/?lmxsqyxj0d9esi5" target="_blank">GUIDeathMessages.lua</a>
Here is a quick fix that shifts the kill message log downward.
In GUIDeathMessages.lua, after line 16:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GUIDeathMessages.kScreenOffset = 16<!--c2--></div><!--ec2-->
Insert a new line:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->GUIDeathMessages.kScreenOffsetY = 64 //new code; you may increase this number if the kill message location is still too high up<!--c2--></div><!--ec2-->
and at line 64 (after the above change), change this line:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->currentPosition.y = GUIDeathMessages.kScreenOffset + (GUIDeathMessages.kBackgroundHeight * (i - 1))<!--c2--></div><!--ec2-->
into:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->currentPosition.y = GUIDeathMessages.kScreenOffset + (GUIDeathMessages.kBackgroundHeight * (i - 1)) + GUIDeathMessages.kScreenOffsetY<!--c2--></div><!--ec2-->
There you go! Here is the replacement lua file you can put into your "Steam\steamapps\common\natural selection 2\ns2\lua" folder: <a href="http://www.mediafire.com/?lmxsqyxj0d9esi5" target="_blank">GUIDeathMessages.lua</a>
Comments
Marine: We need medkits!
Commander: SAY WHAT SONNY, SPEAK UP WILL YA!!!
Better yet, a way to disable tooltips.