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

Function aStripWeaponsEnergyFromAll

scripts/DallasFuncs.cpp:4745–4748  ·  view source on GitHub ↗

$$ACTION Players Strip all weapons and energy from all players aStripWeaponsEnergyFromAll Removes all weapons (but lasers) and ammo, and reduces energy to 0. $$END */

Source from the content-addressed store, hash-verified

4743$$END
4744*/
4745void aStripWeaponsEnergyFromAll(void) {
4746 int val = -1;
4747 Player_Value(OBJECT_HANDLE_NONE, VF_SET, PLYV_I_STRIP_WEAPONS, &val);
4748}
4749
4750/*
4751$$ACTION

Callers 1

CallEventMethod · 0.85

Calls 1

Player_ValueFunction · 0.85

Tested by

no test coverage detected