mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-05 20:40:29 -08:00
Disable LR damage manager, mute on death
This commit is contained in:
@@ -108,8 +108,8 @@ public class LastRequestManager(ILRLocale messages, IServiceProvider provider)
|
||||
stats?.Stats.Add(new LRStat());
|
||||
|
||||
basePlugin.RegisterListener<Listeners.OnEntityParentChanged>(OnDrop);
|
||||
VirtualFunctions.CBaseEntity_TakeDamageOldFunc.Hook(OnTakeDamage,
|
||||
HookMode.Pre);
|
||||
// VirtualFunctions.CBaseEntity_TakeDamageOldFunc.Hook(OnTakeDamage,
|
||||
// HookMode.Pre);
|
||||
VirtualFunctions.CCSPlayer_ItemServices_CanAcquireFunc.Hook(OnCanAcquire,
|
||||
HookMode.Pre);
|
||||
}
|
||||
|
||||
@@ -94,6 +94,15 @@ public class MuteSystem(IServiceProvider provider)
|
||||
return HookResult.Continue;
|
||||
}
|
||||
|
||||
[GameEventHandler]
|
||||
public HookResult OnDeath(EventPlayerDeath @event, GameEventInfo info) {
|
||||
var player = @event.Userid;
|
||||
if (player == null || !player.IsReal()) return HookResult.Continue;
|
||||
|
||||
mute(player);
|
||||
return HookResult.Continue;
|
||||
}
|
||||
|
||||
private void unmuteGuards() {
|
||||
foreach (var player in Utilities.GetPlayers()
|
||||
.Where(player => player is {
|
||||
|
||||
Reference in New Issue
Block a user