forked from ParadiseSS13/Paradise
-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавлено биооружие, 6 ядер и 6 новых существ
- Loading branch information
1 parent
bd04e21
commit 23fa237
Showing
11 changed files
with
294 additions
and
19 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
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,141 @@ | ||
/obj/item/gun/throw/biogun | ||
name = "biogun" | ||
desc = "Метатель живых био-ядер." | ||
icon = 'modular_ss220/antagonists/icons/guns/vox_guns.dmi' | ||
lefthand_file = 'modular_ss220/antagonists/icons/guns/inhands/guns_lefthand.dmi' | ||
righthand_file = 'modular_ss220/antagonists/icons/guns/inhands/guns_righthand.dmi' | ||
icon_state = "biogun" | ||
item_state = "spike_long" | ||
var/inhand_charge_sections = 3 | ||
w_class = WEIGHT_CLASS_HUGE | ||
max_capacity = 3 | ||
valid_projectile_type = /obj/item/biocore | ||
|
||
/obj/item/gun/throw/biogun/process_chamber() | ||
. = ..() | ||
update_icon() | ||
|
||
/obj/item/gun/throw/biogun/update_icon_state() | ||
. = ..() | ||
var/inhand_ratio = CEILING((length(loaded_projectiles) / max_capacity) * inhand_charge_sections, 1) | ||
var/new_item_state = "[initial(item_state)][inhand_ratio]" | ||
item_state = new_item_state | ||
|
||
/obj/item/gun/throw/biogun/update_overlays() | ||
. = ..() | ||
var/num = length(loaded_projectiles) | ||
if(num) | ||
num = min(num, max_capacity) | ||
. += "[icon_state]_charge[num]" | ||
|
||
/obj/item/gun/throw/biogun/notify_ammo_count() | ||
var/amount = get_ammocount() | ||
if(get_ammocount() >= 1) | ||
return "<span class='notice'>[src] заряжен [amount]/[max_capacity].</span>" | ||
return "<span class='notice'>[src] разряжен.</span>" | ||
|
||
// ============== Существа ============== | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox | ||
name = "vox viscerator" | ||
icon = 'modular_ss220/antagonists/icons/objects/critter.dmi' | ||
faction = list("Vox") | ||
mob_biotypes = MOB_ROBOTIC | ||
atmos_requirements = list("min_oxy" = 0, "max_oxy" = 0, "min_tox" = 0, "max_tox" = 0, "min_co2" = 0, "max_co2" = 0, "min_n2" = 0, "max_n2" = 0) | ||
damage_coeff = list(BRUTE = 1, BURN = 0.5, TOX = -1, CLONE = -1, STAMINA = 0, OXY = 0) | ||
can_be_on_fire = FALSE | ||
fire_damage = 1 | ||
unsuitable_atmos_damage = 0 | ||
mob_size = MOB_SIZE_TINY | ||
flying = FALSE | ||
melee_damage_lower = 10 | ||
melee_damage_upper = 15 | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/Process_Spacemove(movement_dir) | ||
return TRUE | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/stamina | ||
name = "stakikamka" | ||
desc = "Небольшое биомеханическое проворное существо на высоких ножках, мешающее и изматывающее тех, кому оно не понравилось." | ||
icon_state = "stamina" | ||
icon_living = "stamina" | ||
obj_damage = 0 | ||
speed = 0.25 | ||
melee_damage_type = STAMINA | ||
melee_damage_lower = 5 | ||
melee_damage_upper = 20 | ||
attacktext = "утомляет" | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/stamina/death(gibbed) | ||
if(prob(30)) | ||
xgibs(loc) | ||
. = ..() | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/acid | ||
name = "acikikid" | ||
desc = "Небольшое биомеханическое крабоподобное существо из пасти которого стекает кислота, которую тот наматывает на свои маленькие острые клешни." | ||
icon_state = "acid" | ||
icon_living = "acid" | ||
health = 50 | ||
maxHealth = 50 | ||
obj_damage = 20 | ||
melee_damage_type = BURN | ||
melee_damage_lower = 10 | ||
melee_damage_upper = 30 | ||
attacktext = "выжигает" | ||
mob_size = MOB_SIZE_SMALL | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/acid/death(gibbed) | ||
xgibs(loc) | ||
. = ..() | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/kusaka | ||
name = "kusakika" | ||
desc = "Маленькое биомеханическое существо с острыми клыкам с половину его тела." | ||
icon_state = "kusaka" | ||
icon_living = "kusaka" | ||
speed = 0.5 | ||
obj_damage = 0 | ||
melee_damage_lower = 5 | ||
melee_damage_upper = 10 | ||
armour_penetration_flat = 30 | ||
attacktext = "кусает" | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/kusaka/death(gibbed) | ||
if(prob(20)) | ||
robogibs(loc) | ||
. = ..() | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/taran | ||
name = "tarakikan" | ||
desc = "Весомое пластинчатое биомеханическое существо." | ||
icon_state = "taran" | ||
icon_living = "taran" | ||
speed = 2 | ||
health = 100 | ||
maxHealth = 100 | ||
obj_damage = 50 | ||
melee_damage_lower = 10 | ||
melee_damage_upper = 20 | ||
armour_penetration_flat = 20 | ||
attacktext = "таранит" | ||
mob_size = MOB_SIZE_HUMAN | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/taran/death(gibbed) | ||
robogibs(loc) | ||
. = ..() | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/tox | ||
name = "toxikikic" | ||
desc = "Маленькое биомеханическое иглоподобное существо." | ||
icon_state = "tox" | ||
icon_living = "tox" | ||
melee_damage_type = TOX | ||
melee_damage_lower = 5 | ||
melee_damage_upper = 15 | ||
armour_penetration_flat = 80 | ||
attacktext = "вонзается" | ||
|
||
/mob/living/simple_animal/hostile/viscerator/vox/tox/death(gibbed) | ||
xgibs(loc) | ||
. = ..() |
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,92 @@ | ||
/obj/item/biocore | ||
name = "biocore" | ||
desc = "Острое биоядро с живым организмом внутри. Оно пульсирует и ответно реагирует толчками на каждые взаимодействия." | ||
icon = 'modular_ss220/antagonists/icons/guns/vox_guns.dmi' | ||
icon_state = "biocore" | ||
item_state = "cottoncandy_purple" | ||
|
||
var/mob/living/mob_spawner_type = /mob/living/simple_animal/hostile/creature | ||
var/spawn_amount = 1 // сколько в одном ядре | ||
var/is_spin = TRUE | ||
|
||
// Дополнительные эффекты при втыкании в гуманоида | ||
var/stun = 0 | ||
var/weaken = 5 SECONDS | ||
var/knockdown = 2 SECONDS | ||
var/paralyze = 0 | ||
var/irradiate = 0 | ||
var/stutter = 5 SECONDS | ||
var/slur = 0 | ||
var/eyeblur = 0 | ||
var/drowsy = 0 | ||
var/stamina = 30 | ||
var/jitter = 10 SECONDS | ||
throwforce = 20 | ||
w_class = WEIGHT_CLASS_NORMAL | ||
|
||
|
||
/obj/item/biocore/Initialize(mapload) | ||
. = ..() | ||
|
||
/obj/item/biocore/throw_at(atom/target, range, speed, mob/thrower, spin=1, diagonals_first = 0, datum/callback/callback) | ||
playsound(loc,'sound/weapons/bolathrow.ogg', 50, TRUE) | ||
if(is_spin) | ||
SpinAnimation() | ||
if(!..()) | ||
return | ||
|
||
/obj/item/biocore/throw_impact(atom/hit_atom, datum/thrownthing/throwingdatum) | ||
. = ..() | ||
spawn_mobs() | ||
hurt_impact(hit_atom) | ||
|
||
/obj/item/biocore/AltClick(mob/user) | ||
. = ..() | ||
spawn_mobs() | ||
|
||
/obj/item/biocore/proc/spawn_mobs() | ||
var/turf/T = get_turf(src) | ||
for(var/i in 1 to spawn_amount) | ||
var/atom/movable/x = new mob_spawner_type(T) | ||
x.admin_spawned = admin_spawned | ||
if(prob(50)) | ||
for(var/j = 1, j <= rand(1, 3), j++) | ||
step(x, pick(NORTH,SOUTH,EAST,WEST)) | ||
do_sparks(5, TRUE, T) | ||
qdel(src) | ||
|
||
/obj/item/biocore/proc/hurt_impact(atom/hit_atom) | ||
if(isliving(hit_atom)) | ||
var/mob/living/L = hit_atom | ||
L.apply_effects(stun, weaken, knockdown, paralyze, irradiate, slur, stutter, eyeblur, drowsy, 0, stamina, jitter) | ||
|
||
// ============== Ядра ============== | ||
/obj/item/biocore/viscerator | ||
name = "biocore (viscerator)" | ||
spawn_amount = 3 | ||
mob_spawner_type = /mob/living/simple_animal/hostile/viscerator/vox | ||
|
||
/obj/item/biocore/stamina | ||
name = "biocore (stakikamka)" | ||
spawn_amount = 3 | ||
mob_spawner_type = /mob/living/simple_animal/hostile/viscerator/vox/stamina | ||
|
||
/obj/item/biocore/acid | ||
name = "biocore (acikikid)" | ||
spawn_amount = 1 | ||
mob_spawner_type = /mob/living/simple_animal/hostile/viscerator/vox/acid | ||
|
||
/obj/item/biocore/kusaka | ||
name = "biocore (kusakika)" | ||
spawn_amount = 4 | ||
mob_spawner_type = /mob/living/simple_animal/hostile/viscerator/vox/kusaka | ||
|
||
/obj/item/biocore/taran | ||
name = "biocore (tarakikan)" | ||
spawn_amount = 1 | ||
mob_spawner_type = /mob/living/simple_animal/hostile/viscerator/vox/taran | ||
|
||
/obj/item/biocore/tox | ||
name = "biocore (toxikikic)" | ||
spawn_amount = 3 | ||
mob_spawner_type = /mob/living/simple_animal/hostile/viscerator/vox/tox |
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
Binary file not shown.
Binary file not shown.