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

Function StopOnOffWeapon

Descent3/WeaponFire.cpp:2656–2663  ·  view source on GitHub ↗

Stops any on/off weapons that are firing

Source from the content-addressed store, hash-verified

2654
2655// Stops any on/off weapons that are firing
2656void StopOnOffWeapon(object *obj) {
2657 // mprintf(0,"Stopping on/off weapon!\n");
2658 obj->weapon_fire_flags &= ~WFF_ON_OFF;
2659
2660 if (Demo_flags == DF_RECORDING) {
2661 DemoWriteObjWeapFireFlagChanged(OBJNUM(obj));
2662 }
2663}
2664
2665// Starts an on/off weapon firing
2666void StartOnOffWeapon(object *obj, uint8_t wb_index) {

Callers 2

ClearPlayerFiringFunction · 0.85
StopWeaponFunction · 0.85

Calls 1

Tested by

no test coverage detected