Commit Graph

11 Commits

Author SHA1 Message Date
Spatison
a2557f75a6 Upstream (#129) 2024-11-21 17:49:04 +07:00
VMSolidus
08822e34ba Cherry-Pick Antag Refactor (#734)
This cherry-pick's Wizden's Antag Refactor, which is needed for all
future antag updates, as well as for me to cherry-pick over Cultists(Who
are going to need some editing to fit the antag refactor), Changelings,
Heretics, and Wizards. I actually selected the White-Dream-Public
version of the Antag Refactor, due to it having commits made tailored to
our repository, so it comes prepackaged with all the changes necessary
for our repo-specific content.

https://github.com/frosty-dev/ss14-wwdp/pull/10

Signed-off-by: Timemaster99 <57200767+Timemaster99@users.noreply.github.com>
Co-authored-by: ThereDrD <88589686+ThereDrD0@users.noreply.github.com>
Co-authored-by: Jeff <velcroboy333@hotmail.com>
Co-authored-by: Timemaster99 <57200767+Timemaster99@users.noreply.github.com>
Co-authored-by: Timemaster99 <elijahrobot@gmail.com>
Co-authored-by: luckywill339@gmail.com <luckywill339@gmail.com>
Co-authored-by: Danger Revolution! <142105406+DangerRevolution@users.noreply.github.com>
Co-authored-by: Azzy <azzydev@icloud.com>
2024-08-15 10:11:48 -07:00
Mnemotechnican
58a1f88ded Revert "Refactor Ramping Event Scheduler (#592)" (#644)
# Description
This reverts commit 910b4c3c4e.

The PR was never tested properly, and after it was merged on deep
station, a lot of significant issues have been uncovered, including
station events appearing every 6-12 seconds regardless of the gamemode,
some RampingStationEventScheduler component fields being unused, some
CVars having misleading usages, some CVars being unused, and more.

The PR needs to be re-done and tested thoroughly before it can be
merged.

🆑
- fix: Reverted the station event scheduler rework due to it absolutely
breaking the game.
2024-08-02 18:52:41 -04:00
VMSolidus
910b4c3c4e Refactor Ramping Event Scheduler (#592)
# Description

The Ramping Event Scheduler originally followed a more or less linear
trend of "Slow events" to "Fast events", reaching its absolute maximum
event speeds at EXACTLY the point set by CVar. Additionally, the timer
CVars were set on initialization, which meant that event times could not
be modified live, thus voiding the entire benefit of having the CVars in
the first place.

I have completely rewritten the entire timer function to use a logistic
curve, which provides varying levels of transition rate from "Start",
"Mid", and "End". Shifts begin at their normal speed, and will
accelerate quickly until it reaches the "Midround", at which point event
timer growth begins to slow dramatically. Additionally, the timer
function accounts for both settings in Gamemode, as well as in CVar.
Minimum Time and Maximum Time are also now separate from each other, and
can be truly independently modified.

Finally, to show what this system is capable of, I've added a variant
"Long Survival" that can be set via admeme.

# Media

The new "Ramping Event Timer Equation". I have intentionally left this
public just in case anyone wants to use it for a different system.


![image](https://github.com/user-attachments/assets/50557a21-76ae-4b08-9cb1-edd8d991712d)

# Changelog

🆑
- add: Long Survival has been added as a new Game mode.

---------

Signed-off-by: VMSolidus <evilexecutive@gmail.com>
Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
2024-07-26 23:00:24 -07:00
Mnemotechnican
7463b37f3b More Gamemodes (#527)
# Description
Adds traitors and hellshift to the list of gamemodes offered by the
gamemode vote.

Traitors just make sense.

Hellshift is a new version of survival. It starts out roughly as slow as
survival, but it slowly devolves into a torrent of station events as
frequent as one every 10-30 seconds. Good for when there's no other
~~self-antaggers~~ players to spice up the shift, or when there's one
too many security officers to deal with all the threats this brings.

# Technical details
Had to refactor a lot of RampingStationEventScheduler. Firstly, it was
total shitcode, secondly, it had everything hardcoded, thirdly, it had a
bug that made it possible for events to appear with little to no delay
whatsoever. Now its component features four data fields that can be used
to configure the scheduler and its system contains cleaner and more
readable code.

<!--
This is default collapsed, readers click to expand it and see all your
media
The PR media section can get very large at times, so this is a good way
to keep it clean
The title is written using HTML tags
The title must be within the <summary> tags or you won't see it
-->

<details><summary><h1>Media</h1></summary>
<p>


![image](https://github.com/Simple-Station/Einstein-Engines/assets/69920617/e9831b63-0339-4849-981a-bdc58c7beabe)


![image](https://github.com/Simple-Station/Einstein-Engines/assets/69920617/bfa117d3-cb66-456b-9425-1b3bf80cd60f)


</p>
</details>

# Changelog
🆑
- tweak: Players can now vote on two more gamemodes: Traitors and
Hellshift.

---------

Signed-off-by: Mnemotechnican <69920617+Mnemotechnician@users.noreply.github.com>
Co-authored-by: DEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
2024-07-11 18:26:41 +01:00
DEATHB4DEFEAT
1132b058ff Fewer Mid-Round Events (#486)
# Description

Ports and improves
https://github.com/Simple-Station/Parkstation-Friendly-Chainsaw/pull/59

Slows rounds down so the station doesn't always have to evacuate in a
blaze and can instead leave complete.
Also makes Survival not stupidly destructive and gives a chance for the
shift to last a decent time.
Allows servers to configure the times themselves if they want to, so
defaults don't matter too much.

---

# Changelog

🆑
- tweak: Mid-round events will occur much less often
2024-06-25 16:47:09 -04:00
Kara
fc393559e4 Don't double-dip survival intensity scaling (#25570)
(cherry picked from commit de36ebe2dfbcba11866b61a69d46c2d27077ee76)
2024-03-07 00:52:54 +01:00
Nemanja
59349b1b9b Gamerule Entities, Take 2 (#15765) 2023-04-25 20:23:14 -04:00
metalgearsloth
d3552dae00 Revert "Gamerule Entities" (#15724) 2023-04-24 16:21:05 +10:00
Nemanja
39cc02b8f9 Gamerule Entities (#15513) 2023-04-24 15:20:51 +10:00
Kara
3fd226d9f0 Extended rework & ramping event scheduler (#11362) 2022-10-18 19:51:47 -07:00