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

Function CreateObjectBlastRing

Descent3/fireball.cpp:2030–2033  ·  view source on GitHub ↗

TODO: MTS: only used in this file. Creates a standard blast ring for an object

Source from the content-addressed store, hash-verified

2028// TODO: MTS: only used in this file.
2029// Creates a standard blast ring for an object
2030int CreateObjectBlastRing(object *objp) {
2031 float ring_size = OBJECT_OUTSIDE(objp) ? (objp->size * 3) : objp->size;
2032 return CreateBlastRing(&objp->pos, BLAST_RING_INDEX, DAMAGE_RING_TIME, ring_size, objp->roomnum);
2033}
2034// TODO: MTS: Not used?
2035// Creates a smolding smoke to be drawn
2036int CreateSmolderingObject(vector *pos, int index, float lifetime, float max_size, int roomnum) {

Callers 3

DoDebrisFrameFunction · 0.85
DestroyObjectFunction · 0.85
DoBlastRingEventFunction · 0.85

Calls 1

CreateBlastRingFunction · 0.85

Tested by

no test coverage detected