Releases: ServerMod/Smod2
ServerMod 3.9.10
Target Game Version: 10.2.2
Changes since last update:
- Updated to latest base game.
ServerMod 3.9.9
Target Game Version: 10.2.1
Changes since last update:
- Updated to latest base game.
- Overhaul of Door code to match base game changes.
Known issue:
- PlayerDoorAccessEvent currently has not been ported.
ServerMod 3.9.8
Target Game Version: 10.1.3
Changes since last update:
- Updated to latest base game.
ServerMod 3.9.7
Target Game Version: 10.1.2
Changes since last update:
- Updated to latest base game.
ServerMod 3.9.6
Target Game Version: 10.1.1
Re-released an 2020-11-08 11:38:38 AM GMT to fix SModRoom room detection.
Changes since last update:
- Updated to latest base game.
ServerMod 3.9.5
Target Game Version: 10.1.0
Re-released 2020-11-06 8:04:45 AM GMT to fix SMod Rooms returning null position.
Changes since last update:
- Updated to latest base game.
- Changed PlayerShotEvent to use HitboxType enum due to base game change.
- Added GetCurrentRoom() to SmodPlayer.
- Added GetRooms() to SmodMap.
- ZoneType and RoomType enums in Map completely redone to reflect main game changes.
ServerMod 3.9.4
Target Game Version: 10.0.6 (Halloween II)
Re-released an 2020-10-27 10:47:10 PM GMT to fix version string issue.
Changes since last update.
Updated to latest game version.
ServerMod 3.9.3
Target Game Version: 10.0.5 (Halloween)
Re-released 2020-10-25 to fix a small bug when cancelling healing items.
Changes since last update.
Updated to latest game version.
ServerMod 3.9.2
Target Game Version: 10.0.4
Changes since last update.
Backported 049 revive fix
Obsoleted GetGodMode
and SetGodMode
in favor of GodMode
on SmodPlayer
Added ClearInventory()
to SMod Player
Moved broadcast server log to debug mode only to prevent insane spam.
Implemented IEquatable
for SmodItem
and SmodWeapon
so you can do stuff like if(item1 == item2)
Implemented IEquatable
to SmodPlayer
so you can do stuff like if(player1 == player2)
ect
Added new Enum Spawnable
which contains everything that is spawnable through the network server
Added SpawnSpawnable(Spawnable ThingToSpawn, Vector position, Vector rotation, Vector size, bool SpawnRightAway = true)
that returns the object that created, this is on SModMap.
Added fine control to Items and Weapons so it no longer removes the item based only on ItemType
Move SMod debug message for giving starting items to appropriate handler
API change: Now SmodMap::GetIntercomContent
can return null if the content hasn't modified.
Note:
ServerMod no longer overwrites the intercom content by default.
It's also no longer possible to change the content of the custom status.
Generator permission changed to match main game. (From commander to lieutenant)
ServerMod 3.9.1
Target Game Version: 10.0.4
Re-released 2020-09-20 7:12:33 AM GMT to fix missing PlayerDropItemEvent.
Changes since last update.
- Updated to the latest version of the base game.
- Fixed thrownade by moving it to the system that main game uses. (It was completely rewritten by main game devs)
You can use this by doing ThrowGrenade(GrenadeType grenadeType, Vector direction = null, float throwForce = 1f, bool slowThrow = false); - Adds AHP and HP property and deprecated old ways of doing them.
- Migrated SmodPlayer to using the ref hub system.
- Added status effect support.
- New enum of all status effects called StatusEffect
- New class PlayerEffect which contains
- StatusEffect which returns the above enum value of which status effect it is.
- Duration aka how long in seconds is going to last
- Intensity returns 0 if disabled or 1 if enabled (unless its the cola which will return how many stacks are active so if you drink 3 colas this will return 3)
- Disable the effect or enable the effect with duration and the ability to stack duration
- Two methods on SmodPlayer
- GetAllPlayerEffects() List of PlayerEffect
- GetPlayerEffect(StatusEffect effectToReturn) returns status effect from enum value
-Added 3 status effect events. - IEventHandlerDisableStatusEffect - Called whenever a status effect is disabled. Has person, the status effect and allow property.
- IEventHandlerEarlyStatusEffectChange - Called right before the duration is changed when a status effect is changed. Has person, the status effect and allow property.
- IEventHandlerLateStatusEffectChange - Called right AFTER the duration is changed. Has person and the status effect.
- Added stamina to SmodPlayer with a get/set have fun ;)
- Added IEventHandlerPlayerSCP207Use and IEventHandlerPlayerSCP268Use
- Both have player using the SCP, the item in the inventory and Allow.
- 268 event has Cooldown in seconds (get/set)
- All of the grenade events (throwing, explosion and hit player) now are properly called and now support SCP-018.
- Fixes small bug where SCP-106 grabbing people damaged twice.
- Fixes 106 create portal event triggering twice
- Adds ShowHint(string Text, float durationInSeconds = 1f) to SmodPlayer
Known issues
- Class picker modifications have not been ported. Hooks and other modifications around this are missing. Expect base game behavior.