Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
mod: prevent viscount attacked message during warmup (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
Muparadzi authored Aug 2, 2023
1 parent 4add2ee commit 6f2de07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Module.Server/Modes/Dtv/CrpgDtvServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,14 @@ public override void OnScoreHit(
float hitDistance,
float shotDifficulty)
{
if (!_gameStarted)
{
return;
}

if (affectedAgent.IsAIControlled && affectedAgent.Team == Mission.DefenderTeam) // Viscount under attack
{
SendDataToPeers(new CrpgDtvViscountUnderAttackMessage { Attacker = affectorAgent });
return;
}
}

Expand Down

0 comments on commit 6f2de07

Please sign in to comment.