@@ -96,22 +96,6 @@ public class CustomEventHandler : CustomEventsHandler
9696 public static TranslateConfig TranslateConfig ;
9797 public static SSSSTranslateConfig SSSSTranslateConfig ;
9898 public static CommandTranslateConfig CommandTranslateConfig ;
99-
100- public IEnumerator < float > Scp029InfEffect ( Player player )
101- {
102- while ( true )
103- {
104- yield return Timing . WaitForSeconds ( 1f ) ;
105- if ( ! player . HasEffect < MovementBoost > ( ) )
106- player . EnableEffect < MovementBoost > ( 20 ) ;
107- if ( ! player . HasEffect < Scp1853 > ( ) )
108- player . EnableEffect < Scp1853 > ( 2 ) ;
109- if ( ! player . HasEffect < DamageReduction > ( ) )
110- player . EnableEffect < DamageReduction > ( 15 ) ;
111- if ( player . GetRoleName ( ) != "SCP-029" )
112- yield break ;
113- }
114- }
11599
116100 public override void OnServerWaitingForPlayers ( )
117101 {
@@ -602,8 +586,6 @@ public override void OnServerRoundStarted()
602586 player . EnableEffect < DamageReduction > ( 15 ) ;
603587
604588 player . Health = 120 ;
605-
606- Timing . RunCoroutine ( Scp029InfEffect ( player ) ) ;
607589 } ;
608590 } ) ;
609591 }
@@ -902,7 +884,7 @@ public override void OnScp914ProcessedInventoryItem(Scp914ProcessedInventoryItem
902884 public override void OnPlayerUsedItem ( PlayerUsedItemEventArgs ev )
903885 {
904886 Player player = ev . Player ;
905- var item = ev . Item ;
887+ var item = ev . UsableItem ;
906888
907889 if ( SCP1056Base != null && item == SCP1056Base )
908890 {
@@ -913,9 +895,9 @@ public override void OnPlayerUsedItem(PlayerUsedItemEventArgs ev)
913895
914896 public override void OnPlayerThrewProjectile ( PlayerThrewProjectileEventArgs ev )
915897 {
916- var item = ev . Item ;
898+ var item = ev . ThrowableItem ;
917899
918- if ( SCP1068Base != null && item == SCP1068Base )
900+ if ( SCP1068Base != null && item . Base == SCP1068Base )
919901 {
920902 Server . SendBroadcast ( TranslateConfig . SCP1068UsedBroadcast , 5 , BroadcastFlags . Normal ) ;
921903 Warhead . Shake ( ) ;
@@ -1032,7 +1014,7 @@ public override void OnPlayerSpawned(PlayerSpawnedEventArgs ev)
10321014 public override void OnPlayerShotWeapon ( PlayerShotWeaponEventArgs ev )
10331015 {
10341016 Player player = ev . Player ;
1035- var Weapon = ev . Weapon ;
1017+ var Weapon = ev . FirearmItem ;
10361018 if ( player != null && Config . SavePlayersInfo )
10371019 {
10381020 var pLog = player . GetLog ( ) ;
0 commit comments