forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 131
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
1 parent
e32e08a
commit 5f6ed26
Showing
24 changed files
with
257 additions
and
49 deletions.
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
4 changes: 4 additions & 0 deletions
4
...s220/_defines220/code/role_preferences.dm → ...lar_ss220/_defines220/code/antagonists.dm
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 |
---|---|---|
@@ -1,2 +1,6 @@ | ||
#define ROLE_BLOOD_BROTHER "blood brother" | ||
#define ROLE_VOX_RAIDER "vox raider" | ||
|
||
#define VOX_RAID_FREQ 1220 | ||
|
||
GLOBAL_LIST_EMPTY(raider_spawn) |
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,33 @@ | ||
/datum/antagonist/proc/create_mob(spawn_loc, species_name = null, list/possible_species, try_use_preference = FALSE) | ||
var/mob/living/carbon/human/H = new(spawn_loc) | ||
var/datum/character_save/character | ||
|
||
var/client/client = owner.current.client // !!!!!!! проверить что клиент вообще вызывается даже у гостов | ||
if(try_use_preference && client && client.prefs && length(client.prefs.character_saves)) | ||
for(var/datum/character_save/character_save in client.prefs.character_saves) | ||
var/temp_species_name = species_name | ||
if(!temp_species_name) | ||
if(length(possible_species)) | ||
temp_species_name = pick(possible_species) | ||
else | ||
temp_species_name = "Human" | ||
if(character_save.species == temp_species_name) | ||
character = character_save | ||
species_name = temp_species_name | ||
break | ||
else | ||
// Randomize appearance | ||
character = new | ||
character.species = species_name ? species_name : get_random_species(TRUE) | ||
character.randomise() | ||
|
||
character.copy_to(H) | ||
|
||
// species | ||
//H.dna.species.create_organs(H) // !!!!!! Проверить есть ли НУЖНЫЕ органы | ||
H.cleanSE() //No fat/blind/colourblind/epileptic/whatever ops. | ||
H.overeatduration = 0 | ||
H.flavor_text = null | ||
H.update_body() | ||
|
||
owner.store_memory("<B> Я Вокс-Рейдер, основа моя: беречь стаю, тащить ценности. </B>.") |
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
20 changes: 20 additions & 0 deletions
20
modular_ss220/antagonists/code/antag_mix/scenarios/major_scenarios.dm
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,20 @@ | ||
/datum/antag_scenario/team/vox_raiders | ||
name = "Vox Raider" | ||
config_tag = "vox_raiders" | ||
abstract = FALSE | ||
antag_role = ROLE_VOX_RAIDER | ||
antag_special_role = SPECIAL_ROLE_VOX_RAIDER | ||
antag_datum = /datum/antagonist/vox_raider | ||
antag_team = /datum/team/vox_raiders_team | ||
required_players = 30 | ||
cost = 30 | ||
weight = 0.25 | ||
antag_cap = 6 | ||
candidates_required = 2 | ||
team_size = 6 | ||
|
||
is_crew_antag = FALSE | ||
landmark_type = /obj/effect/landmark/spawner/vox_raider | ||
possible_species = list("Vox") | ||
recommended_species_active_pref = list("Vox") | ||
recommended_species_mod = 3 |
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,8 @@ | ||
/obj/effect/landmark/spawner/vox_raider | ||
name = "Vox Raider" | ||
icon = 'modular_ss220/antagonists/icons/landmark.dmi' | ||
icon_state = "vox_raider" | ||
|
||
/obj/effect/landmark/spawner/vox_raider/Initialize(mapload) | ||
spawner_list = GLOB.raider_spawn | ||
return ..() |
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
Oops, something went wrong.