Skip to content

Commit

Permalink
feat: make nutcracker drop its gun when killed
Browse files Browse the repository at this point in the history
  • Loading branch information
winstxnhdw committed Feb 13, 2024
1 parent 53744e3 commit 359e75e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lc-hax/Scripts/Helpers/Enemies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ internal static partial class Helper {
internal static void Kill(this EnemyAI enemyInstance, ulong actualClientId) {
if (enemyInstance is NutcrackerEnemyAI nutcracker) {
nutcracker.ChangeEnemyOwnerServerRpc(actualClientId);
nutcracker.DropGunServerRpc(Vector3.zero);
nutcracker.KillEnemyOnOwnerClient();
}

enemyInstance.KillEnemyServerRpc(true);
else {
enemyInstance.KillEnemyServerRpc(true);
}
}

internal static void Kill(EnemyAI enemyInstance) {
Expand Down

0 comments on commit 359e75e

Please sign in to comment.