forked from TauCetiStation/TauCetiClassic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
160 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
var/global/datum/late_party/current_late_party | ||
|
||
/datum/spawner/late_party | ||
name = "Поздняя Группа" | ||
desc = "." | ||
ranks = list(ROLE_GHOSTLY) | ||
priority = 1001 | ||
|
||
register_only = TRUE | ||
|
||
var/datum/late_party/late_party_type | ||
var/list/datum/late_party/possible_parties = list() | ||
|
||
|
||
/datum/spawner/late_party/New() | ||
for(var/party_type in subtypesof(/datum/late_party)) | ||
var/datum/late_party/party = new party_type | ||
if(!party.name) | ||
qdel(party) | ||
continue | ||
LAZYADD(possible_parties, party) | ||
late_party_type = pick(possible_parties) | ||
global.current_late_party = late_party_type | ||
//time_for_registration = rand(25 MINUTES, 45 MINUTES) | ||
time_for_registration = rand(30 SECONDS, 45 SECONDS) | ||
positions = late_party_type.members.len | ||
to_chat(world, "[late_party_type.name]") | ||
to_chat(world, "[late_party_type.members.len]") | ||
..() | ||
|
||
|
||
/datum/spawner/late_party/roll_registrations() | ||
if(registered_candidates.len < late_party_type.members.len) | ||
//REROLL | ||
for(var/party_type in subtypesof(/datum/late_party)) | ||
var/datum/late_party/party = new party_type | ||
if(!party.name) | ||
qdel(party) | ||
continue | ||
LAZYADD(possible_parties, party) | ||
late_party_type = pick(possible_parties) | ||
time_for_registration = 5 MINUTES | ||
positions = late_party_type.members.len | ||
global.current_late_party = late_party_type | ||
start_timers() | ||
for(var/mob/dead/M in registered_candidates) | ||
to_chat(M, "<span class='notice'><B>Недостаточно кандидатов для создания поздней группы! Следующая попытка набора через 5 минут!</B></span>") | ||
return | ||
..() | ||
|
||
/datum/spawner/late_party/spawn_body(mob/dead/spectator) | ||
var/list/potential_roles = list() | ||
for(var/datum/late_party_member/members_in_list in late_party_type.members) | ||
LAZYADD(potential_roles, members_in_list) | ||
to_chat(world, "[members_in_list.name]") | ||
var/datum/late_party_member/member = pick(potential_roles) | ||
//LAZYREMOVE(late_party_type.members, member) | ||
|
||
var/client/C = spectator.client | ||
|
||
var/datum/faction/F = find_faction_by_type(member.faction) | ||
member.holder = new(null) | ||
C.create_human_apperance(member.holder) | ||
|
||
var/turf/T = pick(landmarks_list[member.spawnloc]) | ||
member.holder.loc = get_turf(T) | ||
member.holder.key = C.key | ||
|
||
create_and_setup_role(member.role, member.holder) | ||
add_faction_member(F, member.holder, FALSE, TRUE) | ||
member.holder.equipOutfit(member.outfit) | ||
to_chat(member.holder, "<B>Вот ты и здесь...</B>") | ||
|
||
|
||
/datum/late_party | ||
var/name | ||
var/list/datum/late_party_member/members = list() //members of lateparty (/datum/late_party_member) | ||
|
||
/datum/late_party/proc/post_spawn() //for announcements and events after the party appears. | ||
return | ||
|
||
/datum/late_party_member | ||
var/name = "Generic Name" | ||
var/datum/role/role //member role | ||
var/datum/faction/faction //member faction | ||
var/spawnloc //spawn landmark | ||
var/mob/living/carbon/human/holder //spectator new body | ||
var/outfit //holder outfit | ||
|
||
////////////////////////////////Communists!/////////////////////////////////////////////////////////// | ||
|
||
/datum/late_party/commy | ||
name = "Отряд СССП" | ||
members = list( | ||
/datum/late_party_member/soviet_soldier | ||
///datum/late_party_member/soviet_soldier, | ||
///datum/late_party_member/soviet_soldier, | ||
///datum/late_party_member/soviet_soldier, | ||
///datum/late_party_member/soviet_soldier, | ||
///datum/late_party_member/soviet_soldier, | ||
///datum/late_party_member/soviet_soldier, | ||
///datum/late_party_member/soviet_comissar | ||
) | ||
|
||
|
||
/datum/late_party_member/soviet_soldier | ||
name = "Красноармеец" | ||
role = /datum/role/late_party_member | ||
faction = /datum/faction/late_party/communists | ||
spawnloc = "lp_communist" | ||
outfit = /datum/outfit/responders/ussp | ||
|
||
///datum/late_party_member/soviet_comissar | ||
// name = "Коммисар СССП" | ||
// role = | ||
// faction = | ||
// spawnloc = | ||
// outfit = /datum/outfit/responders/ussp/leader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/datum/faction/late_party | ||
name = "Late Party" | ||
ID = F_LATE_PARTY | ||
logo_state = "late_party_logo" | ||
|
||
initroletype = /datum/role/late_party_member | ||
|
||
/datum/faction/late_party/communists | ||
name = F_LP_COMMUNISTS | ||
ID = F_LP_COMMUNISTS | ||
logo_state = "soviet" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/datum/role/late_party_member | ||
name = LATE_PARTY_MEMBER | ||
id = LATE_PARTY_MEMBER | ||
disallow_job = TRUE | ||
|
||
logo_state = "late_party_logo" | ||
antag_hud_type = ANTAG_HUD_LATE_PARTY | ||
antag_hud_name = "hud_late_party_member" | ||
skillset_type = /datum/skillset/max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters