mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
-spreadsheet update
-fixed lock buster damage rolling over -doubled chance for lockbuster ammo to hit locks git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@386 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ INT16 zVersionLabel[256] = { L"Beta v. 0.98" };
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
//RELEASE BUILD VERSION
|
//RELEASE BUILD VERSION
|
||||||
INT16 zVersionLabel[256] = { L"Release v1.13.382" };
|
INT16 zVersionLabel[256] = { L"Release v1.13.386" };
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+14
-4
@@ -2445,7 +2445,10 @@ INT32 HandleBulletStructureInteraction( BULLET * pBullet, STRUCTURE * pStructure
|
|||||||
|
|
||||||
// Does it have a lock?
|
// Does it have a lock?
|
||||||
INT16 lockBustingPower = AmmoTypes[pBullet->pFirer->inv[ pBullet->pFirer->ubAttackingHand ].ubGunAmmoType].lockBustingPower;
|
INT16 lockBustingPower = AmmoTypes[pBullet->pFirer->inv[ pBullet->pFirer->ubAttackingHand ].ubGunAmmoType].lockBustingPower;
|
||||||
if ( pDoor && (( LockTable[ pDoor->ubLockID ].ubPickDifficulty < 50 && LockTable[ pDoor->ubLockID ].ubSmashDifficulty < 70 ) || lockBustingPower >= LockTable[ pDoor->ubLockID ].ubSmashDifficulty ) )
|
|
||||||
|
DebugMsg( TOPIC_JA2, DBG_LEVEL_3, String("Door info: damage = %d, pick difficulty = %d, smash difficulty = %d, lockbuster power = %d",pDoor->bLockDamage,LockTable[ pDoor->ubLockID ].ubPickDifficulty,LockTable[ pDoor->ubLockID ].ubSmashDifficulty,lockBustingPower) );
|
||||||
|
|
||||||
|
if ( pDoor && (( LockTable[ pDoor->ubLockID ].ubPickDifficulty < 50 && LockTable[ pDoor->ubLockID ].ubSmashDifficulty < 70 ) || lockBustingPower*2 >= LockTable[ pDoor->ubLockID ].ubSmashDifficulty ) )
|
||||||
{
|
{
|
||||||
// Yup.....
|
// Yup.....
|
||||||
|
|
||||||
@@ -2454,15 +2457,22 @@ INT32 HandleBulletStructureInteraction( BULLET * pBullet, STRUCTURE * pStructure
|
|||||||
{
|
{
|
||||||
// Adjust damage-- CC adjust this based on gun type, etc.....
|
// Adjust damage-- CC adjust this based on gun type, etc.....
|
||||||
//sLockDamage = (INT16)( 35 + Random( 35 ) );
|
//sLockDamage = (INT16)( 35 + Random( 35 ) );
|
||||||
sLockDamage = (INT16) (pBullet->iImpact - pBullet->iImpactReduction + lockBustingPower);
|
sLockDamage = (INT16) (pBullet->iImpact - pBullet->iImpactReduction );
|
||||||
sLockDamage += (INT16) PreRandom( sLockDamage );
|
sLockDamage += (INT16) PreRandom( sLockDamage );
|
||||||
|
sLockDamage += lockBustingPower;
|
||||||
|
|
||||||
|
sLockDamage = min(sLockDamage,127);
|
||||||
|
|
||||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, TacticalStr[ LOCK_HAS_BEEN_HIT ] );
|
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, TacticalStr[ LOCK_HAS_BEEN_HIT ] );
|
||||||
|
|
||||||
pDoor->bLockDamage+= sLockDamage;
|
//Madd: catch the overflow
|
||||||
|
if ( sLockDamage + pDoor->bLockDamage > 127 )
|
||||||
|
pDoor->bLockDamage = 127;
|
||||||
|
else
|
||||||
|
pDoor->bLockDamage+= sLockDamage;
|
||||||
|
|
||||||
// Check if it has been shot!
|
// Check if it has been shot!
|
||||||
if ( pDoor->bLockDamage > LockTable[ pDoor->ubLockID ].ubSmashDifficulty )
|
if ( pDoor->bLockDamage > LockTable[ pDoor->ubLockID ].ubSmashDifficulty || sLockDamage > LockTable[ pDoor->ubLockID ].ubSmashDifficulty )
|
||||||
{
|
{
|
||||||
// Display message!
|
// Display message!
|
||||||
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, TacticalStr[ LOCK_HAS_BEEN_DESTROYED ] );
|
ScreenMsg( FONT_MCOLOR_LTYELLOW, MSG_INTERFACE, TacticalStr[ LOCK_HAS_BEEN_DESTROYED ] );
|
||||||
|
|||||||
Reference in New Issue
Block a user