Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Generals/Code/GameEngine/Include/Common/KindOf.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ enum KindOfType CPP_11(: Int)
KINDOF_CONSERVATIVE_BUILDING, ///< Conservative structures aren't considered part of your base for sneak attack boundary calculations...
KINDOF_IGNORE_DOCKING_BONES, ///< Structure will not look up docking bones. Patch 1.03 hack.

// TheSuperHackers @info New kinds for Mods

KINDOF_NO_ATTACK_WARNING, ///< does not trigger the under attack radar/EVA warning when taking damage

KINDOF_COUNT, // total number of kindofs
KINDOF_FIRST = 0,
};
Expand Down
1 change: 1 addition & 0 deletions Generals/Code/GameEngine/Source/Common/System/KindOf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const char* const KindOfMaskType::s_bitNameList[] =
"DEMOTRAP",
"CONSERVATIVE_BUILDING",
"IGNORE_DOCKING_BONES",
"NO_ATTACK_WARNING",

nullptr
};
Expand Down
3 changes: 2 additions & 1 deletion Generals/Code/GameEngine/Source/GameLogic/Object/Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1769,7 +1769,8 @@ void Object::attemptDamage( DamageInfo *damageInfo )
damageInfo->in.m_damageType != DAMAGE_HEALING &&
!BitIsSet(damageInfo->in.m_sourcePlayerMask, getControllingPlayer()->getPlayerMask()) &&
m_radarData != nullptr &&
isLocallyControlled() )
isLocallyControlled() &&
!isKindOf( KINDOF_NO_ATTACK_WARNING ) )
Comment thread
githubawn marked this conversation as resolved.
TheRadar->tryUnderAttackEvent( this );

}
Expand Down
4 changes: 4 additions & 0 deletions GeneralsMD/Code/GameEngine/Include/Common/KindOf.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ enum KindOfType CPP_11(: Int)
KINDOF_CONSERVATIVE_BUILDING, ///< Conservative structures aren't considered part of your base for sneak attack boundary calculations...
KINDOF_IGNORE_DOCKING_BONES, ///< Structure will not look up docking bones. Patch 1.03 hack.

// TheSuperHackers @info New kinds for Mods

KINDOF_NO_ATTACK_WARNING, ///< does not trigger the under attack radar/EVA warning when taking damage

KINDOF_COUNT, // total number of kindofs
KINDOF_FIRST = 0,
};
Expand Down
1 change: 1 addition & 0 deletions GeneralsMD/Code/GameEngine/Source/Common/System/KindOf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ const char* const KindOfMaskType::s_bitNameList[] =
"DEMOTRAP",
"CONSERVATIVE_BUILDING",
"IGNORE_DOCKING_BONES",
"NO_ATTACK_WARNING",

nullptr
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,8 @@ void Object::attemptDamage( DamageInfo *damageInfo )
getControllingPlayer() &&
!BitIsSet(damageInfo->in.m_sourcePlayerMask, getControllingPlayer()->getPlayerMask()) &&
m_radarData != nullptr &&
isLocallyControlled() )
isLocallyControlled() &&
!isKindOf( KINDOF_NO_ATTACK_WARNING ) )
TheRadar->tryUnderAttackEvent( this );

}
Expand Down
Loading