Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various changes I have needed #2153

Closed
wants to merge 345 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
345 commits
Select commit Hold shift + click to select a range
a87cf97
Fix NW
louis1706 Oct 8, 2023
99bfa79
FUCK that so dumb
louis1706 Oct 8, 2023
90bcaff
nah, cringe logic
IRacle1 Oct 8, 2023
73d622f
:)
IRacle1 Oct 8, 2023
4474c5d
Merge branch 'dev' into Fix-Bug-than-Grenade-do-not-make-damage-corre…
louis1706 Oct 9, 2023
458f533
Merge branch 'dev' into Fix-DroppingScp330Event-Desync-client-candy
louis1706 Oct 9, 2023
c5b7d1a
Update Consuming.cs
louis1706 Oct 9, 2023
b7cafa7
fix
NotIntense Oct 9, 2023
80d4a78
Update
NotIntense Oct 9, 2023
5a493ed
Merge branch 'more-ability-extensions' into dev
joker-119 Oct 9, 2023
d308d09
Merge branch 'fix-room-position-methods' into dev
joker-119 Oct 9, 2023
d203b28
Merge branch 'small-inventory-fix' into dev
joker-119 Oct 9, 2023
c08c16d
Merge branch 'make-npcs-not-show-on-player-count' into dev
joker-119 Oct 9, 2023
564b6a4
u
IRacle1 Oct 10, 2023
fed2fac
Merge branch 'dev' into Fix-Bug-than-Grenade-do-not-make-damage-corre…
louis1706 Oct 10, 2023
8ccc2ed
Merge branch 'dev' into EnableEffect-should-have-intensity-argument
louis1706 Oct 10, 2023
73141ac
Fix
louis1706 Oct 11, 2023
3ffbd53
I will re add setter later when i found a good way to do them
louis1706 Oct 11, 2023
d02f8f9
Merge branch 'dev' into Scp079Role-fix
louis1706 Oct 11, 2023
528b425
Merge branch 'dev' into ReworkingScp079Transpiller
louis1706 Oct 11, 2023
24bd5e8
Merge branch 'dev' into Scp106ReworkTranspiller
louis1706 Oct 11, 2023
dd3d535
Revert "NetherCode"
louis1706 Oct 11, 2023
0cd64fe
will add this later
louis1706 Oct 11, 2023
e427dec
RemoveError
louis1706 Oct 11, 2023
d4cfa93
Remove Error
louis1706 Oct 11, 2023
2042b37
Update ZoneBlackoutEventArgs.cs
louis1706 Oct 11, 2023
d2908b4
Fix error
louis1706 Oct 11, 2023
68a0b25
Space
louis1706 Oct 11, 2023
d5a6008
Bruh
louis1706 Oct 11, 2023
7116059
No Fix
louis1706 Oct 11, 2023
800277d
Fix ILCode Error
louis1706 Oct 11, 2023
a12c6bd
Callvirt
louis1706 Oct 11, 2023
df6a951
No needed it's not bool Prefix
louis1706 Oct 11, 2023
3ec3d38
Failed instead of return
louis1706 Oct 12, 2023
32ed9dd
CanScp049SenseTutorial Patch
louis1706 Oct 12, 2023
f558661
miss register event
louis1706 Oct 12, 2023
fecc678
.
louis1706 Oct 12, 2023
7bf7574
Stuff I needed
joker-119 Oct 13, 2023
d5bd9e3
Fix typos
NaoUnderscore Oct 13, 2023
82673ac
Merge branch 'dev' into EnableEffect-should-have-intensity-argument
louis1706 Oct 13, 2023
98c4b35
DecontaminationFeatures
louis1706 Oct 14, 2023
d20376e
it's also global when final
louis1706 Oct 14, 2023
0a5b883
Fix
louis1706 Oct 14, 2023
19d03bc
LazyFix
louis1706 Oct 14, 2023
ad7e5a5
0
louis1706 Oct 14, 2023
6d4431e
Obsolete
louis1706 Oct 14, 2023
49f3697
Merge branch 'dev' into dev
louis1706 Oct 15, 2023
4538343
better
IRacle1 Oct 15, 2023
9c9a321
Merge branch 'dev' into somechanges
IRacle1 Oct 15, 2023
3caacc9
Update DecontaminationState.cs
louis1706 Oct 15, 2023
b27326f
SendStaffMessage
louis1706 Oct 18, 2023
b237a59
Idk if this is needed
louis1706 Oct 18, 2023
342ed8a
things
joker-119 Oct 19, 2023
10f7f5a
Merge remote-tracking branch 'origin/dev' into dev
joker-119 Oct 19, 2023
b3e99fe
RemoveVersionChange and NpcPlayerCountInFavor
louis1706 Oct 19, 2023
fa9f125
autommatically find exiled version
louis1706 Oct 19, 2023
2a4de86
Merge branch 'dev' into AutomaticFind-ExiledVersion
Thundermaker300 Oct 19, 2023
1f4ec7a
Merge branch 'dev' into AutomaticFind-ExiledVersion
louis1706 Oct 19, 2023
f0f8aa5
Update CustomRole.cs
louis1706 Oct 19, 2023
b336974
Merge branch 'dev' into somechanges
louis1706 Oct 20, 2023
f0ba294
Fix Crash null string
louis1706 Oct 21, 2023
3dce27e
Fix ILError
louis1706 Oct 22, 2023
a5c6c30
Fix Skill Issue from someone else
louis1706 Oct 22, 2023
53da193
Obsolete value instead of deleting them
louis1706 Oct 23, 2023
7e9cbd6
doc
louis1706 Oct 23, 2023
28a3404
Merge branch 'dev' into dev
joker-119 Oct 23, 2023
2c984cf
Merge pull request #1 from louis1706/pr2153-PRRequest
joker-119 Oct 23, 2023
32a5102
Merge branch 'dev' into EnableEffect-should-have-intensity-argument
louis1706 Oct 23, 2023
26c6f66
Merge branch 'AutomaticFind-ExiledVersion' into Exiled8.3
louis1706 Oct 24, 2023
253e075
Merge branch 'LazyFix' into Exiled8.3
louis1706 Oct 24, 2023
f312d00
Merge branch 'dev' into DecontaminationAPI
louis1706 Oct 24, 2023
2ecbb4e
Merge branch 'DecontaminationAPI' into Exiled8.3
louis1706 Oct 24, 2023
6295a11
Merge branch 'EnableEffect-should-have-intensity-argument' into Exile…
louis1706 Oct 24, 2023
e49dc4f
Merge branch 'Fix-Bug-than-Grenade-do-not-make-damage-correctly' into…
louis1706 Oct 24, 2023
056adf9
Merge branch 'dev' into Fix-Bug-than-Grenade-do-not-make-damage-corre…
louis1706 Oct 24, 2023
2d985ba
Merge remote-tracking branch 'origin/Fix-DroppingScp330Event-Desync-c…
louis1706 Oct 24, 2023
0c356b3
Merge branch 'Scp106ReworkTranspiller' into Exiled8.3
louis1706 Oct 24, 2023
82a1cd9
Merge branch 'Scp079Role-fix' into Exiled8.3
louis1706 Oct 24, 2023
7548440
.
louis1706 Oct 24, 2023
1a6249e
DisableCustomConst
louis1706 Oct 24, 2023
31f955f
Merge branch 'Scp106ReworkTranspiller' into Exiled8.3
louis1706 Oct 24, 2023
2b1ab05
.
louis1706 Oct 24, 2023
12d5c7c
Merge branch 'dev' into SendStaffMessage
louis1706 Oct 24, 2023
d359369
.
louis1706 Oct 24, 2023
71cd44e
Merge branch 'Other-Transpiler-Fix' into Exiled8.3
louis1706 Oct 24, 2023
30aa880
Merge branch 'SendStaffMessage' into Exiled8.3
louis1706 Oct 24, 2023
9e0fda6
Merge branch 'DecontaminationAPI' into Exiled8.3
louis1706 Oct 24, 2023
12d6430
Fix
louis1706 Oct 24, 2023
bda1def
Merge branch 'Scp106ReworkTranspiller' into Exiled8.3
louis1706 Oct 24, 2023
4423850
Fix doc
louis1706 Oct 24, 2023
1314105
Merge branch 'EnableEffect-should-have-intensity-argument' into Exile…
louis1706 Oct 24, 2023
30af5cb
Merge branch 'dev' into dev
joker-119 Oct 24, 2023
c62e414
Merge branch 'Exiled8.3' into dev
louis1706 Oct 24, 2023
a357a4e
Merge pull request #62 from NotIntense/dev
louis1706 Oct 24, 2023
6f457a7
not needed
louis1706 Oct 24, 2023
d706541
Merge branch 'pr/2136' into Exiled8.3
louis1706 Oct 24, 2023
01a4c2d
Merge pull request #63 from IRacle1/somechanges
louis1706 Oct 24, 2023
1819df1
Merge branch 'Fix-Bug-than-Grenade-do-not-make-damage-correctly' into…
louis1706 Oct 24, 2023
9632cd7
Revert "Fix UsedItem event not being called (#2163)"
louis1706 Oct 24, 2023
babec0e
Merge branch 'revert-2163-UsedItemFixNotCall' into Exiled8.3
louis1706 Oct 24, 2023
bb19b8e
Merge branch 'dev' into somechanges
louis1706 Oct 24, 2023
f840f13
Fix
louis1706 Oct 24, 2023
2b73b47
Merge branch 'dev' into Scp106ReworkTranspiller
louis1706 Oct 24, 2023
3932aa3
Merge branch 'dev' into Scp049ReworkingTranspiler
louis1706 Oct 24, 2023
10d0f5f
.
louis1706 Oct 24, 2023
e08ae84
Merge branch 'Scp049ReworkingTranspiler' into Exiled8.3
louis1706 Oct 24, 2023
389af2d
Merge branch 'Fix-DroppingScp330Event-Desync-client-candy' into Exile…
louis1706 Oct 24, 2023
a01d702
Merge branch 'ReworkingScp079Transpiller' into Exiled8.3
louis1706 Oct 24, 2023
5e0dd78
Implement Scp0492.Conssumed
louis1706 Oct 24, 2023
497d1fd
Implement Scp0492.Conssumed
louis1706 Oct 24, 2023
1b95fe9
Merge branch 'Scp049ReworkingTranspiler' into Exiled8.3
louis1706 Oct 24, 2023
9b690c9
Few Fix
louis1706 Oct 24, 2023
09c36e0
Merge branch 'Scp049ReworkingTranspiler' into Exiled8.3
louis1706 Oct 24, 2023
ace9aac
Fix Item always being null
louis1706 Oct 25, 2023
da79ede
Merge branch 'dev' into Fix-CancelledItemEvent
louis1706 Oct 25, 2023
ddd2f98
Merge branch 'Fix-CancelledItemEvent' into Exiled8.3
louis1706 Oct 25, 2023
583faa4
.
louis1706 Oct 25, 2023
2fade3e
Merge branch 'Fix-CancelledItemEvent' into Exiled8.3
louis1706 Oct 25, 2023
568d1b5
FixCanScp049SenseTutorial
louis1706 Oct 25, 2023
be1f5cd
Merge branch 'Scp106ReworkTranspiller' into Exiled8.3
louis1706 Oct 25, 2023
235174b
Merge branch 'dev' into Exiled8.3
louis1706 Oct 25, 2023
e148162
Merge branch 'dev' into ReworkingScp079Transpiller
louis1706 Oct 26, 2023
5eb154b
Hurt
louis1706 Oct 26, 2023
5712ed8
Merge branch 'HurtedEvent' into Exiled8.3
louis1706 Oct 26, 2023
79f7305
SCP:SL 13.3
louis1706 Oct 27, 2023
317a62d
Doc (#2177)
louis1706 Oct 27, 2023
74f72ae
Merge branch 'Exiled8.3' into halloween-2023
louis1706 Oct 27, 2023
067db4e
SCP:SL 13.3
louis1706 Oct 27, 2023
9e630ef
Merge branch 'Scp049ReworkingTranspiler' into Exiled8.3
louis1706 Oct 27, 2023
ac5cb61
Merge branch 'Exiled8.3' into halloween-2023
louis1706 Oct 27, 2023
99e836c
Merge branch 'halloween-2023' of https://github.com/Exiled-Team/EXILE…
louis1706 Oct 27, 2023
82f8148
Merge branch 'Fix-YamatoSkillIssue' into Exiled8.3
louis1706 Oct 27, 2023
a516ef8
Merge branch 'FixCrashShowHint(null)' into Exiled8.3
louis1706 Oct 27, 2023
0d3861c
Merge branch 'ReworkingScp079Transpiller' into Exiled8.3
louis1706 Oct 27, 2023
0b398e3
Merge branch 'Exiled8.3' into halloween-2023
louis1706 Oct 27, 2023
1efab6d
Fix DisruptorHitreg.ServerPerformShot Transpiler
louis1706 Oct 27, 2023
960f16b
Merge branch 'Fix-DisruptorHitreg.ServerPerformShot-Transpiler' into …
louis1706 Oct 27, 2023
169ee71
Fix Scp330Interobject transpiler
louis1706 Oct 27, 2023
d195478
Merge branch 'Fix-Scp330Interobject-Transpiler' into halloween-2023
louis1706 Oct 27, 2023
36ecbf5
Fix FirearmRequest Received - Transpiler
louis1706 Oct 27, 2023
cf1f99a
Merge branch 'Fix-FirearmRequest-Received---Transpiler' into hallowee…
louis1706 Oct 27, 2023
3be4a6b
New API for SCP Halloween
louis1706 Oct 27, 2023
f7587cf
Updating Documentation Again
louis1706 Oct 27, 2023
9f904df
Fixing some part of the code
louis1706 Oct 27, 2023
877b5fa
Update Exiled.Events/Patches/Events/Player/Hurting.cs
louis1706 Oct 27, 2023
e82129f
Bruh
louis1706 Oct 27, 2023
0aca732
Merge branch 'HurtedEvent' of https://github.com/louis1706/EXILED int…
louis1706 Oct 27, 2023
9697b51
Merge branch 'HurtedEvent' into Exiled8.3
louis1706 Oct 27, 2023
64cd760
Merge branch 'dev' into Scp049ReworkingTranspiler
louis1706 Oct 27, 2023
90a7dbb
Fix
louis1706 Oct 27, 2023
4a378cf
Merge branch 'HurtedEvent' into Exiled8.3
louis1706 Oct 27, 2023
480b409
1st try
louis1706 Oct 27, 2023
bf05f0c
Merge branch 'Scp049ReworkingTranspiler' into Exiled8.3
louis1706 Oct 27, 2023
b8a6008
Fixed crash
louis1706 Oct 27, 2023
8ab7a47
Callvirt & Fix yamato moment
louis1706 Oct 27, 2023
b74ac56
Merge branch 'ReworkingScp079Transpiller' into Exiled8.3
louis1706 Oct 27, 2023
e400ece
Merge branch 'Scp049ReworkingTranspiler' into Exiled8.3
louis1706 Oct 27, 2023
b63a27d
Merge branch 'Exiled8.3' into halloween-2023
louis1706 Oct 27, 2023
43194fd
oups
louis1706 Oct 27, 2023
0ad71d2
Merge branch 'Scp049ReworkingTranspiler' into Exiled8.3
louis1706 Oct 27, 2023
3815b1e
.
louis1706 Oct 27, 2023
5a92957
Merge branch 'Scp049ReworkingTranspiler' into Exiled8.3
louis1706 Oct 27, 2023
e50d6c7
Fuck
louis1706 Oct 27, 2023
96a4680
Fix
louis1706 Oct 27, 2023
44eefac
Merge branch 'somechanges' of https://github.com/IRacle1/EXILED into …
louis1706 Oct 27, 2023
5a763d1
Merge branch 'dev' into somechanges
louis1706 Oct 27, 2023
b8502d0
Merge branch 'somechanges' into Exiled8.3
louis1706 Oct 27, 2023
03ef26f
Merge branch 'Exiled8.3' into halloween-2023
louis1706 Oct 27, 2023
14149ce
Adding Scp3114 Subroutine
louis1706 Oct 27, 2023
d43ada7
.
louis1706 Oct 27, 2023
147472e
Merge branch 'Exiled8.3' into halloween-2023
louis1706 Oct 27, 2023
531a919
.
louis1706 Oct 27, 2023
6618206
Missing features for halloween
louis1706 Oct 27, 2023
7838133
Update Version
louis1706 Oct 28, 2023
2484381
Flashlight can now contain Lantern
louis1706 Oct 28, 2023
6d2f45d
ChaosTargetCounter
Misfiy Oct 28, 2023
a2d4540
Merge branch 'pr/2179' into halloween-2023
louis1706 Oct 28, 2023
7fe79e3
Map::PrismaticCloud
louis1706 Oct 28, 2023
9fc5eb3
Network_chaosTargetCount
Misfiy Oct 28, 2023
7745b36
Add Scp3114 to RoleExtensions
Thundermaker300 Oct 28, 2023
ce7742f
i fix this little doc
louis1706 Oct 28, 2023
8cc368c
DON'T MERGE it's not FINISH (#2180)
louis1706 Oct 28, 2023
c60f298
Merge branch 'pr/2179' into halloween-2023
louis1706 Oct 28, 2023
900902d
Fast fix light
louis1706 Oct 28, 2023
c65ca61
Bump Version
louis1706 Oct 28, 2023
9f4482a
fix playerstat (#2181)
IkaOverride Oct 28, 2023
87271cd
Update RoundEnd.cs
Misaka-ZeroTwo Oct 29, 2023
81cada5
Update EXILED.props
Misaka-ZeroTwo Oct 29, 2023
11e1a29
Update RoundEnd.cs
Misaka-ZeroTwo Oct 29, 2023
3bfda10
Update EXILED.props
Misaka-ZeroTwo Oct 29, 2023
3459d32
fix
IRacle1 Oct 29, 2023
233eaed
Fixes (#2184)
IRacle1 Oct 29, 2023
2ca9c4a
Bump Version
louis1706 Oct 29, 2023
8fc8231
`MaxHealth` fix (#2185)
IRacle1 Oct 29, 2023
bf67f0f
WTF How that fix duration effect ??!!??
louis1706 Oct 29, 2023
8ed4804
Fix KickingEvent idk why it's could be null
louis1706 Oct 29, 2023
304ea8b
Scp3114DamageHandler is not ScpDamage ???!!!??
louis1706 Oct 29, 2023
b087428
Bump Version 8.3.6
louis1706 Oct 29, 2023
37f3966
Update doc
louis1706 Oct 29, 2023
136788a
Someone forgot about the marshmallows >:( (#2189)
Misfiy Oct 30, 2023
2801667
Fix Marshmallow
louis1706 Oct 30, 2023
39a5f2f
Fix NRE
louis1706 Oct 30, 2023
9c1f6fd
Add SCP-3114 properties, fix documentation
Thundermaker300 Oct 30, 2023
37fe47b
Missing SilentDamage
louis1706 Oct 30, 2023
3a50b0d
Merge branch 'halloween-2023' of https://github.com/Exiled-Team/EXILE…
louis1706 Oct 30, 2023
51b7a1b
Merge branch 'dev' into dev
joker-119 Oct 31, 2023
1fb7c0b
Merge remote-tracking branch 'origin/halloween-2023' into dev
joker-119 Oct 31, 2023
61b9dc3
yes
joker-119 Oct 31, 2023
e95cbf8
Fix kicking event
Misaka-ZeroTwo Oct 31, 2023
858ebae
Merge branch 'halloween-2023' of https://github.com/Exiled-Team/EXILE…
Misaka-ZeroTwo Oct 31, 2023
d6a805b
Version Bump
Misaka-ZeroTwo Oct 31, 2023
146b0d5
Fix thanks IRacle
louis1706 Oct 31, 2023
81aeb5b
Fix documentation
louis1706 Oct 31, 2023
c0618e3
Add Get & Sets for the warningTimeSeconds method & adding more proper…
SnivyFilms Nov 1, 2023
c5041e8
Fix Rpc and WriteExtensions dictionary (#2199)
sanyae2439 Nov 1, 2023
f21540e
code style
Misaka-ZeroTwo Nov 1, 2023
c0689f0
whut
louis1706 Nov 1, 2023
d9832ab
Merge branch 'halloween-2023' of https://github.com/Exiled-Team/EXILE…
louis1706 Nov 1, 2023
2df7739
Fix stamina bug
louis1706 Nov 1, 2023
a31d69d
No ArgumentOutOfRangeException for this
louis1706 Nov 1, 2023
1476660
Merge branch 'halloween-2023' into dev
joker-119 Nov 1, 2023
d32fc89
fix Metal
louis1706 Nov 1, 2023
e01ff0b
Jailbird/firearm fix (#2187)
IRacle1 Nov 1, 2023
78a3c2e
Nw skill issue fixed jailbird crash (#2200)
louis1706 Nov 1, 2023
9acfb82
Documentation fix
Thundermaker300 Nov 2, 2023
2451f1f
Bump Version
louis1706 Nov 2, 2023
587e6bb
Fix Server.Host not being able to deal Damage with Grenade
louis1706 Nov 3, 2023
b315890
(there no change but it's will make it work when NW will make it corr…
louis1706 Nov 3, 2023
b03bbc4
Fix TryAddCandy
louis1706 Nov 3, 2023
c404084
Fix than ConfirmAcqusition need to be done after some tick
louis1706 Nov 3, 2023
b58705a
Bump Version
louis1706 Nov 3, 2023
476baa5
Map.IsHubertSky
louis1706 Nov 3, 2023
019760a
missing doc
louis1706 Nov 3, 2023
da06540
ItemType.AntiSCP207 was missing for Usable object
louis1706 Nov 3, 2023
006b1c8
Checking if player is connected
louis1706 Nov 3, 2023
11552a8
Fix TogglingFlashlight to work with Lantern
louis1706 Nov 5, 2023
cd645a8
Fixes (#2205)
IRacle1 Nov 8, 2023
156b4d5
Add Scp3114Role.VoiceLines and Scp3114Role.PlaySound()
Thundermaker300 Nov 9, 2023
b9a3edd
Merge branch 'halloween-2023' into dev
joker-119 Nov 9, 2023
834faf7
Merge branch 'dev' into dev
joker-119 Nov 13, 2023
fa1e061
yes
joker-119 Nov 13, 2023
f850a87
ok
joker-119 Nov 13, 2023
d8472cd
Merge branch 'dev-hal' into dev
joker-119 Nov 13, 2023
2f36afd
???
joker-119 Nov 13, 2023
8f6c0ed
Merge branch 'dev-joker' into dev-hal
joker-119 Nov 13, 2023
1ccd283
Merge branch 'dev-2' into dev-hal
joker-119 Nov 13, 2023
6119f36
yes
joker-119 Nov 13, 2023
b8a3213
Merge branch 'dev' into dev-joker
joker-119 Nov 22, 2023
e7e717d
Someone's an idiot
joker-119 Nov 22, 2023
0e8cd78
Someone else is also retarded
joker-119 Nov 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Exiled.API/Enums/Side.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public enum Side
/// <summary>
/// SCP team. Same as <see cref="Team.SCPs"/>.
/// Contains all SCP-related roles: <see cref="RoleTypeId.Scp049"/>, <see cref="RoleTypeId.Scp0492"/>, <see cref="RoleTypeId.Scp079"/>, <see cref="RoleTypeId.Scp096"/>,
/// <see cref="RoleTypeId.Scp106"/>, <see cref="RoleTypeId.Scp173"/>, and <see cref="RoleTypeId.Scp939"/>.
/// <see cref="RoleTypeId.Scp106"/>, <see cref="RoleTypeId.Scp173"/>, <see cref="RoleTypeId.Scp939"/>, and <see cref="RoleTypeId.Scp3114"/>.
/// </summary>
Scp,

Expand Down
2 changes: 1 addition & 1 deletion Exiled.API/Extensions/MirrorExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public static void SetName(this Player target, Player player, string name)
/// <param name="room">Room to modify.</param>
/// <param name="target">Only this player can see room color.</param>
/// <param name="multiplier">Light intensity multiplier to set.</param>
[Obsolete("This features has been remove by NW", true)]
[Obsolete("This features has been removed by NW", true)]
public static void SetRoomLightIntensityForTargetOnly(this Room room, Player target, float multiplier)
{
}
Expand Down
2 changes: 1 addition & 1 deletion Exiled.API/Features/DamageHandlers/ScpDamageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Exiled.API.Features.DamageHandlers
using Enums;

using Extensions;

using PlayerRoles.PlayableScps.Scp3114;
using PlayerStatsSystem;

using BaseHandler = PlayerStatsSystem.DamageHandlerBase;
Expand Down
2 changes: 1 addition & 1 deletion Exiled.API/Features/Hazards/TantrumHazard.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// <copyright file="TantrumHazard.cs" company="Exiled Team">
// Copyright (c) Exiled Team. All rights reserved.
// Licensed under the CC BY-SA 3.0 license.
Expand Down
19 changes: 8 additions & 11 deletions Exiled.API/Features/Npc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ namespace Exiled.API.Features
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;

using CommandSystem;

Expand Down Expand Up @@ -127,7 +128,7 @@ public Npc(GameObject gameObject)
/// </summary>
/// <param name="name">The name of the NPC.</param>
/// <param name="role">The RoleTypeId of the NPC.</param>
/// <param name="id">The player ID of the NPC.</param>
/// <param name="id">The Network ID of the NPC. If 0, one is made.</param>
/// <param name="userId">The userID of the NPC.</param>
/// <param name="position">The position to spawn the NPC.</param>
/// <returns>The <see cref="Npc"/> spawned.</returns>
Expand All @@ -148,17 +149,15 @@ public static Npc Spawn(string name, RoleTypeId role, int id = 0, string userId
Log.Debug($"Ignore: {e}");
}

if (RecyclablePlayerId.FreeIds.Contains(id))
if (!RecyclablePlayerId.FreeIds.Contains(id) && RecyclablePlayerId._autoIncrement >= id)
{
RecyclablePlayerId.FreeIds.RemoveFromQueue(id);
}
else if (RecyclablePlayerId._autoIncrement >= id)
{
RecyclablePlayerId._autoIncrement = id = RecyclablePlayerId._autoIncrement + 1;
Log.Warn($"{Assembly.GetCallingAssembly().GetName().Name} tried to spawn an NPC with a duplicate PlayerID. Using auto-incremented ID instead to avoid issues..");
id = new RecyclablePlayerId(false).Value;
}

FakeConnection fakeConnection = new(id);
NetworkServer.AddPlayerForConnection(fakeConnection, newObject);

try
{
npc.ReferenceHub.authManager.UserId = string.IsNullOrEmpty(userId) ? $"Dummy@localhost" : userId;
Expand All @@ -172,7 +171,7 @@ public static Npc Spawn(string name, RoleTypeId role, int id = 0, string userId
Dictionary.Add(newObject, npc);

Timing.CallDelayed(
0.3f,
0.5f,
() =>
{
npc.Role.Set(role, SpawnReason.RoundStart, position is null ? RoleSpawnFlags.All : RoleSpawnFlags.AssignInventory);
Expand All @@ -189,12 +188,10 @@ public static Npc Spawn(string name, RoleTypeId role, int id = 0, string userId
public void Destroy()
{
NetworkConnectionToClient conn = ReferenceHub.connectionToClient;
if (ReferenceHub._playerId.Value <= RecyclablePlayerId._autoIncrement)
ReferenceHub._playerId.Destroy();
ReferenceHub.OnDestroy();
CustomNetworkManager.TypedSingleton.OnServerDisconnect(conn);
Dictionary.Remove(GameObject);
Object.Destroy(GameObject);
}
}
}
}
4 changes: 3 additions & 1 deletion Exiled.API/Features/Pickups/Pickup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public Quaternion Rotation
/// <summary>
/// Gets a value indicating whether this pickup is spawned.
/// </summary>
public bool IsSpawned => NetworkServer.spawned.ContainsValue(Base.netIdentity);
public bool IsSpawned { get; internal set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public bool IsSpawned { get; internal set; }
public bool IsSpawned => NetworkServer.spawned.ContainsValue(Base.netIdentity);


/// <summary>
/// Gets an existing <see cref="Pickup"/> or creates a new instance of one.
Expand Down Expand Up @@ -541,6 +541,7 @@ public void Spawn()
if (!IsSpawned)
{
NetworkServer.Spawn(GameObject);
IsSpawned = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
IsSpawned = true;

}
}

Expand Down Expand Up @@ -571,6 +572,7 @@ public void UnSpawn()
{
if (IsSpawned)
{
IsSpawned = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
IsSpawned = false;

NetworkServer.UnSpawn(GameObject);
}
}
Expand Down
4 changes: 2 additions & 2 deletions Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ public ScpSpawnPreferences.SpawnPreferences ScpPreferences
/// <summary>
/// Gets a value indicating whether or not the player is jumping.
/// </summary>
public bool IsJumping { get; internal set; }
public bool IsJumping => Role is FpcRole fpc && fpc.FirstPersonController.FpcModule.Motor.IsJumping;

/// <summary>
/// Gets the player's IP address.
Expand Down Expand Up @@ -3117,7 +3117,7 @@ public void ChangeEffectIntensity(EffectType type, byte intensity, float duratio
if (TryGetEffect(type, out StatusEffectBase statusEffect))
{
statusEffect.Intensity = intensity;
statusEffect.ServerChangeDuration(duration, true);
statusEffect.ServerChangeDuration(duration, false);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Exiled.CustomItems/API/Features/CustomGrenade.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public override ItemType Type
}

/// <summary>
/// Gets or sets a value indicating whether gets or sets a value that determines if the grenade should explode immediately when contacting any surface.
/// Gets or sets a value indicating whether or not the grenade should explode immediately when contacting any surface.
/// </summary>
public abstract bool ExplodeOnCollision { get; set; }

Expand Down
27 changes: 27 additions & 0 deletions Exiled.CustomRoles/API/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,32 @@ public static void Unregister(this IEnumerable<CustomRole> customRoles)
/// <param name="player">The <see cref="Player"/> to check.</param>
/// <returns>The <see cref="ActiveAbility"/> the <see cref="Player"/> has selected, or <see langword="null"/>.</returns>
public static ActiveAbility? GetSelectedAbility(this Player player) => !ActiveAbility.AllActiveAbilities.TryGetValue(player, out HashSet<ActiveAbility> abilities) ? null : abilities.FirstOrDefault(a => a.Check(player, CheckType.Selected));

/// <summary>
/// Gets all <see cref="PassiveAbility"/>'s the <see cref="Player"/> currently has.
/// </summary>
/// <param name="player">The <see cref="Player"/> to get abilities for.</param>
/// <returns>An <see cref="IEnumerable{T}"/> of <see cref="PassiveAbility"/>s the player has.</returns>
public static IEnumerable<PassiveAbility> GetPassiveAbilities(this Player player)
{
foreach (CustomAbility ability in CustomAbility.Registered)
{
if (ability is PassiveAbility passive && ability.Check(player))
yield return passive;
}
}

/// <summary>
/// Checks to see if a <see cref="Player"/> has a specific <see cref="CustomAbility"/>.
/// </summary>
/// <param name="player">The <see cref="Player"/> to check for the ability.</param>
/// <typeparam name="T">The <see cref="Type"/> of the ability to look for.</typeparam>
/// <returns><see langword="true"/> if the player has the ability, otherwise <see langword="false"/>.</returns>
public static bool HasAbility<T>(Player player)
where T : CustomAbility
{
CustomAbility? ability = CustomAbility.Get(typeof(T));
return ability is ActiveAbility active ? active.Check(player, CheckType.Available) : ability?.Check(player) ?? false;
}
}
}
32 changes: 31 additions & 1 deletion Exiled.CustomRoles/API/Features/ActiveAbility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ public abstract class ActiveAbility : CustomAbility
[YamlIgnore]
public HashSet<Player> SelectedPlayers { get; } = new();

/// <summary>
/// Gets or sets the ability activation message.
/// </summary>
public virtual string? ActivationMessage { get; set; }

/// <summary>
/// Uses the ability.
/// </summary>
Expand All @@ -73,6 +78,19 @@ public void UseAbility(Player player)
Timing.CallDelayed(Duration, () => EndAbility(player));
}

/// <summary>
/// Uses the ability.
/// </summary>
/// <param name="player">The <see cref="Player"/> using the ability.</param>
/// <param name="args">An array of additional arguments.</param>
public void UseAbility(Player player, params object[] args)
{
ActivePlayers.Add(player);
LastUsed[player] = DateTime.Now;
AbilityUsed(player, args);
Timing.CallDelayed(Duration, () => EndAbility(player));
}

/// <summary>
/// Ends the ability.
/// </summary>
Expand Down Expand Up @@ -183,14 +201,17 @@ public virtual bool CanUseAbility(Player player, out string response, bool selec
}

response =
$"You must wait another {Math.Round((usableTime - DateTime.Now).TotalSeconds, 2)} seconds to use {Name}";
$"You must wait another {Math.Round((usableTime - DateTime.Now).TotalSeconds, MidpointRounding.AwayFromZero)} seconds to use {Name}";

return false;
}

/// <inheritdoc />
protected override void AbilityAdded(Player player)
{
if (LastUsed.ContainsKey(player))
LastUsed.Remove(player);

if (!AllActiveAbilities.ContainsKey(player))
AllActiveAbilities.Add(player, new());

Expand Down Expand Up @@ -219,6 +240,15 @@ protected virtual void AbilityUsed(Player player)
{
}

/// <summary>
/// Called when the ability is used.
/// </summary>
/// <param name="player">The <see cref="Player"/> using the ability.</param>
/// <param name="args">The additional arguments.</param>
protected virtual void AbilityUsed(Player player, params object[] args)
{
}

/// <summary>
/// Called when the abilities duration has ended.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion Exiled.CustomRoles/API/Features/CustomAbility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public CustomAbility()
/// </summary>
/// <param name="name">The name of the ability to get.</param>
/// <returns>The ability, or <see langword="null"/> if it doesn't exist.</returns>
public static CustomAbility? Get(string name) => Registered?.FirstOrDefault(r => r.Name == name);
public static CustomAbility? Get(string name) => Registered?.FirstOrDefault(r => r.Name.ToLower() == name);

/// <summary>
/// Gets a <see cref="CustomAbility"/> by type.
Expand Down
Loading