Skip to content

Commit 4bb0be7

Browse files
committed
Merge branch 'reactivedrop_beta' of https://github.com/ReactiveDrop/reactivedrop_public_src into reactivedrop_beta
2 parents 7b8df4f + 3572234 commit 4bb0be7

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

src/game/server/baseentity.cpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7279,7 +7279,20 @@ void CBaseEntity::InputRunScriptFile( inputdata_t& inputdata )
72797279
//---------------------------------------------------------
72807280
void CBaseEntity::InputRunScript( inputdata_t& inputdata )
72817281
{
7282-
RunScript( inputdata.value.String(), "InputRunScript" );
7282+
const char *pszRawScriptCode = inputdata.value.String();
7283+
7284+
const int nRawScriptCodeLen = V_strlen( pszRawScriptCode );
7285+
const int nRawScriptCodeSize = nRawScriptCodeLen + 1;
7286+
7287+
CUtlString szScriptCode;
7288+
szScriptCode.SetLength( nRawScriptCodeLen );
7289+
if ( V_StrSubst( inputdata.value.String(), "`", "\"", szScriptCode.Get(), nRawScriptCodeSize, true ) )
7290+
{
7291+
RunScript( szScriptCode.Get(), "InputRunScript" );
7292+
return;
7293+
}
7294+
7295+
RunScript( pszRawScriptCode, "InputRunScript" );
72837296
}
72847297

72857298
//---------------------------------------------------------

src/game/server/swarm/asw_marine.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,11 @@ int CASW_Marine::OnTakeDamage_Alive( const CTakeDamageInfo &info )
14191419
Msg( " but all ignored, since it's from a team mate\n" );
14201420
return 0;
14211421
}
1422+
//make hornet and smart bomb no longer friendlyfire
1423+
else if (!ASWDeathmatchMode() && pWeapon && (pWeapon->Classify() == CLASS_ASW_HORNET_BARRAGE || pWeapon->Classify() == CLASS_ASW_SMART_BOMB))
1424+
{
1425+
return 0;
1426+
}
14221427
else
14231428
{
14241429
if ( newInfo.GetDamageType() & DMG_CLUB )

0 commit comments

Comments
 (0)