summaryrefslogtreecommitdiff
path: root/src/weapons/Weapon.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-21 23:11:36 +0200
committerSergeanur <s.anureev@yandex.ua>2021-01-21 23:11:36 +0200
commite8db0e3abb52c465d842133c09ea320a820e3121 (patch)
treecf5a011373899891c6a191f024839a29d018d8fb /src/weapons/Weapon.cpp
parent95448eea3d3d0bc7eb1c1963c4cf8fce56431241 (diff)
parented74182cc2da8f556705aaaeb3fcdeb8d5a47e7b (diff)
Merge branch 'lcs' into lcsfont
* lcs: fix enable screenshots for librw; update librw Get rid of bitfields in CPool Sync matrix with master free cam inversion fix free cam inversion fix Fix CFont::PrintStringFromBottom pc radar fix work on colourfilters PSP rendering and shader cleanup fix handbrake fix wrong ifdef fix some free cam fixes for controller sync milessdk with re3mss vehicle fixes fix add the bad crack "features" behind SECUROM define # Conflicts: # src/render/Font.cpp
Diffstat (limited to 'src/weapons/Weapon.cpp')
-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() )