Decane / SRP

Sky Reclamation Project for S.T.A.L.K.E.R.: Clear Sky
http://www.moddb.com/mods/srp
124 stars 20 forks source link

Engine error when checking if the weapon is set to increase the magnification of sights #160

Closed ghost closed 9 months ago

ghost commented 9 months ago

The error remained from the release of the game, perhaps I found a solution to this error, but only I do not know how to edit the game engine. Perhaps a knowledgeable person can fix this error. In CoP zoom_factor is read by the engine when loading the weapon, in CS - no

[xrGame\Weapon.cpp] BOOL CWeapon::net_Spawn (CSE_Abstract* DC) … m_fRTZoomFactor = m_zoom_params.m_fScopeZoomFactor; -- only COP … iAmmoElapsed = E->a_elapsed; m_flagsAddOnState = E->m_addon_flags.get(); m_ammoType = E->ammo_type; …

SurDno commented 9 months ago

Any engine fixes are out of scope for SRP.

Decane commented 9 months ago

I recommend OpenXRay for engine fixes. To my understanding, it's compatible with CS these days. And it should work with SRP v1.1.4.