Skip to content

Commit

Permalink
Adding client eye methods to player.inc
Browse files Browse the repository at this point in the history
  • Loading branch information
safalin1 committed Dec 20, 2023
1 parent be9b193 commit b58d5dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/scripting/MethodMaps/Player.inc
Original file line number Diff line number Diff line change
Expand Up @@ -769,4 +769,14 @@ methodmap Player __nullable__
EmitSoundToClient(this.ClientId, path, SOUND_FROM_PLAYER, SNDCHAN_AUTO, SNDLEVEL_NORMAL, SND_NOFLAGS, SNDVOL_NORMAL, GetSoundMultiplier());
}
}

public void GetEyeViewAngles(float angles[3])
{
GetClientEyeAngles(this.ClientId, angles);
}

public void GetEyePosition(float position[3])
{
GetClientEyePosition(this.ClientId, position);
}
}

0 comments on commit b58d5dd

Please sign in to comment.