Home   Help Search Login Register  

Author Topic: unit rating  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
unit rating
« on: 15 Aug 2004, 16:10:29 »
here is something I discovered recently debugging a mission:

at the start, my player rating was 7500,  it went down when I, as group leader, lost a group member.  It went up when I killed an enemy.
  Hope this is useful to someone, it help me debug my mission...I duscovered this by calling this script:
#start
player sidechat format ["my rating is %1",rating player]
~2
goto "start"

great for debugging!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:unit rating
« Reply #1 on: 15 Aug 2004, 18:25:23 »
Yes, this is well known and can be useful for all kinds of things.   I have a feeling the starting level depends on your rank.
Plenty of reviewed ArmA missions for you to play

DBR_ONIX

  • Guest
Re:unit rating
« Reply #2 on: 15 Aug 2004, 21:55:15 »
Yeah, because if your certain ranks etc, you can shoot a single teammate, and your squad turns against you.. And sometimes it's a bunch of people you have to shoot

Anyway, you could also use the code in a radio trigger, might be a bit less in the way..
- Ben

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:unit rating
« Reply #3 on: 15 Aug 2004, 22:29:58 »
I have a feeling the starting level depends on your rank.

You're correct. Here are the ratings each rank starts with, taken from the game's config.cpp:
      0, //Private
      500, //Corporal
      1500, //Sergeant
      2500, //Lieutenant
      3500, //Captain
      5000, //Major
      7500  //Colonel
An important note, though, is that after the mission ends, the above numbers are subtracted from the player's rating, for score purposes (the score shown at the end of the mission). I didn't know that your rating went down when you lost members of your squad though.

The unit's courage also depends on its rank, unless it is set with the "allowfleeing" command:
      0.20, //Private
      0.35, //Corporal
      0.55, //Sergeant
      0.65, //Lieutenant
      0.70, //Captain
      0.80, //Major
      0.90  //Colonel
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!