MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / Load

Method Load

ogsr_engine/xrGame/WeaponStatMgun.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void CWeaponStatMgun::Load(LPCSTR section)
66{
67 inheritedPH::Load(section);
68 inheritedShooting::Load(section);
69
70 HUD_SOUND::LoadSound(section, "snd_shoot", sndShot, SOUND_TYPE_WEAPON_SHOOTING);
71 m_Ammo->Load(pSettings->r_string(section, "ammo_class"), 0);
72 camMaxAngle = pSettings->r_float(section, "cam_max_angle");
73 camMaxAngle = deg2rad(camMaxAngle);
74 camRelaxSpeed = pSettings->r_float(section, "cam_relax_speed");
75 camRelaxSpeed = deg2rad(camRelaxSpeed);
76}
77
78BOOL CWeaponStatMgun::net_Spawn(CSE_Abstract* DC)
79{

Callers 1

CWeaponStatMgunMethod · 0.45

Calls 4

LoadFunction · 0.85
deg2radFunction · 0.85
r_stringMethod · 0.45
r_floatMethod · 0.45

Tested by

no test coverage detected