MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ObjCreateEffectInfo

Function ObjCreateEffectInfo

Descent3/ObjInit.cpp:623–631  ·  view source on GitHub ↗

Allocate and initialize an effect_info struct for an object

Source from the content-addressed store, hash-verified

621#include "psrand.h"
622// Allocate and initialize an effect_info struct for an object
623void ObjCreateEffectInfo(object *objp) {
624 if (objp->effect_info)
625 mem_free(objp->effect_info);
626
627 objp->effect_info = (effect_info_s *)mem_malloc(sizeof(effect_info_s));
628 memset(objp->effect_info, 0, sizeof(effect_info_s));
629 ASSERT(objp->effect_info);
630 objp->effect_info->sound_handle = SOUND_NONE_INDEX;
631}
632void ObjSetRenderPolyobj(object *objp, int model_num, int dying_model_num = -1);
633#define NUM_PLAYER_ATTACH_POINTS 3
634// Initialize the polygon object information for an object

Callers 3

ObjInitPlayerFunction · 0.85
ObjInitGenericFunction · 0.85
ObjInitDebrisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected