diff options
author | aap <aap@papnet.eu> | 2021-01-17 20:06:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-17 20:06:25 +0100 |
commit | 2b4b00b3884334d0305675eef9879b72af4fb46c (patch) | |
tree | 41d40b9630c8affb2860fdc8906eed0fb56c8ec0 /src/weapons/Weapon.cpp | |
parent | vehicle fixes (diff) | |
parent | add the bad crack "features" behind SECUROM define (diff) | |
download | re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.gz re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.bz2 re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.lz re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.xz re3-2b4b00b3884334d0305675eef9879b72af4fb46c.tar.zst re3-2b4b00b3884334d0305675eef9879b72af4fb46c.zip |
Diffstat (limited to 'src/weapons/Weapon.cpp')
-rw-r--r-- | src/weapons/Weapon.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp index 940a6b98..17e0b313 100644 --- a/src/weapons/Weapon.cpp +++ b/src/weapons/Weapon.cpp @@ -44,6 +44,10 @@ float fPlayerAimScale = 2.5f; bool CWeapon::bPhotographHasBeenTaken; +#ifdef SECUROM +int32 sniperPirateCheck = 0x00797743; // 'Cwy\0' ??? +#endif + CWeaponInfo * CWeapon::GetInfo() { @@ -2201,6 +2205,13 @@ CWeapon::FireSniper(CEntity *shooter) } } +#ifdef SECUROM + if (sniperPirateCheck){ + // if not pirated game + // sniperPirateCheck = 0; + } +#endif + #ifndef FIX_BUGS CWeaponInfo *info = GetInfo(); //unused #endif @@ -2217,6 +2228,10 @@ CWeapon::FireSniper(CEntity *shooter) dir.Normalise(); dir *= 16.0f; +#ifdef SECUROM + if (sniperPirateCheck) return true; +#endif + CBulletInfo::AddBullet(shooter, m_eWeaponType, source, dir); if ( shooter == FindPlayerPed() ) |