open cChar.cpp and find the "CChar::Cleanup( void )" function, there the following:
Code: Select all
tempChar = GetAttacker();
if( ValidateObject( tempChar ) )
{
if( tempChar->GetAttacker() == this )
tempChar->SetAttacker( NULL );
SetAttacker( NULL );
}
Code: Select all
tempChar = GetAttacker();
if( ValidateObject( tempChar ) )
{
if( tempChar->GetAttacker() == this ) {
tempChar->SetAttacker( NULL );
tempChar->SetTarg( NULL );
tempChar->SetAttackFirst( false );
if( tempChar->IsAtWar() )
tempChar->ToggleCombat();
}
SetAttacker( NULL );
}
Code: Select all
if( mChar->GetNPCAiType() == aiGUARD && ourTarg->IsNpc() )
{
Effects->PlayCharacterAnimation( ourTarg, 0x15 );
Effects->playDeathSound( ourTarg );
ourTarg->Delete(); // Guards, don't give body
mChar->ToggleCombat();
return;
}
Code: Select all
if( mChar->GetNPCAiType() == aiGUARD && ourTarg->IsNpc() )
{
Effects->PlayCharacterAnimation( ourTarg, 0x15 );
Effects->playDeathSound( ourTarg );
ourTarg->Delete(); // Guards, don't give body
if( mChar->IsAtWar() )
mChar->ToggleCombat();
return;
}