OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Zombie 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!
-
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.
-
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
-
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