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

Function StartOnOffWeapon

Descent3/WeaponFire.cpp:2666–2676  ·  view source on GitHub ↗

Starts an on/off weapon firing

Source from the content-addressed store, hash-verified

2664
2665// Starts an on/off weapon firing
2666void 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
2678float Zoom_fov_time = 0;
2679

Callers 1

FireWeaponFromPlayerFunction · 0.85

Calls 1

Tested by

no test coverage detected