summaryrefslogtreecommitdiffstats
path: root/src/weapons
diff options
context:
space:
mode:
authorwithmorten <morten.with@gmail.com>2021-01-14 23:16:42 +0100
committerwithmorten <morten.with@gmail.com>2021-01-14 23:16:42 +0100
commitd5ce8b1ea3359ad5518e724e32a76ba32be1586b (patch)
treeb4e48a02501378e10008853e61379449c69c0a1d /src/weapons
parentincoming "fuck" commit (diff)
downloadre3-d5ce8b1ea3359ad5518e724e32a76ba32be1586b.tar
re3-d5ce8b1ea3359ad5518e724e32a76ba32be1586b.tar.gz
re3-d5ce8b1ea3359ad5518e724e32a76ba32be1586b.tar.bz2
re3-d5ce8b1ea3359ad5518e724e32a76ba32be1586b.tar.lz
re3-d5ce8b1ea3359ad5518e724e32a76ba32be1586b.tar.xz
re3-d5ce8b1ea3359ad5518e724e32a76ba32be1586b.tar.zst
re3-d5ce8b1ea3359ad5518e724e32a76ba32be1586b.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 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() )