Results 1 to 9 of 9

Thread: [CoD 1.1] Can you get player's bearing ?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    use getplayerangles() from a script (gsc) file. player.angles is kinda bugged and only returns a nonzero value for the [1] index.

    Also, in cod2 /viewpos returns your left/right angle as the final number, not sure about cod1.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following User Says Thank You to IzNoGoD For This Useful Post:

    raphael (22nd March 2023)

  3. #2
    Deleter/Deleted
    Join Date
    Jan 2023
    Posts
    76
    Thanks
    40
    Thanked 9 Times in 9 Posts
    Quote Originally Posted by IzNoGoD View Post
    use getplayerangles() from a script (gsc) file. player.angles is kinda bugged and only returns a nonzero value for the [1] index.

    Also, in cod2 /viewpos returns your left/right angle as the final number, not sure about cod1.
    I didn't know about getplayerangles() vs player.angles, thank you

    I struggle to understand all these values, this is the first time I use angles/vectors, and I don't practice math.

    Attached is a screenshot showing a /viewpos output and the compass
    viewpos compass.png

    Do you know if there could be a formula to obtain the compass degree value, using player.origin / getplayerangles() ?
    Last edited by raphael; 1st March 2023 at 11:18.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •