Open source remastering of the Freespace 2 engine
scoring.cpp File Reference
#include "ai/ai_profiles.h"
#include "debugconsole/console.h"
#include "freespace2/freespace.h"
#include "hud/hud.h"
#include "hud/hudmessage.h"
#include "iff_defs/iff_defs.h"
#include "localization/localize.h"
#include "mission/missionparse.h"
#include "network/multi.h"
#include "network/multi_dogfight.h"
#include "network/multi_pmsg.h"
#include "network/multi_team.h"
#include "network/multimsgs.h"
#include "network/multiutil.h"
#include "object/object.h"
#include "parse/parselo.h"
#include "pilotfile/pilotfile.h"
#include "playerman/player.h"
#include "ship/ship.h"
#include "stats/medals.h"
#include "stats/scoring.h"
#include "weapon/weapon.h"

Go to the source code of this file.


void scoreing_close ()
void parse_rank_tbl ()
void scoring_level_init (scoring_struct *scp)
void scoring_eval_rank (scoring_struct *sc)
void scoring_eval_badges (scoring_struct *sc)
void scoring_do_accept (scoring_struct *score)
void scoring_backout_accept (scoring_struct *score)
void scoring_level_close (int accepted)
void scoring_add_damage (object *ship_objp, object *other_obj, float damage)
int scoring_eval_kill (object *ship_objp)
int scoring_eval_kill_on_weapon (object *weapon_obj, object *other_obj)
void scoring_eval_assists (ship *sp, int killer_sig, bool is_enemy_player)
void scoring_eval_hit (object *hit_obj, object *other_obj, int from_blast)
void scoring_add_damage_to_weapon (object *weapon_obj, object *other_obj, float damage)
float scoring_get_scale_factor ()
void scoring_bash_rank (player *pl, int rank)
 DCF (rank,"changes player rank")


float Kill_percentage = 0.30f
float Assist_percentage = 0.15f
rank_stuff Ranks [NUM_RANKS]
float Scoring_scale_factors [NUM_SKILL_LEVELS]
char Scoring_debug_text [4096]

Function Documentation

DCF ( rank  ,
"changes player rank"   

Definition at line 1483 of file scoring.cpp.

void parse_rank_tbl ( )

Definition at line 58 of file scoring.cpp.

void scoreing_close ( )

Definition at line 1521 of file scoring.cpp.

void scoring_add_damage ( object ship_objp,
object other_obj,
float  damage 

Definition at line 492 of file scoring.cpp.

void scoring_add_damage_to_weapon ( object weapon_obj,
object other_obj,
float  damage 

Definition at line 1351 of file scoring.cpp.

void scoring_backout_accept ( scoring_struct score)

Definition at line 378 of file scoring.cpp.

void scoring_bash_rank ( player pl,
int  rank 

Definition at line 1470 of file scoring.cpp.

void scoring_do_accept ( scoring_struct score)

Definition at line 329 of file scoring.cpp.

void scoring_eval_assists ( ship sp,
int  killer_sig,
bool  is_enemy_player 

Definition at line 1104 of file scoring.cpp.

void scoring_eval_badges ( scoring_struct sc)

Definition at line 296 of file scoring.cpp.

void scoring_eval_hit ( object hit_obj,
object other_obj,
int  from_blast 

Definition at line 1188 of file scoring.cpp.

int scoring_eval_kill ( object ship_objp)

Definition at line 590 of file scoring.cpp.

int scoring_eval_kill_on_weapon ( object weapon_obj,
object other_obj 

Definition at line 858 of file scoring.cpp.

void scoring_eval_rank ( scoring_struct sc)

Definition at line 258 of file scoring.cpp.

float scoring_get_scale_factor ( )

Definition at line 1447 of file scoring.cpp.

void scoring_level_close ( int  accepted)

Definition at line 432 of file scoring.cpp.

void scoring_level_init ( scoring_struct scp)

Definition at line 223 of file scoring.cpp.

Variable Documentation

float Assist_percentage = 0.15f

Definition at line 42 of file scoring.cpp.

float Kill_percentage = 0.30f

Definition at line 41 of file scoring.cpp.

Definition at line 45 of file scoring.cpp.

char Scoring_debug_text[4096]

Definition at line 587 of file scoring.cpp.

float Scoring_scale_factors[NUM_SKILL_LEVELS]
Initial value:
= {

Definition at line 48 of file scoring.cpp.