Skip to content

Commit

Permalink
Стационарные пулемёт что пробил танк
Browse files Browse the repository at this point in the history
  • Loading branch information
polerno committed Nov 9, 2023
1 parent a3640b8 commit e199ef3
Show file tree
Hide file tree
Showing 18 changed files with 440 additions and 0 deletions.
5 changes: 5 additions & 0 deletions baystation12.dme
Original file line number Diff line number Diff line change
Expand Up @@ -3322,6 +3322,11 @@
#include "proxima\code\modules\TGSIntegration\TGSIntegrationStaff\TGSEventHandler.dm"
#include "proxima\code\modules\TGSIntegration\TGSIntegrationStaff\TGSgetrev.dm"
#include "proxima\code\modules\TGSIntegration\TGSIntegrationStaff\TGSIntegrationFiles.dm"
#include "proxima\code\modules\turrets\ammo.dm"
#include "proxima\code\modules\turrets\chaingun.dm"
#include "proxima\code\modules\turrets\deploy_kits.dm"
#include "proxima\code\modules\turrets\HMG.dm"
#include "proxima\code\modules\turrets\turret.dm"
#include "proxima\code\modules\webhooks\webhook_xeno_whitelist.dm"
#include "proxima\code\music_player\_music_player.dm"
#include "proxima\code\music_player\_music_tape.dm"
Expand Down
7 changes: 7 additions & 0 deletions customs/code/krabinator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@
icon = 'customs/icons/obj/custom_items_obj.dmi'
icon_state = "coffeecup_krabdiona"
volume = 40

/obj/item/clothing/under/krabinator
name = "maid uniform"
desc = "YO, COOL UNIFORM BROO."
icon_state = "sexymaid"
icon = 'customs/icons/obj/custom_items_obj.dmi'
item_icons = list(slot_head_str = 'customs/icons/mob/custom_items_mob.dmi')
5 changes: 5 additions & 0 deletions customs/config/foler_beret.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ckey": "Foler",
"character_name": "Walter Enderly",
"item_path": "/obj/item/clothing/head/foler"
}
1 change: 1 addition & 0 deletions customs/config/krabinator-rev.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
"ckey": "Krabinator3000",
"character_name": "Wind Over The Void",
"item_path": "/obj/item/reagent_containers/food/drinks/glass2/coffeecup/diona/krabinator"

}
5 changes: 5 additions & 0 deletions customs/config/krabinator_maid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"ckey": "Krabinator3000",
"character_name": "Wind Over The Void",
"item_path": "/obj/item/clothing/under/krabinator"
}
Binary file modified customs/icons/mob/custom_items_mob.dmi
Binary file not shown.
Binary file modified customs/icons/obj/custom_items_obj.dmi
Binary file not shown.
43 changes: 43 additions & 0 deletions proxima/code/modules/turrets/HMG.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@

/obj/structure/turret/hmg
name = "HMG Turret"
desc = "A HMG Turret"

icon_state = "hmgturret"

turret_gun = /obj/item/gun/projectile/turret/hmg
kit_undeploy = /obj/item/turret_deploy_kit/hmg

/obj/item/gun/projectile/turret/hmg //Slowfiring, so we're going to cap our dispersion much lower.
name = "HMG Turret"
desc = "Fires slower than the Confetti Maker, but with more stopping power per round."

fire_sound = 'sound/weapons/gunshot/mech_autocannon.ogg'
icon_state = "m247h_obj"
item_state = "m247h_obj"
caliber = CALIBER_ANTIMATERIAL_SMALL
magazine_type = /obj/item/ammo_magazine/HMG_boxmag
fire_delay = 5 //1 lower than normal

//Chaingun dispersions on paced shots with worse dispersion on longburst. Higher damage, but faster firing on paced shots
//Than chaingun provides.
firemodes = list(\
list(mode_name="paced shots", burst=30,burst_delay = 1,fire_delay = 5, accuracy = 0, dispersion=list(0.1,0.1,0.1,0.2,0.2,0.3,0.3,0.4,0.4,0.4,0.4,0.45)),
list(mode_name="long bursts", burst=40,burst_delay = 2,fire_delay = 6, accuracy = -1,dispersion=list(0.2,0.2,0.3,0.3,0.4,0.4,0.5,0.5,0.55,0.55,0.6,0.6))
)



/obj/item/gun/projectile/turret/hmg/detached
item_icons = list(
slot_l_hand_str = 'proxima/code/modules/turrets/mob_turret.dmi',
slot_r_hand_str = 'proxima/code/modules/turrets/mob_turret.dmi',
)

fire_delay = 8
accuracy = -1

firemodes = list(\
list(mode_name="paced shots", burst=20,burst_delay = 3,fire_delay = 8, accuracy = -1, dispersion=list(0.1,0.1,0.1,0.2,0.2,0.3,0.3,0.4,0.4,0.4,0.4,0.45)),
list(mode_name="long bursts", burst=10,burst_delay = 2,fire_delay = 10, accuracy = -2,dispersion=list(0.2,0.2,0.3,0.3,0.4,0.4,0.5,0.5,0.55,0.55,0.6,0.6))
)
33 changes: 33 additions & 0 deletions proxima/code/modules/turrets/ammo.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

//HMG AMMO DEFINES//
/obj/item/ammo_magazine/HMG_boxmag
name = "HMG box magazine (12.7mm) HEHVAP"
desc = "High Explosive, High Velocity, Armour Piercing. This has it all."

icon = 'proxima/code/modules/turrets/turret_items.dmi'
icon_state = "hmgturretbox"

ammo_type = /obj/item/ammo_casing/amr
caliber = CALIBER_ANTIMATERIAL_SMALL
mag_type = MAGAZINE


max_ammo = 150
multiple_sprites = 1


//CHAINGUN AMMO DEFINES//
/obj/item/ammo_magazine/chaingun_boxmag
name = "Chaingun box magazine (7.62mm) AP"
desc = "A large box filled with 7.62mm AP ammo."

icon = 'proxima/code/modules/turrets/turret_items.dmi'
icon_state = "chaingunturretbox"

ammo_type = /obj/item/projectile/bullet/rifle/military
caliber = CALIBER_RIFLE_MILITARY
mag_type = MAGAZINE


max_ammo = 250
multiple_sprites = 1
42 changes: 42 additions & 0 deletions proxima/code/modules/turrets/chaingun.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

/obj/structure/turret/chaingun
name = "Confetti Maker Chaingun Turret"
desc = "A chaingun turret nicknamed the Confetti Maker due to it's inaccuracy and extraordinary rate of fire."

icon_state = "chaingunturret"
turret_gun = /obj/item/gun/projectile/turret/chaingun
kit_undeploy = /obj/item/turret_deploy_kit/chaingun

/obj/item/gun/projectile/turret/chaingun
name = "Confetti Maker Chaingun Turret"
desc = "A lead-spewing gun, usually found mounted to a turret. It is known for it's inaccuracy and extraordinary rate of fire.."

fire_sound = 'sound/weapons/gunshot/gunshot_smg.ogg'
icon_state = "chaingun_obj"
item_state = "chaingun_obj"

caliber = CALIBER_RIFLE_MILITARY
magazine_type = /obj/item/ammo_magazine/chaingun_boxmag
fire_delay = 5 //1 lower than normal
accuracy = -1
dispersion = list(0.2,0.2,0.2,0.3,0.3,0.4,0.4,0.5,0.5,0.5,0.5,0.55)


firemodes = list(\
list(mode_name="long bursts", burst=50,burst_delay = 1,fire_delay = 5, accuracy = -1,dispersion=list(0.2,0.2,0.2,0.3,0.3,0.4,0.4,0.5,0.5,0.5,0.5,0.55)),
list(mode_name="paced shots", burst=25,burst_delay = 4,fire_delay = 7, accuracy = 0,dispersion=list(0.1,0.1,0.1,0.2,0.2,0.3,0.3,0.4,0.4,0.4,0.4,0.45))
)

/obj/item/gun/projectile/turret/chaingun/detached
item_icons = list(
slot_l_hand_str = 'proxima/code/modules/turrets/mob_turret.dmi',
slot_r_hand_str = 'proxima/code/modules/turrets/mob_turret.dmi',
)

fire_delay = 8
accuracy = -2
//Accuracy drops by -1 on both modes.
firemodes = list(\
list(mode_name="long bursts", burst=30,burst_delay = 1,fire_delay = 8, accuracy = -2,dispersion=list(0.2,0.2,0.2,0.3,0.3,0.4,0.4,0.5,0.5,0.5,0.5,0.55)),
list(mode_name="paced shots", burst=12,burst_delay = 4,fire_delay = 10, accuracy = -1,dispersion=list(0.0,0.0,0.1,0.1,0.1,0.2,0.2,0.3,0.3,0.3,0.3,0.35))
)
Binary file not shown.
Binary file not shown.
Binary file added proxima/code/modules/turrets/deploy_kit_items.dmi
Binary file not shown.
41 changes: 41 additions & 0 deletions proxima/code/modules/turrets/deploy_kits.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

/obj/item/turret_deploy_kit
name = "Turret Deploy Kit"
desc = "Contains all the parts and single-use tools to construct a turret emplacement"

w_class = ITEM_SIZE_HUGE
slowdown_general = 1.5

icon = 'proxima/code/modules/turrets/deploy_kit_items.dmi'
icon_state = "hmg_kit"
item_state = "hmgkit"

item_icons = list(
slot_l_hand_str = 'proxima/code/modules/turrets/deploy_kit_inhands_l.dmi',
slot_r_hand_str = 'proxima/code/modules/turrets/deploy_kit_inhands_r.dmi',
)

var/obj/turret_contained = /obj/structure/turret
var/deploy_time = 3 //The time it takes to deploy the turret, in seconds.

/obj/item/turret_deploy_kit/attack_self(var/mob/user)
visible_message("<span class = 'danger'>[user] starts setting up a turret emplacement</span>")
if(do_after(user,deploy_time SECONDS,src,1,1,,1))
new turret_contained (user.loc)
qdel(src)

/obj/item/turret_deploy_kit/hmg
name = "Heavy Machine Gun Deploy Kit"

icon_state = "hmg_kit"
item_state = "hmgkit"

turret_contained = /obj/structure/turret/hmg

/obj/item/turret_deploy_kit/chaingun
name = "Chaingun Deploy Kit"

icon_state = "chaingun_kit"
item_state = "chaingunkit"

turret_contained = /obj/structure/turret/chaingun
Binary file added proxima/code/modules/turrets/mob_turret.dmi
Binary file not shown.
Loading

0 comments on commit e199ef3

Please sign in to comment.