FS2_Open
Open source remastering of the Freespace 2 engine
cmeasure.cpp File Reference
#include "cmeasure/cmeasure.h"
#include "gamesnd/gamesnd.h"
#include "hud/hud.h"
#include "math/staticrand.h"
#include "mission/missionparse.h"
#include "network/multimsgs.h"
#include "object/object.h"
#include "ship/ship.h"
#include "weapon/weapon.h"

Go to the source code of this file.

Functions

void cmeasure_set_ship_launch_vel (object *objp, object *parent_objp, int arand)
 
void cmeasure_select_next (ship *shipp)
 
void cmeasure_maybe_alert_success (object *objp)
 If this is a player countermeasure, let the player know they evaded a missile. More...
 

Variables

int Cmeasures_homing_check = 0
 
int Countermeasures_enabled = 1
 
const float CMEASURE_DETONATE_DISTANCE = 40.0f
 

Function Documentation

void cmeasure_maybe_alert_success ( object objp)

If this is a player countermeasure, let the player know they evaded a missile.

Parameters
objp[description]

During single player games, this function notifies the player that evasion has occurred. Multiplayer games ensure that send_countermeasure_success_packet() is called to notify the other player.

Definition at line 84 of file cmeasure.cpp.

void cmeasure_select_next ( ship shipp)

Definition at line 56 of file cmeasure.cpp.

void cmeasure_set_ship_launch_vel ( object objp,
object parent_objp,
int  arand 
)

Definition at line 28 of file cmeasure.cpp.

Variable Documentation

const float CMEASURE_DETONATE_DISTANCE = 40.0f

Definition at line 24 of file cmeasure.cpp.

int Cmeasures_homing_check = 0

Definition at line 22 of file cmeasure.cpp.

int Countermeasures_enabled = 1

Definition at line 23 of file cmeasure.cpp.