mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Bugfix for JaggZilla Bug #587
Objects thrown at civilians don't hurt them anymore. Anybody else will still suffer -1 health. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6593 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2415,7 +2415,12 @@ void CheckForObjectHittingMerc( REAL_OBJECT *pObject, UINT16 usStructureID )
|
|||||||
|
|
||||||
pSoldier = MercPtrs[ usStructureID ];
|
pSoldier = MercPtrs[ usStructureID ];
|
||||||
|
|
||||||
sDamage = 1;
|
// silversurfer: Don't hurt civilians. Throwing objects at civilians to kill them is a lame exploit.
|
||||||
|
if ( pSoldier->aiData.bNeutral )
|
||||||
|
sDamage = 0;
|
||||||
|
else
|
||||||
|
sDamage = 1;
|
||||||
|
|
||||||
sBreath = 0;
|
sBreath = 0;
|
||||||
|
|
||||||
pSoldier->EVENT_SoldierGotHit( NOTHING, sDamage, sBreath, pSoldier->ubDirection, 0, pObject->ubOwner, FIRE_WEAPON_TOSSED_OBJECT_SPECIAL, 0, 0, NOWHERE );
|
pSoldier->EVENT_SoldierGotHit( NOTHING, sDamage, sBreath, pSoldier->ubDirection, 0, pObject->ubOwner, FIRE_WEAPON_TOSSED_OBJECT_SPECIAL, 0, 0, NOWHERE );
|
||||||
|
|||||||
Reference in New Issue
Block a user