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

Function DoDynamicCone

Descent3/procedurals.cpp:720–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718 }
719}
720void DoDynamicCone(int handle, dynamic_proc_element *proc) {
721 PlaceProcPoint(FixToInt(proc->x1), FixToInt(proc->y1), proc->color);
722 proc->frames_left--;
723 if (proc->frames_left < 1)
724 ProcElementUnlink(proc - DynamicProcElements, handle);
725 else {
726 proc->color--;
727 if (proc->color == 0)
728 ProcElementUnlink(proc - DynamicProcElements, handle);
729 else {
730 proc->x1 += proc->dx;
731 proc->y1 += proc->dy;
732 }
733 }
734}
735void AddProcFallRight(int handle, static_proc_element *proc) {
736 if (proc->frequency == 0 || (FrameCount % proc->frequency) == 0) {
737 // Add a new fizzle

Callers 1

EvaluateFireProceduralFunction · 0.85

Calls 2

PlaceProcPointFunction · 0.85
ProcElementUnlinkFunction · 0.85

Tested by

no test coverage detected