Impact = LogImpact.Extreme,
ConfirmationPopup = true
});
+
+ // Respawn
+ args.Verbs.Add(new Verb()
+ {
+ Text = Loc.GetString("admin-player-actions-respawn"),
+ Category = VerbCategory.Admin,
+ Act = () =>
+ {
+ _console.ExecuteCommand(player, $"respawn {targetActor.PlayerSession.Name}");
+ },
+ ConfirmationPopup = true,
+ // No logimpact as the command does it internally.
+ });
}
// Admin Logs
Impact = LogImpact.Low
});
- // Respawn
- if (HasComp<ActorComponent>(args.Target))
- {
- args.Verbs.Add(new Verb()
- {
- Text = Loc.GetString("admin-player-actions-respawn"),
- Category = VerbCategory.Admin,
- Act = () =>
- {
- _console.ExecuteCommand(player, $"respawn {actor.PlayerSession.Name}");
- },
- ConfirmationPopup = true,
- // No logimpact as the command does it internally.
- });
- }
}
}
-Name: Admin
+Name: Admin
AdminOnly: true
Order: 1
Entries:
- {message: 'AME and PA make a sound effect when they are being overloaded. Similar to being sent a fax.', type: Add}
id: 10
time: '2023-11-07T15:03:00.0000000+00:00'
+- author: nikthechampiongr
+ changes:
+ - {message: 'The respawn verb now respawns the targeted player instead of the admin', type: Fix}
+ time: '2023-11-22T16:39:00.0000000+00:00'