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

Function do_ranged_attack

Descent3/AImain.cpp:2497–2504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2495}
2496
2497void do_ranged_attack(object *obj) {
2498 ai_frame *ai_info = obj->ai_info;
2499 int cur_wb = ai_info->current_wb_firing;
2500
2501 // Fire Weapon
2502 WBFireBattery(obj, &Object_info[obj->id].static_wb[cur_wb], cur_wb);
2503 ai_info->status_reg &= ~AISR_RANGED_ATTACK;
2504}
2505
2506void AIUpdateAnim(object *obj) {
2507 ai_frame *ai_info = obj->ai_info;

Callers 1

AIUpdateAnimFunction · 0.85

Calls 1

WBFireBatteryFunction · 0.85

Tested by

no test coverage detected