‪Black Ops 3 Source Code Explorer  0.1
‪An script explorer for Black Ops 3 by ZeRoY
destructible_character.gsh File Reference

Go to the source code of this file.

Macros

#define DESTRUCT_CLIENTFIELD   "destructible_character_state"
 
#define DESTRUCT_CLIENTFIELD_BITS   21
 
#define DESTRUCT_CLIENTFIELD_TYPE   "int"
 
#define DESTRUCT_MAX_PIECES   20
 
#define DESTRUCT_TOGGLE_GIB_MODEL_FLAG   1
 
#define DESTRUCT_UNDAMAGED_FLAG   0
 
#define GET_DESTRUCT_BUNDLE(entity)   struct::get_script_bundle( "destructiblecharacterdef", entity.destructibledef )
 
#define GET_DESTRUCT_BUNDLES   struct::get_script_bundles( "destructiblecharacterdef" )
 
#define GET_DESTRUCT_FLAG(destruct_piece_number)   (1 << destruct_piece_number)
 
#define GET_DESTRUCT_FLAGS(old_destruct_state, current_destruct_state)   (old_destruct_state ^ current_destruct_state)
 
#define HAS_DESTRUCT_DEF(entity)   IsDefined(entity.destructibledef)
 
#define IS_DESTRUCTED(destruct_state, destruct_flag)   (destruct_state & destruct_flag)
 
#define IS_VALID_PIECE_NUMBER(piece_number)   (1 <= piece_number && piece_number <= 20)
 
#define SET_DESTRUCTED(destruct_state, destruct_flag)   (destruct_state | destruct_flag)
 
#define SHOULD_SPAWN_DESTRUCT_GIBS(destruct_state)   (destruct_state & 1)
 

Macro Definition Documentation

◆ DESTRUCT_CLIENTFIELD

#define DESTRUCT_CLIENTFIELD   "destructible_character_state"

Definition at line 1 of file destructible_character.gsh.

◆ DESTRUCT_CLIENTFIELD_BITS

#define DESTRUCT_CLIENTFIELD_BITS   21

Definition at line 7 of file destructible_character.gsh.

◆ DESTRUCT_CLIENTFIELD_TYPE

#define DESTRUCT_CLIENTFIELD_TYPE   "int"

Definition at line 2 of file destructible_character.gsh.

◆ DESTRUCT_MAX_PIECES

#define DESTRUCT_MAX_PIECES   20

Definition at line 12 of file destructible_character.gsh.

◆ DESTRUCT_TOGGLE_GIB_MODEL_FLAG

#define DESTRUCT_TOGGLE_GIB_MODEL_FLAG   1

Definition at line 10 of file destructible_character.gsh.

◆ DESTRUCT_UNDAMAGED_FLAG

#define DESTRUCT_UNDAMAGED_FLAG   0

Definition at line 9 of file destructible_character.gsh.

◆ GET_DESTRUCT_BUNDLE

#define GET_DESTRUCT_BUNDLE (   entity)    struct::get_script_bundle( "destructiblecharacterdef", entity.destructibledef )

Definition at line 16 of file destructible_character.gsh.

◆ GET_DESTRUCT_BUNDLES

#define GET_DESTRUCT_BUNDLES   struct::get_script_bundles( "destructiblecharacterdef" )

Definition at line 17 of file destructible_character.gsh.

◆ GET_DESTRUCT_FLAG

#define GET_DESTRUCT_FLAG (   destruct_piece_number)    (1 << destruct_piece_number)

Definition at line 14 of file destructible_character.gsh.

◆ GET_DESTRUCT_FLAGS

#define GET_DESTRUCT_FLAGS (   old_destruct_state,
  current_destruct_state 
)    (old_destruct_state ^ current_destruct_state)

Definition at line 15 of file destructible_character.gsh.

◆ HAS_DESTRUCT_DEF

#define HAS_DESTRUCT_DEF (   entity)    IsDefined(entity.destructibledef)

Definition at line 18 of file destructible_character.gsh.

◆ IS_DESTRUCTED

#define IS_DESTRUCTED (   destruct_state,
  destruct_flag 
)    (destruct_state & destruct_flag)

Definition at line 19 of file destructible_character.gsh.

◆ IS_VALID_PIECE_NUMBER

#define IS_VALID_PIECE_NUMBER (   piece_number)    (1 <= piece_number && piece_number <= 20)

Definition at line 21 of file destructible_character.gsh.

◆ SET_DESTRUCTED

#define SET_DESTRUCTED (   destruct_state,
  destruct_flag 
)    (destruct_state | destruct_flag)

Definition at line 22 of file destructible_character.gsh.

◆ SHOULD_SPAWN_DESTRUCT_GIBS

#define SHOULD_SPAWN_DESTRUCT_GIBS (   destruct_state)    (destruct_state & 1)

Definition at line 23 of file destructible_character.gsh.