Starts an on/off weapon firing
| 2664 | |
| 2665 | // Starts an on/off weapon firing |
| 2666 | void StartOnOffWeapon(object *obj, uint8_t wb_index) { |
| 2667 | // mprintf(0,"Starting on/off weapon!\n"); |
| 2668 | obj->weapon_fire_flags |= WFF_ON_OFF; |
| 2669 | |
| 2670 | dynamic_wb_info *p_dwb = &obj->dynamic_wb[wb_index]; |
| 2671 | p_dwb->cur_firing_mask = 0; |
| 2672 | |
| 2673 | if (Demo_flags == DF_RECORDING) { |
| 2674 | DemoWriteObjWeapFireFlagChanged(OBJNUM(obj)); |
| 2675 | } |
| 2676 | } |
| 2677 | |
| 2678 | float Zoom_fov_time = 0; |
| 2679 |
no test coverage detected