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

Function WBSetupFireAnim

Descent3/robotfire.cpp:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void WBSetupFireAnim(object *obj, otype_wb_info *static_wb, int wb_index) {
66 dynamic_wb_info *p_dwb = &obj->dynamic_wb[wb_index];
67
68 p_dwb->wb_anim_mask = p_dwb->cur_firing_mask;
69
70 if (static_wb->anim_start_frame != static_wb->anim_end_frame) {
71 p_dwb->flags |= DWBF_ANIMATING;
72 p_dwb->wb_anim_frame = static_wb->anim_start_frame[p_dwb->cur_firing_mask];
73 }
74
75 if (static_wb->anim_start_frame[p_dwb->cur_firing_mask] == static_wb->anim_fire_frame[p_dwb->cur_firing_mask]) {
76 WBFireBattery(obj, static_wb, wb_index);
77 p_dwb->flags |= DWBF_ANIM_FIRED;
78 }
79}
80
81void WBFireAnimFrame(object *obj, otype_wb_info *static_wb, int wb_index) {
82 dynamic_wb_info *p_dwb = &obj->dynamic_wb[wb_index];

Callers 1

ai_fireFunction · 0.85

Calls 1

WBFireBatteryFunction · 0.85

Tested by

no test coverage detected