Bug with Alien melee attacks?

TyphonTyphon Join Date: 2002-11-01 Member: 1899Members
edited August 2012 in NS2 General Discussion
<b><u>!FALSE ALARM! What I thought was a bug with alien melee attacks was actually due to friendly fire being handled differently from normal melee attacks.</u></b>

Messing around in a lan server today with 'trace all' to try to learn the intricacies of skulk bite. In doing so, I think I've stumbled onto a pretty big bug with alien melee attacks.

TLDR: Marine melee hits if any of 9 vectors connect with the target. Alien melee hits only if the center vector hits the target.

Melee attacks work by drawing 9 vectors out into the world, looking for intersections with valid targets. Here, the skulk and axe are shown:
<a href="http://imageshack.us/photo/my-images/829/marinefullmiss.jpg/" target="_blank"><img src="http://img829.imageshack.us/img829/1927/marinefullmiss.jpg" border="0" class="linked-image" /></a>
<a href="http://imageshack.us/photo/my-images/210/skulkbitevectors.jpg/" target="_blank"><img src="http://img210.imageshack.us/img210/4618/skulkbitevectors.jpg" border="0" class="linked-image" /></a>

With the marine axe, once one vector (center-right) connects you've got a hit (trace all seems to stop drawing additional vectors in this case, it already confirmed a hit).
<a href="http://imageshack.us/photo/my-images/59/marinefullhit.jpg/" target="_blank"><img src="http://img59.imageshack.us/img59/4116/marinefullhit.jpg" border="0" class="linked-image" /></a>

Over on the alien side though, even with 3 vectors connecting in the lower right (trace all doesn't render them, but you can see their absence and the red boxes indicating that this should be a hit), the server doesn't agree that this is a hit. <b>No damage is dealt with this attack.</b> Even though I'm pressed right up against the marine, and his foot is pretty much inside my mouth, this is <b>not a hit.</b>
<a href="http://imageshack.us/photo/my-images/443/skulkpartialhit2.jpg/" target="_blank"><img src="http://img443.imageshack.us/img443/5224/skulkpartialhit2.jpg" border="0" class="linked-image" /></a>

But if I move just a tiny bit to the right so that the center vector connects, I finally get a confirmed hit.
<a href="http://imageshack.us/photo/my-images/201/skulkfullhit.jpg/" target="_blank"><img src="http://img201.imageshack.us/img201/33/skulkfullhit.jpg" border="0" class="linked-image" /></a>

This can lead to some pretty unbelievable misses...I repeat, the following image is a <b>miss</b>!
<a href="http://imageshack.us/photo/my-images/15/skulkpartialhit3.jpg/" target="_blank"><img src="http://img15.imageshack.us/img15/3603/skulkpartialhit3.jpg" border="0" class="linked-image" /></a>

Meanwhile the marine's attack hits pretty much the whole screen. Again, this is a <b>hit</b> against the marine that's barely on the screen!
<a href="http://imageshack.us/photo/my-images/208/marinefullhit2.jpg/" target="_blank"><img src="http://img208.imageshack.us/img208/3047/marinefullhit2.jpg" border="0" class="linked-image" /></a>

This has got to be a bug, right?

I went through the other melee attacks on both teams, rifle butt and lerk/fade/onos. Its not specific to the weapon, its specific to the team. Aliens only hit with the center vector, marines hit with any vector.

Comments

  • GORGEousGORGEous Join Date: 2012-02-19 Member: 146762Members, NS2 Map Tester
    Those are some interesting pictures.
  • NordicNordic Long term camping in Kodiak Join Date: 2012-05-13 Member: 151995Members, NS2 Playtester, NS2 Map Tester, Reinforced - Supporter, Reinforced - Silver, Reinforced - Shadow
    Since it is by team, I would think it is done by design. We need a dev to confirm that though.
  • BillaxBillax Join Date: 2012-08-07 Member: 154886Members
    I'm assuming this is only the case in the newest patch, since alien melee seems much harder to hit with all of a sudden. No idea if it's a bug, or by design, but it is a bit frustrating at times.
  • matsomatso Master of Patches Join Date: 2002-11-05 Member: 7000Members, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Shadow, NS2 Community Developer
    Can't see it when I try - all the edge boxes registers as hits (red lines means the server thinks its a hit).

    It's hard to see from your perspective - try thirdperson to change viewpoint, and tracedur to change how long the boxes stays on screen.
  • _Necro__Necro_ Join Date: 2011-02-15 Member: 81895Members, Reinforced - Shadow
    Red boxes mean a hit, yes. But as he stated, even with the red boxes it doesn't count as hit when it isn't the center vector.
    Nice find Typhon. I'm very interested if this is to balance the aliens or if this is a bug.
  • matsomatso Master of Patches Join Date: 2002-11-05 Member: 7000Members, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Shadow, NS2 Community Developer
    edited August 2012
    And when I try it, if the server draws a red hit, the marine takes damage, no matter what part of the hitbox hits. So I can't replicate his find - which would be a bug, btw.

    It's a lot easier to see how things work if you look at things from a different angle and distance. The server draws the hitbox in green, red and blue lines depending on if nothing was hit, an object was hit or geometry was hit. It draws the boxes up until the hit, so yo can see how each box was drawn. That is really hard to see from the biting POV, much easier to see if you step back and look at it from the side.
  • YuukiYuuki Join Date: 2010-11-20 Member: 75079Members
    It seems the marine that get bitten (lunatic calm) is confirming the hit/misses instead of looking at the traces, isn't it?
  • AngeluszAngelusz Harmonic entropist Join Date: 2003-07-10 Member: 18072Members, Forum Moderators, Constellation, NS2 Playtester
    I haven't noticed anything along these lines either, like Matso posted.

    Typhon, if you need help reproducing this issue let me know, perhaps I and some other PT's can assist. We can get together on a server and voicechat to see if we can make it happen again and show it more clearly.
  • TyphonTyphon Join Date: 2002-11-01 Member: 1899Members
    edited August 2012
    I was not testing with another player. I went alien, cheats 1, trace all, give marine, and tested on that dummy. I marked the shots "partial hit" (I'm lunatic calm in game) when I saw red boxes but the marine played no flinch sound, not did I get the blood effect on my screen, and no damage was dealt.

    Which I now realize means that this may actually be an issue with <b>friendly fire</b>, not with alien vs marine, since when I as an alien do "give marine" I'm creating a marine on the alien team. Then I'd go marine, and go attack the alien marine player, which would no longer be friendly fire. I'll test that tonight if no one beats me to it.
  • AngeluszAngelusz Harmonic entropist Join Date: 2003-07-10 Member: 18072Members, Forum Moderators, Constellation, NS2 Playtester
    Now there's some important information. When we test for bugs, cheats are always disabled as they can sometimes make the game behave differently. This issue could well be caused by what you described above.
  • YuukiYuuki Join Date: 2010-11-20 Member: 75079Members
    I think there's a bug with friendly fire, like if you bite a skulk it will make a pain sound. It's a bit annoying because you think marines are around.
  • AngeluszAngelusz Harmonic entropist Join Date: 2003-07-10 Member: 18072Members, Forum Moderators, Constellation, NS2 Playtester
    <!--quoteo(post=1958552:date=Aug 7 2012, 03:20 PM:name=Yuuki)--><div class='quotetop'>QUOTE (Yuuki @ Aug 7 2012, 03:20 PM) <a href="index.php?act=findpost&pid=1958552"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I think there's a bug with friendly fire, like if you bite a skulk it will make a pain sound. It's a bit annoying because you think marines are around.<!--QuoteEnd--></div><!--QuoteEEnd-->

    If you can reproduce this, please make a new thread about it and add a (youtube) video example. I've scanned through the bugtracker and nothing of the sorts is known.
  • weezlweezl Join Date: 2008-07-04 Member: 64557Members, Reinforced - Shadow
    <!--quoteo(post=1958553:date=Aug 7 2012, 03:24 PM:name=Angelusz)--><div class='quotetop'>QUOTE (Angelusz @ Aug 7 2012, 03:24 PM) <a href="index.php?act=findpost&pid=1958553"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->If you can reproduce this, please make a new thread about it and add a (youtube) video example. I've scanned through the bugtracker and nothing of the sorts is known.<!--QuoteEnd--></div><!--QuoteEEnd-->
    I've bitten gorges for healing and they make a "took dmg flinch sound".
  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
    <!--quoteo(post=1958553:date=Aug 7 2012, 06:24 AM:name=Angelusz)--><div class='quotetop'>QUOTE (Angelusz @ Aug 7 2012, 06:24 AM) <a href="index.php?act=findpost&pid=1958553"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->If you can reproduce this, please make a new thread about it and add a (youtube) video example. I've scanned through the bugtracker and nothing of the sorts is known.<!--QuoteEnd--></div><!--QuoteEEnd-->
    It wont be reported because in order to have friendly fire, you need cheats on.

    Cheats just create random oddities and inconsistencies so we never use them to reproduce bugs.. you can end up chasing your own tail for hours this way :)
  • matsomatso Master of Patches Join Date: 2002-11-05 Member: 7000Members, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Shadow, NS2 Community Developer
    <!--quoteo(post=1958541:date=Aug 7 2012, 03:02 PM:name=Typhon)--><div class='quotetop'>QUOTE (Typhon @ Aug 7 2012, 03:02 PM) <a href="index.php?act=findpost&pid=1958541"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I was not testing with another player. I went alien, cheats 1, trace all, give marine, and tested on that dummy. I marked the shots "partial hit" (I'm lunatic calm in game) when I saw red boxes but the marine played no flinch sound, not did I get the blood effect on my screen, and no damage was dealt.

    Which I now realize means that this may actually be an issue with <b>friendly fire</b>, not with alien vs marine, since when I as an alien do "give marine" I'm creating a marine on the alien team. Then I'd go marine, and go attack the alien marine player, which would no longer be friendly fire. I'll test that tonight if no one beats me to it.<!--QuoteEnd--></div><!--QuoteEEnd-->

    You can use "addbot" to add bots that run around a bit. If you want them to stand still, use "addpassivebot". Does require cheats though.
  • YuukiYuuki Join Date: 2010-11-20 Member: 75079Members
    edited August 2012
    <!--quoteo(post=1958679:date=Aug 7 2012, 08:23 PM:name=ironhorse)--><div class='quotetop'>QUOTE (ironhorse @ Aug 7 2012, 08:23 PM) <a href="index.php?act=findpost&pid=1958679"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->It wont be reported because in order to have friendly fire, you need cheats on.

    Cheats just create random oddities and inconsistencies so we never use them to reproduce bugs.. you can end up chasing your own tail for hours this way :)<!--QuoteEnd--></div><!--QuoteEEnd-->

    You don't need cheat, just play 5 minutes, it's pretty obvious. Almost too obvious to be reported :)
  • TyphonTyphon Join Date: 2002-11-01 Member: 1899Members
    edited August 2012
    Just tested the friendly fire theory. It is a friendly fire thing, not an overall problem with alien melee. Marines attempting melee on fellow marines also only hit on the center vector, while aliens hit marines on any vector. Mea culpa.

    Feel free to close this thread, mods.
  • matsomatso Master of Patches Join Date: 2002-11-05 Member: 7000Members, Forum Moderators, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Reinforced - Shadow, NS2 Community Developer
    Ah, yea. I remember now, I actually added that on purpose to keep the behaviour the same as it was when only a single hitbox was used (the multiple hitboxes allows a bite to be useful close to walls/friends when attacking; the bite selects the best target found in all 9 alternatives, so if just one of them hits an enemy player, he will get hit) - when cheats are on, you want to be able to harm friendlies.
Sign In or Register to comment.