Дрд соси мои яйца
This commit is contained in:
@@ -1,30 +1,28 @@
|
|||||||
using Content.Server.Chat.Systems;
|
using Content.Server.Chat.Systems;
|
||||||
using Content.Server.Chemistry.Containers.EntitySystems;
|
|
||||||
using Content.Server.Fluids.EntitySystems;
|
|
||||||
using Content.Shared._Honk.Cunt;
|
using Content.Shared._Honk.Cunt;
|
||||||
using Content.Shared.Chemistry.Components;
|
using Content.Shared.Chemistry.Components;
|
||||||
using Content.Shared.FixedPoint;
|
using Content.Shared.Chemistry.EntitySystems;
|
||||||
using Robust.Shared.Timing;
|
using Content.Shared.Fluids;
|
||||||
|
|
||||||
namespace Content.Server._Honk.Cunt;
|
namespace Content.Server._Honk.Count;
|
||||||
|
|
||||||
|
// ДРД ИДИ НАХУЙ!!!!!!!!!!!!!!!!!!!!!
|
||||||
public sealed class CuntSystem : EntitySystem
|
public sealed class CuntSystem : EntitySystem
|
||||||
{
|
{
|
||||||
[Dependency] private readonly PuddleSystem _puddle = default!;
|
[Dependency] private readonly SharedPuddleSystem _puddle = default!;
|
||||||
[Dependency] private readonly IGameTiming _timing = default!;
|
//[Dependency] private readonly IGameTiming _timing = default!;
|
||||||
[Dependency] private readonly SolutionContainerSystem _solutionContainer = default!;
|
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!;
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
SubscribeLocalEvent<CuntableComponent,EmoteEvent>(OnCunt);
|
SubscribeLocalEvent<CuntableComponent, EmoteEvent>(OnCunt);
|
||||||
SubscribeLocalEvent<CuntableComponent,ComponentStartup>(OnStartup);
|
SubscribeLocalEvent<CuntableComponent, ComponentStartup>(OnStartup);
|
||||||
SubscribeLocalEvent<CuntableComponent,EntityUnpausedEvent>(OnUnpaused);
|
SubscribeLocalEvent<CuntableComponent, EntityUnpausedEvent>(OnUnpaused);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnStartup(EntityUid uid, CuntableComponent component, ComponentStartup args)
|
private void OnStartup(EntityUid uid, CuntableComponent component, ComponentStartup args)
|
||||||
{
|
{
|
||||||
var cuntSolution = _solutionContainer.EnsureSolution(uid, CuntableComponent.CuntSolutionName);
|
_solutionContainer.EnsureSolution(uid, "Cunt" , out _);
|
||||||
cuntSolution.MaxVolume = 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnCunt(EntityUid uid, CuntableComponent component, ref EmoteEvent args)
|
private void OnCunt(EntityUid uid, CuntableComponent component, ref EmoteEvent args)
|
||||||
@@ -41,14 +39,16 @@ public sealed class CuntSystem : EntitySystem
|
|||||||
if (!Resolve(uid, ref component))
|
if (!Resolve(uid, ref component))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if(!_solutionContainer.TryGetSolution(uid,CuntableComponent.CuntSolutionName,out var cuntSolution))
|
if(!_solutionContainer.TryGetSolution(uid,CuntableComponent.CuntSolutionName,out var solution))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if(cuntSolution.Volume < 5)
|
if (solution.Value != default)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
_puddle.TrySpillAt(uid, cuntSolution, out _);
|
var cum = new Solution("Cunt", 5);
|
||||||
_solutionContainer.SplitSolution(uid,cuntSolution,50);
|
|
||||||
|
_puddle.TrySpillAt(uid, cum, out _);
|
||||||
|
_solutionContainer.SplitSolution(uid!, 50);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -60,35 +60,37 @@ public sealed class CuntSystem : EntitySystem
|
|||||||
|
|
||||||
if (_solutionContainer.TryGetSolution(uid, CuntableComponent.CuntSolutionName, out var solution))
|
if (_solutionContainer.TryGetSolution(uid, CuntableComponent.CuntSolutionName, out var solution))
|
||||||
{
|
{
|
||||||
if (solution.AvailableVolume <= FixedPoint2.Zero)
|
if (solution.Value != default)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var generated = new Solution("Cunt", 2);
|
var generated = new Solution("Cunt", 2);
|
||||||
|
|
||||||
_solutionContainer.TryAddSolution(uid, solution, generated);
|
_solutionContainer.AddSolution(uid!, generated);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Я хуй знает что оно делает
|
||||||
//public override void Update(float frameTime)
|
//public override void Update(float frameTime)
|
||||||
//{
|
//{
|
||||||
// base.Update(frameTime);
|
// base.Update(frameTime);
|
||||||
//
|
//
|
||||||
// var query = EntityQueryEnumerator<CuntableComponent, SolutionContainerManagerComponent>();
|
// var query = EntityQueryEnumerator<CuntableComponent, SolutionContainerManagerComponent>();
|
||||||
// while (query.MoveNext(out var uid, out var regen, out var manager))
|
// while (query.MoveNext(out var uid, out var regen, out var manager))
|
||||||
// {
|
// {
|
||||||
// if (_timing.CurTime < regen.NextRegenTime)
|
// if (_timing.CurTime < regen.NextRegenTime)
|
||||||
// continue;
|
// continue;
|
||||||
|
|
||||||
// regen.NextRegenTime = _timing.CurTime + regen.Duration;
|
// regen.NextRegenTime = _timing.CurTime + regen.Duration;
|
||||||
// if (_solutionContainer.TryGetSolution(uid, CuntableComponent.CuntSolutionName, out var solution, manager))
|
// if (_solutionContainer.TryGetSolution(uid, CuntableComponent.CuntSolutionName, out var solution, manager))
|
||||||
// {
|
// {
|
||||||
// if (solution.AvailableVolume <= FixedPoint2.Zero)
|
// if (solution.AvailableVolume <= FixedPoint2.Zero)
|
||||||
// continue;
|
// continue;
|
||||||
//
|
//
|
||||||
// var generated = new Solution("Cunt", 5);
|
// var generated = new Solution("Cunt", 5);
|
||||||
//
|
//
|
||||||
// _solutionContainer.TryAddSolution(uid, solution, generated);
|
// _solutionContainer.TryAddSolution(uid, solution, generated);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
private void OnUnpaused(EntityUid uid, CuntableComponent comp, ref EntityUnpausedEvent args)
|
private void OnUnpaused(EntityUid uid, CuntableComponent comp, ref EntityUnpausedEvent args)
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
- type: emote
|
- type: emote
|
||||||
id: Squelch
|
id: Squelch
|
||||||
category: Gesture
|
|
||||||
buttonText: Кончать
|
buttonText: Кончать
|
||||||
chatMessages: [ кончает ]
|
chatMessages: [ кончает ]
|
||||||
chatTriggers:
|
chatTriggers:
|
||||||
|
|||||||
Reference in New Issue
Block a user