Skip to content

Commit

Permalink
Merge branch 'R2Northstar:main' into match_goals_tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanieon authored Dec 7, 2023
2 parents 1518301 + 0c5c9b1 commit aa86322
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ bool function ClientCommandCallback_SwapSecondaryAndWeapon3PersistentLoadoutData

// get loadout
int index = args[0].tointeger()

if ( !IsValidPilotLoadoutIndex(index) )
return false

PilotLoadoutDef loadout = GetPilotLoadoutFromPersistentData( player, index )

// swap loadouts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,14 @@ string function GetMapDisplayDesc( string mapname )
return "#" + mapname + "_CLASSIC_DESC"
}

/// Sends a string message to player
/// * `baseString` - The input string to search through
/// * `searchString` - Find this substring...
/// * `replaceString` - ...and replace with this substring
/// * `replaceAll` - Whether to replace all occurences or just the first
/// * `caseInsensitive` - Whether to consider casing (upper/lower)
///
/// Returns the updated string
string function StringReplace( string baseString, string searchString, string replaceString, bool replaceAll = false, bool caseInsensitive = false )
{
bool loopedOnce = false
Expand Down

0 comments on commit aa86322

Please sign in to comment.