Results 1 to 4 of 4

Thread: Mode Override : what is the mode switch decision rule?

  1. #1
    Basic Member
    Join Date
    Dec 2016
    Posts
    2

    Question Mode Override : what is the mode switch decision rule?

    the wiki says:

    GetDesire() - Called every frame, and needs to return a floating-point value between 0 and 1 that indicates how much this mode wants to be the active mode

    So does the engine just pick whichever "Desire" returns the highest value?

  2. #2
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704
    Correct.

  3. #3
    What happens when two desires are the same? It just picks one randomly?

  4. #4
    Valve Developer
    Join Date
    Sep 2011
    Posts
    1,704
    Whichever is first in the list of modes wins ties.

Posting Permissions

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