KillAura Detect / Crosshair

Discussion in 'Spigot Plugin Development' started by Frealy1995, May 24, 2016.

  1. Example : Kill Aura / Force Field detect logic.

    Player damage to get crosshair coordinate if != damager player coordinate hack detect?

    Code or document please. Thanks
     
  2. 4chan

    Supporter

    here is some shitcode

    Code (Text):
    player = getplayer();

    if !player.isfacingplayer(getdeadguy())
        lolban.gif
    endif
     
    • Funny Funny x 2
    • Winner Winner x 1
    • Optimistic Optimistic x 1
  3. No need to show ;) I want help
     
  4.  
  5. 4chan

    Supporter

    • Agree Agree x 1
  6. Hello, you know me? I want help " Code or document page "

    Please Not need to show.. Only 1-2 like rating.
     
  7. What are you asking for? How do find out whether or not somebody is looking at the entity they damaged?

    If so you could probably do that like this:
    (Pseudocode)
    Code (Text):
    vectorDamagerToPlayer = playerEyeLocation(as Vector)#subtract( damagerEyeLocation(as Vector))

    //If dot product between the damage look direction and the calculated vector is below, say ... 0.5 things may not be legit