summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-20 18:32:03 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-20 18:32:03 +0100
commitcc94419a7281fde133a5dc17c46cc62ae061a58c (patch)
tree300a1e3c7d68e1fe32a3ba4491608bf18a1435b2 /src/weapons
parentfree cam inversion fix (diff)
parentGet rid of bitfields in CPool (diff)
downloadre3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.gz
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.bz2
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.lz
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.xz
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.tar.zst
re3-cc94419a7281fde133a5dc17c46cc62ae061a58c.zip
Diffstat (limited to 'src/weapons')
-rw-r--r--src/weapons/Weapon.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index bc575e4a..5f2fbf77 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() )