コード例 #1
0
        public void GetAimPosition(Character localCharacter, Character targetCharacter, ref Vector3 startPosition, ref Vector3 endPosition)
        {
            startPosition = localCharacter.transform.position;
            endPosition   = targetCharacter.transform.position;
            Transform eyeBone    = Local.GetEyeBone(localCharacter);
            Transform transform2 = CVars.Aimbot.AimAtHead ? Local.GetHeadBone(targetCharacter) : Local.GetBodyBone(targetCharacter);

            startPosition.y++;
            if (eyeBone != null)
            {
                startPosition = eyeBone.position;
            }
            endPosition.y++;
            if (transform2 != null)
            {
                endPosition = transform2.position;
            }
        }