]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add AutoEmote comp/system, updates to zombie code (#13932)
author0x6273 <0x40@keemail.me>
Thu, 2 Mar 2023 19:23:56 +0000 (20:23 +0100)
committerGitHub <noreply@github.com>
Thu, 2 Mar 2023 19:23:56 +0000 (11:23 -0800)
commit72269c7a77dae912c8631acebd8a4b0925111f47
tree54b4c08b1f441cf44023acef2cdcc8df66a65822
parent3bb4dd97aa55a13e468d1e8d179817dfc2074f80
Add AutoEmote comp/system, updates to zombie code (#13932)

* Add AutoEmote comp/system

* Reduce groan chance so it's the same as before

Old code did 0.2 and then 0.5, now it's just one Prob(0.1)

* Fix typo, curTime var, don't log Resolve

* Maybe fix pausing?

* Fix mistake

* Update NextEmoteTime if an auto emote is removed

* Fix stuff

Get CurTime outside update loop
Use MapInit instead of ComponentInit
Fix a typo in a comment
Debug assert prototype ID in RemoveEmote
Do += PausedTime in OnUnpaused
Add prototype as arg to ResetTimer to avoid an indexing
Content.Server/Chat/AutoEmoteComponent.cs [new file with mode: 0644]
Content.Server/Chat/Systems/AutoEmoteSystem.cs [new file with mode: 0644]
Content.Server/Zombies/ActiveZombieComponent.cs
Content.Server/Zombies/ZombieSystem.cs
Content.Server/Zombies/ZombifyOnDeathSystem.cs
Content.Shared/Chat/Prototypes/AutoEmotePrototype.cs [new file with mode: 0644]
Resources/Prototypes/Voice/auto_emotes.yml [new file with mode: 0644]