FS2_Open
Open source remastering of the Freespace 2 engine
shiphit.h File Reference

Go to the source code of this file.

Macros

#define NO_SPARKS   0
 
#define CREATE_SPARKS   1
 
#define MISS_SHIELDS   -1
 

Functions

void do_subobj_destroyed_stuff (ship *ship_p, ship_subsys *subsys, vec3d *hitpos, bool no_explosion=false)
 
void ship_apply_tag (int ship_num, int tag_level, float tag_time, object *target, vec3d *start, int ssm_index, int ssm_team)
 
void ship_apply_local_damage (object *ship_obj, object *other_obj, vec3d *hitpos, float damage, int quadrant, bool create_spark=true, int submodel_num=-1, vec3d *hit_normal=0)
 
void ship_apply_global_damage (object *ship_obj, object *other_obj, vec3d *force_center, float damage)
 
void ship_apply_wash_damage (object *ship_obj, object *other_obj, float damage)
 
void ship_hit_kill (object *ship_obj, object *other_obj, float percent_killed, int self_destruct)
 
void ship_self_destruct (object *objp)
 
void ship_apply_whack (vec3d *force, vec3d *hit_pos, object *objp)
 
void ship_hit_sparks_no_rotate (object *ship_obj, vec3d *hitpos)
 
void ship_generic_kill_stuff (object *objp, float percent_killed)
 
int get_max_sparks (object *ship_obj)
 
void ship_hit_pain (float damage, int quadrant)
 

Macro Definition Documentation

#define CREATE_SPARKS   1

Definition at line 21 of file shiphit.h.

#define MISS_SHIELDS   -1

Definition at line 23 of file shiphit.h.

#define NO_SPARKS   0

Definition at line 20 of file shiphit.h.

Function Documentation

void do_subobj_destroyed_stuff ( ship ship_p,
ship_subsys subsys,
vec3d hitpos,
bool  no_explosion = false 
)

Definition at line 108 of file shiphit.cpp.

int get_max_sparks ( object ship_obj)

Definition at line 1054 of file shiphit.cpp.

void ship_apply_global_damage ( object ship_obj,
object other_obj,
vec3d force_center,
float  damage 
)

Definition at line 2476 of file shiphit.cpp.

void ship_apply_local_damage ( object ship_obj,
object other_obj,
vec3d hitpos,
float  damage,
int  quadrant,
bool  create_spark = true,
int  submodel_num = -1,
vec3d hit_normal = 0 
)

Definition at line 2359 of file shiphit.cpp.

void ship_apply_tag ( int  ship_num,
int  tag_level,
float  tag_time,
object target,
vec3d start,
int  ssm_index,
int  ssm_team 
)

Definition at line 2324 of file shiphit.cpp.

void ship_apply_wash_damage ( object ship_obj,
object other_obj,
float  damage 
)

Definition at line 2532 of file shiphit.cpp.

void ship_apply_whack ( vec3d force,
vec3d hit_pos,
object objp 
)

Definition at line 1740 of file shiphit.cpp.

void ship_generic_kill_stuff ( object objp,
float  percent_killed 
)

Definition at line 1371 of file shiphit.cpp.

void ship_hit_kill ( object ship_obj,
object other_obj,
float  percent_killed,
int  self_destruct 
)

Definition at line 1542 of file shiphit.cpp.

void ship_hit_pain ( float  damage,
int  quadrant 
)

Definition at line 2562 of file shiphit.cpp.

void ship_hit_sparks_no_rotate ( object ship_obj,
vec3d hitpos 
)

Definition at line 1030 of file shiphit.cpp.

void ship_self_destruct ( object objp)

Definition at line 1697 of file shiphit.cpp.