Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Get client num(id)

  1. #11

    Default

    Oh, sorry, I should have clarified - I understand what entnum is, and I understand that the first numbers are reserved for players, what I mean is what are the benefits in spite of this, as it appears to me to give the same result?

    And yes, I always found it annoying that getentitybyentnum was only in BT.

  2. #12
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    I just said the benefits of every method.
    getclientnum bcuz clientnum exists for a reason.
    getent/getentbyentnum best performance (fastest)
    entnum is the classical method.
    That's all.

  3. #13

    Default

    I never mentioned getent, you brought that up . entnum is the classic method yes, and "clientnum exists for a reason" isn't a benefit, it boils down to preference if it provides the same result. I just wondered if there was a hidden benefit to getclientnum over entnum I wasn't aware of. If it's merely preference then cool, otherwise I'm just interested in the difference whether it is performance, results or whatever. The only thing I could think of is perhaps it's more intuitive when looking at a script for those unaware of how the ent array works.
    Last edited by 1337Smithy; October 11th, 2018 at 06:05 AM.

  4. #14
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    The only thing I could think of is perhaps it's more intuitive when looking at a script for those unaware of how the ent array works.
    That's literally why "clientnum exists for a reason"

  5. #15

    Default

    So, essentially it's preference? Sweet...

  6. #16
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Yes, also because clients are very special entities so they get their own identifiers.
    Which makes sense for the end user.
    Also maybe entnum sorting might be changed in future versions of openmohaa. then only clientnum will be the right way.

  7. #17

    Default

    Yeah I don't deny it's much more intuitive if you can use it, for sure. I suppose the entnum sorting could change too that's true. I'm so used to the current way just being the case since Quake days lol. Cheers, Ry.

  8. #18
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,603

    Default

    Cheers fam.

Tags for this Thread

Posting Permissions

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