diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2024-11-04 00:01:47 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-04 01:01:47 +0100 |
commit | 730616d4ceef904cf8a286837249a75cd886fbb2 (patch) | |
tree | 48155c4f43a69abfb18adde8d0865d4784d8c9da /Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut | |
parent | 9b83a632621264e28dd1724b90d381727c83d941 (diff) | |
download | NorthstarMods-1.28.4.tar.gz NorthstarMods-1.28.4.zip |
Replace uses of `disconnect` with `NSDisconnectPlayer` (#841)v1.28.4-rc3v1.28.4
As we want to remove `FCVAR_SERVER_CAN_EXECUTE` flag from `disconnect`.
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut b/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut index 7a7498b8..4bf195b6 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/sh_loadouts.nut @@ -1509,7 +1509,7 @@ string function GetValidatedPersistentLoadoutValue( entity player, string loadou {
printt( "Invalid Loadout Property: ", loadoutType, loadoutIndex, loadoutProperty, value )
value = ResetLoadoutPropertyToDefault( player, loadoutType, loadoutIndex, loadoutProperty ) //TODO: This will call player.SetPersistentVar() directly. Awkward to do this in a getter function
- ClientCommand( player, "disconnect #RESETTING_LOADOUT", 0 ) //Kick player out with a "Resetting Invalid Loadout" message. Mainly necessary so UI/Client script don't crash out later with known, bad data from persistence
+ NSDisconnectPlayer( player, "#RESETTING_LOADOUT" ) // Kick player out with a "Resetting Invalid Loadout" message. Mainly necessary so UI/Client script don't crash out later with known, bad data from persistence
}
}
@@ -1519,7 +1519,8 @@ string function GetValidatedPersistentLoadoutValue( entity player, string loadou {
printt( "Invalid Loadout Property: ", loadoutType, loadoutIndex, loadoutProperty, value )
value = ResetLoadoutPropertyToDefault( player, loadoutType, loadoutIndex, loadoutProperty ) //TODO: This will call player.SetPersistentVar() directly. Awkward to do this in a getter function
- ClientCommand( player, "disconnect #RESETTING_LOADOUT", 0 ) //Kick player out with a "Resetting Invalid Loadout" message. Mainly necessary so UI/Client script don't crash out later with known, bad data from persistence
+ NSDisconnectPlayer( player, "#RESETTING_LOADOUT" ) // Kick player out with a "Resetting Invalid Loadout" message. Mainly necessary so UI/Client script don't crash out later with known, bad data from persistence
+
}
ValidateSkinAndCamoIndexesAsAPair( player, loadoutType, loadoutIndex, loadoutProperty, value ) //TODO: This is awkward, has the potential to call a SetPersistentLoadoutValue() if skinIndex and camoIndex are not correct as a pair
|