Death (Kill) Message GUI fix

twilitebluetwiliteblue bug stalker Join Date: 2003-02-04 Member: 13116Members, NS2 Playtester, Squad Five Blue
edited July 2011 in Modding
<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>

Comments

  • FlayraFlayra Game Director, Unknown Worlds Entertainment San Francisco Join Date: 2002-01-22 Member: 3Super Administrators, NS2 Developer, Subnautica Developer
    Thanks. I'll test this a bit and add it to the build if it works well.
  • QuovatisQuovatis Team Inversion Join Date: 2010-01-26 Member: 70321Members, NS2 Playtester, Squad Five Blue
    Nice. Always annoying to not see what happened as commander.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    I just got a image in mah head of a deaf and old commander :P


    Marine: We need medkits!

    Commander: SAY WHAT SONNY, SPEAK UP WILL YA!!!
  • AsranielAsraniel Join Date: 2002-06-03 Member: 724Members, Playtest Lead, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow, Subnautica Playtester, Retired Community Developer
    is this shifting only active when in commander mode? otherwise it would look wierd
  • BJHBnade_spammerBJHBnade_spammer Join Date: 2005-02-25 Member: 42431Members
    now we need a fix for the chat and help/tooltips overlaping
  • QuovatisQuovatis Team Inversion Join Date: 2010-01-26 Member: 70321Members, NS2 Playtester, Squad Five Blue
    <!--quoteo(post=1869605:date=Aug 17 2011, 06:16 AM:name=BJHBnade_spammer)--><div class='quotetop'>QUOTE (BJHBnade_spammer @ Aug 17 2011, 06:16 AM) <a href="index.php?act=findpost&pid=1869605"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->now we need a fix for the chat and help/tooltips overlaping<!--QuoteEnd--></div><!--QuoteEEnd-->

    Better yet, a way to disable tooltips.
  • MurphyIdiotMurphyIdiot NS2 programmer Join Date: 2008-04-17 Member: 64095Members, Super Administrators, NS2 Developer, Subnautica Developer, Pistachionauts, Future Perfect Developer
    Thanks twiliteblue. I moved them a bit to the left when the player is a commander instead of down and made it so it switches depending on if the player is a commander or normal player.
  • twilitebluetwiliteblue bug stalker Join Date: 2003-02-04 Member: 13116Members, NS2 Playtester, Squad Five Blue
    edited August 2011
    Thanks for the quick responses! That's why I love you guys at UWE. :)
Sign In or Register to comment.