Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Releases: ServerMod/Smod2

ServerMod 3.1.7

06 Jul 23:39
Compare
Choose a tag to compare
  • Updated for game version 7.1.0
  • Added OnIntercomCooldownCheckEvent. Happens before the server checks current cooldown on the intercom broadcast system. This allows you to alter how long until someone can broadcast again. If you set this to 0, they'll immediately start broadcasting, so if that's not the behaviour you want set it to 0.5 or 1 instead.
  • Add API Item.GetPosition & Item.SetPosition
  • Add config option disable_blood_on_screen, defaults to false
  • Add command ITEMPOS
  • Fixed Pocket Dimension not working properly
  • Reserved Slots now ignore empty or commented lines (Allows more/better formatting)
  • Reserved Slots should now print out the line number of any errors
  • Reserved Slots now supports changing the IP, SteamID, or comment of any entry programmatically
  • Make Reserved Slots handle custom paths better
  • Added config option reserved_slots_comment_symbol, this sets the primary comment symbol to use for Reserved Slots, this also allows for custom symbols, defaults to "//"
  • Changed config option dedicated_slots to reserved_slots
  • Changed config option dedicated_slot_file_name to reserved_slots_file_name
  • Make Reserved Slots attempt sending a disconnect message instead of trying to send a "Server is Full" error (which didn't work)
  • Fixed intercom sound effect not playing
  • Added better config creation debug output for Reserved Slots
  • Made YAML config options case-insensitive
  • Added ServerMod build version identifier, ServerMod and Smod2 have separate build version identifiers
  • Added build identifier to sm_tracking
  • Added role support for server_command_whitelist (for example, "owner, admin, moderator"), this doesn't work with the override password
  • Added GetRankName and PlayerId to Player in the Smod2 API
  • Fix RA Server Commands not outputting information to people not whitelisted to run commands
  • Implemented new Items, Roles, and DamageTypes
  • Use better player count listing (hopefully won't break?), this should now update when players are connecting too
  • Extend the time limit for authentication to 20 seconds (should be more than enough time)
  • Added more info to CLASSLIST command
  • Added SCP-939 HP and count config options (scp939_53_disable, scp939_89_disable, scp939_53_amount, scp939_89_amount, scp939_53_hp, and scp939_89_hp)
  • Made initial listing use ServerMod variable parsing (didn't do this before)
  • Added sm_floating_items_everyone config option, defaults to false
  • Added sm_floating_items_steamids config options, a list of SteamIDs of player's to make their items float

ServerMod 3.1.5

25 Jun 07:17
Compare
Choose a tag to compare
ServerMod 3.1.5 Pre-release
Pre-release

-- THIS RELEASE HAS BEEN REMOVED DUE TO ISSUES --

  • Change OnSetSCPAmount to OnSetSCPConfig
  • Add Role to PlayerSetRoleEvent
    You can change the role with the event now.
  • Add event OnRoundRestart
  • Add event OnDecontaminate
  • Add event OnSetServerName
  • Add API Map.WarheadDetonated
  • Add API Map.LCZDecontaminated
  • Add API Player.GetGodmode
  • Add API Player.SetGodmode
  • Add config "decontamination_time"
    Default value: 11.74
  • Add config "pd_random_exit_rids"
  • Remove config "pd_random_exit" and "pd_random_exit_ignore_rids"
  • Fix bind_ip
  • Fix and improve Reserved Slots

ServerMod 3.1.4

17 Jun 08:28
Compare
Choose a tag to compare
  • Add Map.Shake()
  • Add OnWaitingForPlayers event
  • Add OnPocketDimensionEnter event
  • Add OnSetSCPAmount event
  • Fix OnDecideTeamRespawnQueue event
  • Fix grenades (probably)
  • Fix endround not working and Smod2.EndRound not working
  • Do some voice chat tweaks
  • Bump up dissoance internal packet buffers to 4096
  • Set Network max sent message queue to 2048
  • Added debug command DC, prints network and dissonance info.

ServerMod 3.1.3

13 Jun 19:24
Compare
Choose a tag to compare

Re-uploaded to fix issue with the new "bind_ip" option not working on dedicated servers.

  • Updated for silent game update that was released today. You must update your server before using this.

ServerMod 3.1.2

13 Jun 12:49
Compare
Choose a tag to compare
  • Add GRENADE command, usage: grenade will spawn grenades at the feet of all players that explode in seconds.
  • Add a fixed check to TPROOM cmd for the following rooms: "pocket" -> pocket dimension, "intercom" -> intercom speaking area
  • Fix 106 containment for real this time hopefully maybe probably.
  • make 106 pocket cleanup work for both UPPERCASE and LOWERCASE settings, i recommend swapping to uppercase as this is the setting the base game uses and we will prob strip this change out in a few versions.
  • Readded Round restarting message so multiadmin function properly
  • Hopefully fix grenades

ServerMod 3.1.1

12 Jun 15:02
Compare
Choose a tag to compare
  • Readd config "pd_exit_count"
  • Add config "pd_refresh_exit"
  • Add config "pd_random_exit_ignore_rids", room ids that will not be teleported to. see ROOMs command.
  • 106 random exit is back to normal game behaviour by default, you can reenable it with pd_random_exit: true
  • SCP HP defaults will now default to the game values instead of being hard coded
  • added TPROOM <player/s> command
  • Fix 106 not being able to be contained
  • Fix 106 not being able to teleport
  • Fix 106 dying when nuke goes off on surface
  • sm_tracking tag in the servername is now set to an invisible colour. This means it shouldnt appear even if your text is really big.

Note: you dont need to update Smod2.dll for this release.

While you're here,

We would really appreciate if you turn sm_tracking on. As part of the T&C of having a official server you have to indicate if youre running modifications. This also helps us track down users who are not running servermod so that we can check if a bug exists with in our domain or the games domain. We also like stats :) (server mod currently accounts for between 60-70% of official servers with tracking on).

We would also appreciate it if server owners could pass bugs on to us, we didn't hear about any of these bugs through our discord or github :(. Posting github issues is preferred and letting us know about these bugs lets us fix them faster and pass them onto the game if needed.

Feel free to even get your users to report issues directly to us, or at least encourage your community to report issues to you and then pass them on to us.

ServerMod 3.1.0

10 Jun 22:40
a27931e
Compare
Choose a tag to compare

Re-uploaded to fix "New round has been started." spam when the round starts and to fix SCP-914 config options

  • Updated for game version 6.2.0.e
  • Add Map.GetBlastDoorPoints()
  • Add Map.GetDoors()
  • Add GetPocketDimensionExits()
  • Add Door API
  • Add PocketDimensionExit API
  • Add PlayerPocketDimensionExit Event
  • Add a config "pd_random_exit"
    If true, players will be teleported to a random place after escaping from Pocket Dimension.
  • Stop stack overflow when setting role inside set role event
  • Update door access event to use the new Door API.
  • Fix round not being set on RoundEnd and CheckRoundEnd
  • GiveItem now returns an Item object
  • Add void SetCurrentItem(ItemType type);
  • Add public abstract int GetCurrentItemIndex();
  • Add public abstract void SetCurrentItemIndex(int index);
  • Add bool HasItem(ItemType type);
  • Add int GetItemIndex(ItemType type);
  • Add spawnTeleport parameter to ChangeRole (default true)

ServerMod 3.0.0

06 Jun 14:38
Compare
Choose a tag to compare

API Changes:

  • Team enum has been renamed to Team
  • Classes enum has been renamed to Role
  • TeamClass object has been renamed to TeamRole
  • TeamClass.ClassDisallowed field renamed to TeamClass.RoleDisallowed
  • TeamClass.Class field renamed to TeamClass.Role
  • AuthType enum moved to API namespace
  • Player.Class has been renamed to Player.Role
  • Player.SetRole has been renamed SetRank
  • Player.ChangeClass has been renamed to Player.ChangeRole
  • Player.Role renamed to Player.UserRank
  • AuthType enum now has two values: (SERVER, GAMESTAFF) changed from (PASSWORD, STAFF, PROJECT_OWNER)
  • Add new UserGroup API to support the new custom user groups in config_remoteadmin.txt
  • New Map API
  • Server.GetItems moved to Map.GetItems
  • Add Map.GetRandomSpawnPoint(Role role) method, returns a vector of a random spawn point for that role.
  • Add Map.GetSpawnPoints(Role role) method, gets all spawn points for that role.
  • Add Map.GetElevatorTeleportPoints()
  • Add Player.GetCurrentItem
  • Add new ROUND END STATUS enum.
  • Add Player.RunCommand(cmd, args)

Event system:

  • Events have been reworked, they now use Objects are arguments, no more out variables.
  • unimplemented events have been stripped from Smod2
  • Team/Role assignment events updated to reflect new name and moved to PlayerEvents
  • Nickname change event moved to PlayerEvents
  • ALL remaining event handlers have been renamed to have Handler in their name.
  • All event handlers now exist in the Smod2.EventHandlers namespace, all Events exist in the Smod2.Event namespace
  • Misc Event handlers file renamed to EnvironmentEventHandlers, warhead event handlers moved there.
  • Event handler registration now has a simpler registration command plugin.AddEventHandlers(new EventHandler());

Events:

  • Warhead start / stop now has a Player parameter in the event (NOTE: this can be null)
  • Warhead start / stop can be cancelled.
  • AdminQueryEvent now has additional fields: Output, Handled, Successful.
  • rename AssignTeam event to InitialTeamAssignment event to reduce confusion (it only gets called once at the start of the round)
  • Add Status to Round End Event
  • New Pickup item event.
  • New Drop item event.
  • New Player Check Escape event.
  • New On Spawn event.
  • New Door Access Event.
  • New Team Respawn event.
  • New On Set Role Max HP event.
  • New On Intercom event.
  • New Check For Round End event

Plugin System:

  • Plugins will no longer load if their MAJOR and MINOR version does not match Smod2 version (not servermod, the actual Smod2.dll)
  • better handling for the at "System.Reflection.Assembly:GetTypes (bool)" error when using outdated Smod2/plugin
  • Plugins now have an OnDisable event that will be called on Server shutdown (if not forced closed or crashed
  • Plugins can now have their own directory instead of just being a DLL, this directory can include a dependency folder to load other DLLs.
  • Add sm_plugin_path to config to specify plugin location

Command System:

  • Commands now need to return a string array as its output.
  • Commands no longer parse an CommandManager, instead parses a sender.
  • remote admin console command will now output to remote admin.

Commands:

  • New PARROT command, will repeat anything you type into it.
  • New PLUGINMANAGER command (PM alias), usage: pm [(enable|disable|commands) <plugin/s>][list (all|enabled|disabled)]
  • New ROOMPOS command, will print all rooms tagged with a roomid and their position.

ServerMod 2.2.1

29 May 01:40
1801859
Compare
Choose a tag to compare
  • Re-added the ability to set groups in Player::SetRole().
  • RE-RELEASED: To fix an ordering issue with Player::SetRole() that resulted in the group's default title and color overriding SetRole()'s title and color.

ServerMod 2.2.0

28 May 22:36
Compare
Choose a tag to compare

Re-uploaded to fix config case-sensitivity

  • Fixed ConfigFile causing errors
  • Fixed "port_queue" not using the config
  • Fixed SCP-914 and made it use more Smod2 API
  • Replaces \n with new line char in config options (use this for server names and such)
  • Added more info to the weaponlist command
  • Implemented changed damage types
  • Add disconnect with message, health and ammo APIs
  • Added FACILITYGUARD_HP config option
  • Added config options dedicated_slot_location and dedicated_slot_file_name