Skip to content

Commit

Permalink
display announcement in the lobby for users
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Aug 24, 2023
1 parent fde7783 commit adc40c4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,7 @@ Press Yes if you agree to this. This choice can be changed in the mods menu at a

"PROGRESSION_DISABLED_HEADER" "Progression Disabled!"
"PROGRESSION_DISABLED_BODY" "^CCCC0000Progression has been disabled.^\n\nTitans, Weapons, Factions, Skins, etc. will all be unlocked and usable at any time.\n\nThis can be changed at any time in the multiplayer lobby."

"PROGRESSION_ANNOUNCEMENT_BODY" "^CCCC0000Progression can now be enabled!^\n\nNorthstar now supports vanilla progression, meaning you can choose to unlock Weapons, Skins, Titans, etc. through levelling up and completing challenges.\n\nYou can enable progression using the button at the bottom of the lobby screen.\n\nThis can be changed at any time."
}
}
5 changes: 4 additions & 1 deletion Northstar.CustomServers/mod/cfg/autoexec_ns_server.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ sv_updaterate_mp 20 // default updaterate: 20 tick
sv_minupdaterate 20 // unsure if this actually works, but if it does, should set minimum client updaterate
sv_max_snapshots_multiplayer 300 // this needs to be updaterate * 15, or clients will dc in killreplay
net_data_block_enabled 0 // not really sure on this, have heard datablock could have security issues? doesn't seem to have any adverse effects being disabled
host_skip_client_dll_crc 1 // allow people to run modded client dlls, this is mainly so people running pilot visor colour mods can keep those, since they use a client.dll edit
host_skip_client_dll_crc 1 // allow people to run modded client dlls, this is mainly so people running pilot visor colour mods can keep those, since they use a client.dll edit
announcementVersion 1
announcement #PROGRESSION_ANNOUNCEMENT_BODY
12 changes: 12 additions & 0 deletions Northstar.CustomServers/mod/scripts/vscripts/lobby/_lobby.gnut
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void function Lobby_Init()
{
// non-private lobby clientcommands
AddClientCommandCallback( "StartPrivateMatchSearch", ClientCommandCallback_StartPrivateMatchSearch )
AddClientCommandCallback( "SetAnnouncementVersionSeen", ClientCommandCallback_SetAnnouncementVersionSeen )
}
}

Expand All @@ -37,3 +38,14 @@ bool function ClientCommandCallback_StartPrivateMatchSearch( entity player, arra

return true
}

bool function ClientCommandCallback_SetAnnouncementVersionSeen( entity player, array<string> args )
{
if ( args.len() < 1 )
return false

int version = int( args[0] )

player.SetPersistentVar( "announcementVersionSeen", version )
return true
}

0 comments on commit adc40c4

Please sign in to comment.