pool balls shot will not stop during movement

This commit is contained in:
Lorenc Pekaj 2018-09-19 23:01:59 +10:00
parent 349c508814
commit 99903baeb0
2 changed files with 2 additions and 1 deletions

View File

@ -1356,7 +1356,7 @@ hook OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float: fX, Float: f
poolball_index = GetPoolBallIndexFromModel( GetObjectModel( hitid ) ); poolball_index = GetPoolBallIndexFromModel( GetObjectModel( hitid ) );
if ( poolball_index != -1 ) { if ( poolball_index != -1 ) {
foreach ( new poolid : pooltables ) if ( g_poolTableData[ poolid ] [ E_STARTED ] ) { foreach ( new poolid : pooltables ) if ( g_poolTableData[ poolid ] [ E_STARTED ] && ( g_poolBallData[ poolid ] [ E_POCKETED ] [ i ] || ! PHY_IsObjectMoving( g_poolBallData[ poolid ] [ E_BALL_OBJECT ] [ i ] ) ) ) {
Pool_ResetBallPositions( poolid, poolball_index, poolball_index + 1 ); Pool_ResetBallPositions( poolid, poolball_index, poolball_index + 1 );
break; break;
} }

View File

@ -8,4 +8,5 @@
(/) Jail times now decreased by 40% and bobby pin prices have been increased. (/) Jail times now decreased by 40% and bobby pin prices have been increased.
(*) Players inside a vehicle that is brought by a player will be respawned. (*) Players inside a vehicle that is brought by a player will be respawned.
(*) Fixes issue with being unable to exit a meth van. (*) Fixes issue with being unable to exit a meth van.
(*) If you shoot a ball, it will not stop it while it is moving.
(*) Fix textdraw issue within casinos. (*) Fix textdraw issue within casinos.