14 #ifndef __diguyImpact_H
15 #define __diguyImpact_H
20 #define CPLUSPLUS_ONLY
85 const char* get_impact_type_string();
101 const char* get_attacker_name();
117 const char* get_target_name();
133 const char* get_hit_link_name();
140 int get_hit_link_index();
148 const char* get_hit_shape_name();
155 int get_impact_number();
162 void set_impact_number(
int val);
169 void set_impact_been_processed();
176 int get_impact_been_processed();
204 void get_location(
float* x,
float* y,
float* z);
211 float get_impact_radius();
218 float get_impact_speed();
236 int get_location_in_link_coordinates(
float* link_x,
258 const char* get_munition_type();
282 float get_normal_x();
289 float get_normal_y();
296 float get_normal_z();
303 void get_impact_normal(
float* x,
float* y,
float* z);
320 void get_impact_velocity(
float* x,
float* y,
float* z);
328 int get_is_from_net_detonation();
343 int get_DIS_munition_septet_value(
int septet_index);
364 int get_DIS_event_number();
372 int get_DIS_munition_number();
379 int get_DIS_detonation_result();
387 int get_DIS_burst_warhead_type();
395 int get_DIS_burst_fuze();
403 int get_DIS_burst_quantity();
411 int get_DIS_burst_rate();
414 #ifdef CPLUSPLUS_ONLY
487 void set_valid_impact();
519 void set_location(
float x,
float y,
float z);
535 void set_normal(
float nx,
float ny,
float nz);
568 void set_hit_link_index(
int index);
580 void set_hit_shape_index(
int index);
592 friend class bdiScenarioEditorDIGS;
593 friend class bdiPublishedCharacter;
594 friend class bdiScenario;
595 friend class bdiScenarioCharacter;
596 friend class bdiScenarioCrowdWorkManager;
598 friend class bdiQGLWidget;
600 void set_munition_type(
const char* munition_type);
614 int shape_index = -1,
615 float* location = NULL,
616 float* normal = NULL,
617 float impact_speed = 0.0f,
619 const char* munition_type = NULL);
633 int m_impact_processed;
636 float m_impact_speed;
637 float m_impact_radius;
638 char m_munition_type[128];
644 int m_is_from_net_detonation;
645 int m_DIS_munition_septet[7];
648 int m_DIS_event_number;
649 int m_DIS_munition_number;
650 int m_DIS_detonation_result;
651 int m_DIS_burst_warhead_type;
652 int m_DIS_burst_fuze;
653 int m_DIS_burst_quantity;
654 int m_DIS_burst_rate;
655 float m_impact_velocity[3];
675 int get_impact_point(
float *ret_x,
float *ret_y,
float *ret_z);
676 int get_valid_impact();