mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
REAL_OBJECT.ubLastTargetTakenDamage -> SoldierID
This commit is contained in:
@@ -2471,7 +2471,7 @@ void CheckForObjectHittingMerc( REAL_OBJECT *pObject, UINT16 usStructureID )
|
|||||||
// Is it a guy?
|
// Is it a guy?
|
||||||
if ( usStructureID < INVALID_STRUCTURE_ID )
|
if ( usStructureID < INVALID_STRUCTURE_ID )
|
||||||
{
|
{
|
||||||
if ( pObject->ubLastTargetTakenDamage != (UINT8)usStructureID )
|
if ( pObject->ubLastTargetTakenDamage != usStructureID )
|
||||||
{
|
{
|
||||||
// Flugente: if this fails, something is very wrong indeed
|
// Flugente: if this fails, something is very wrong indeed
|
||||||
Assert(usStructureID<TOTAL_SOLDIERS);
|
Assert(usStructureID<TOTAL_SOLDIERS);
|
||||||
@@ -2488,7 +2488,7 @@ void CheckForObjectHittingMerc( REAL_OBJECT *pObject, UINT16 usStructureID )
|
|||||||
|
|
||||||
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 );
|
||||||
|
|
||||||
pObject->ubLastTargetTakenDamage = (UINT8)( usStructureID );
|
pObject->ubLastTargetTakenDamage = usStructureID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ public:
|
|||||||
BOOLEAN fPotentialForDebug;
|
BOOLEAN fPotentialForDebug;
|
||||||
INT32 sLevelNodeGridNo;
|
INT32 sLevelNodeGridNo;
|
||||||
INT32 iSoundID;
|
INT32 iSoundID;
|
||||||
UINT8 ubLastTargetTakenDamage;
|
SoldierID ubLastTargetTakenDamage;
|
||||||
// OJW - 20091002 - mp explosives
|
// OJW - 20091002 - mp explosives
|
||||||
UINT8 mpTeam; // the intiating clients team
|
UINT8 mpTeam; // the intiating clients team
|
||||||
INT32 mpRealObjectID; // ID from the initiating client
|
INT32 mpRealObjectID; // ID from the initiating client
|
||||||
|
|||||||
Reference in New Issue
Block a user