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

Function AddDeadIdentity

engine/Poseidon/UI/OptionsUI.cpp:1248–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1246 Ref<Magazine> magazine = new Magazine(type);
1247 magazine->_ammo = type->_maxAmmo;
1248 magazine->_reloadMagazine = 0;
1249 magazine->_reload = 0;
1250 if (type->_modes.Size() > 0)
1251 {
1252 float reload = 0.8 + 0.2 * GRandGen.RandomValue();
1253 magazine->_reload = reload * type->_modes[0]->_reloadTime;
1254 }
1255 pool._magazinesPool.Add(magazine);
1256 }
1257 }
1258}

Callers 3

SendAnswerMethod · 0.85
ObjSaveStatusFunction · 0.85
ObjSaveIdentityFunction · 0.85

Calls 2

CurrentMissionMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected