Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timelock System to all Jobs, Revival PR. #692

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

wgtjunior743
Copy link
Contributor

@wgtjunior743 wgtjunior743 commented Feb 6, 2025

About The Pull Request

Previously i made this PR back in december that took to long to get reviewed(over 2 weeks) and had to close because of multiple conflict merges. now it is back with the fixes and new code for the new jobs.

New timelock system based on your playtime of your jobs, this was mainly ported from the cm-ss13 codebase and then adapted to fit this code.

Preference Menu after 2 hours of playtime (Ignoring race and clans limitations)
part_1
part_2

Choose Profession for a new player(Old sc without the Clinic, but without 2 hours of any of these roles they can't play doctor):
choose_profession_for_freshie

Once they play 2 hours of any role(Admin bypass is active so it is ignoring races limitations):
after_2_hours

[To test this you need to set up the DB(dbconfig.txt for the info), enable tracking at config.txt and disable the admin bypass, there is one at preferences.dm and another at the new_player.dm]

Why It's Good For The Game

Easy system to implement for jobs, guide new players towards more friendly roles and make them play abit of some more simple roles to move into the complex ones.

Changelog

🆑
add: Increased the limit in the preference from 17 to 18 so it don't looks ugly
add: Add new timelock system for jobs
add; Add time locks for all jobs besides the new player ones
fix: Fixed an issue with generation reqs showing before even checking if your clan or race could play that role.
code: New define for the jobs titles, straight from __DEFINES/jobs
code: New folders for each group of jobs, based off the join menu, each group got their own dm besides the antags but police, giovanni and primogen still a single dm with all their jobs.
/:cl:

@wgtjunior743 wgtjunior743 changed the title Timelock System to all Jobs, Revive PR. Timelock System to all Jobs, Revival PR. Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant