MCPcopy Create free account
hub / github.com/ZDoom/Raze / PlayerUpdateWeapon

Function PlayerUpdateWeapon

source/games/sw/src/panel.cpp:416–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414//---------------------------------------------------------------------------
415
416void PlayerUpdateWeapon(DSWPlayer* pp, short WeaponNum)
417{
418 DSWActor* plActor = pp->GetActor();
419
420 // weapon Change
421 if (Prediction)
422 return;
423
424 plActor->user.WeaponNum = int8_t(WeaponNum);
425}
426
427//---------------------------------------------------------------------------
428//

Callers 14

TRAVERSE_CONNECTFunction · 0.85
WeaponCheatFunction · 0.85
cmd_GiveFunction · 0.85
InitWeaponSwordFunction · 0.85
InitWeaponStarFunction · 0.85
InitWeaponUziFunction · 0.85
InitWeaponShotgunFunction · 0.85
InitWeaponRailFunction · 0.85
InitWeaponHotheadFunction · 0.85
InitWeaponMicroFunction · 0.85
InitWeaponHeartFunction · 0.85
InitWeaponGrenadeFunction · 0.85

Calls 1

GetActorMethod · 0.45

Tested by

no test coverage detected