ghost_spawns
Vars | |
currently_polling | List of polls currently ongoing, to be checked on next fire() |
---|---|
next_poll_to_finish | The poll that's closest to finishing |
polls_active | Whether there are active polls or not |
total_polls | Number of polls performed since the start |
Procs | |
is_eligible | Returns whether an observer is eligible to be an event mob |
poll_candidates | Polls for candidates with a question and a preview of the role |
polling_finished | Called by the subsystem when a poll's timer runs out |
Var Details
currently_polling
List of polls currently ongoing, to be checked on next fire()
next_poll_to_finish
The poll that's closest to finishing
polls_active
Whether there are active polls or not
total_polls
Number of polls performed since the start
Proc Details
is_eligible
Returns whether an observer is eligible to be an event mob
Arguments:
- M - The mob to check eligibility
- role - The role to check eligibility for. Checks 1. the client has enabled the role 2. the account's age for this role if antag_age_check is TRUE
- antag_age_check - Whether to check the account's age or not for the given role.
- role_text - The role's clean text. Used for checking job bans to determine eligibility
- min_hours - The amount of minimum hours the client needs before being eligible
- check_antaghud - Whether to consider a client who enabled AntagHUD ineligible or not
poll_candidates
Polls for candidates with a question and a preview of the role
This proc replaces /proc/pollCandidates. Should NEVER be used in a proc that has waitfor set to FALSE/0 (due to #define UNTIL) Arguments:
- question - The question to ask to potential candidates
- role - The role to poll for. Should be a ROLE_x enum. If set, potential candidates who aren't eligible will be ignored
- antag_age_check - Whether to filter out potential candidates who don't have an old enough account
- poll_time - How long to poll for in deciseconds
- ignore_respawnability - Whether to ignore the player's respawnability
- min_hours - The amount of hours needed for a potential candidate to be eligible
- flash_window - Whether the poll should flash a potential candidate's game window
- check_antaghud - Whether to filter out potential candidates who enabled AntagHUD
- source - The atom, atom prototype, icon or mutable appearance to display as an icon in the alert
- role_cleanname - The name override to display to clients
polling_finished
Called by the subsystem when a poll's timer runs out
Can be called manually to finish a poll prematurely Arguments:
- P - The poll to finish