Skip to content

Commit

Permalink
feat: sar_get_partner_id
Browse files Browse the repository at this point in the history
and check for splitscreen
  • Loading branch information
ThisAMJ committed Nov 8, 2023
1 parent 12dafd5 commit 561806b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Features/ConfigPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,13 @@ static Condition *ParseCondition(std::queue<Token> toks) {

// }}}

CON_COMMAND_F(sar_get_partner_id, "sar_get_partner_id - Prints your coop partner's steam id\n", FCVAR_DONTRECORD) {
if (!engine->IsCoop() || engine->IsSplitscreen()) {
return;
}
console->Print("%s\n", engine->GetPartnerSteamID32().c_str());
}

CON_COMMAND_F(cond, "cond <condition> <command> [args]... - runs a command only if a given condition is met\n", FCVAR_DONTRECORD) {
if (args.ArgC() < 3) {
return console->Print(cond.ThisPtr()->m_pszHelpString);
Expand Down

0 comments on commit 561806b

Please sign in to comment.