MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / CanUse

Method CanUse

engine/Poseidon/World/Entities/Weapons/Weapons.cpp:573–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571}
572
573bool MuzzleType::CanUse(const MagazineType* type) const
574{
575 for (int i = 0; i < _magazines.Size(); i++)
576 {
577 if (_magazines[i] == type)
578 {
579 return true;
580 }
581 }
582 return false;
583}
584
585WeaponType::WeaponType()
586{

Callers 7

GetActionsMethod · 0.80
SimulateMethod · 0.80
SerializeMethod · 0.80
TransferMsgWeaponsMethod · 0.80
ReloadMagazineTimedMethod · 0.80
PerformActionMethod · 0.80
AttachMagazineMethod · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected