mirror of
https://github.com/halpz/re3.git
synced 2025-07-15 05:38:15 +00:00
Merge branch 'miami' into lcs
# Conflicts: # src/control/Script.cpp # src/control/Script4.cpp # src/render/Weather.cpp # src/render/Weather.h # src/vehicles/Automobile.cpp
This commit is contained in:
@ -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() )
|
||||
|
Reference in New Issue
Block a user