Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Попытка 2 #201

Merged
merged 4 commits into from
Dec 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Content.Server.Atmos.EntitySystems
{
public sealed partial class AtmosphereSystem
{
private const int SpaceWindSoundCooldownCycles = 75;
private const int SpaceWindSoundCooldownCycles = 50;

private int _spaceWindSoundCooldown = 0;

Expand Down Expand Up @@ -101,7 +101,7 @@ private void HighPressureMovements(Entity<GridAtmosphereComponent> gridAtmospher
if(_spaceWindSoundCooldown == 0 && !string.IsNullOrEmpty(SpaceWindSound))
{
var coordinates = tile.GridIndices.ToEntityCoordinates(tile.GridIndex, _mapManager);
_audio.PlayPvs(SpaceWindSound, coordinates, AudioParams.Default.WithVariation(0.125f).WithVolume(MathHelper.Clamp(tile.PressureDifference / 10, 10, 100)));
_audio.PlayPvs(SpaceWindSound, coordinates, AudioParams.Default.WithVariation(0.9f).WithVolume(MathHelper.Clamp(tile.PressureDifference / 10, 10, 100)));
}
}

Expand Down
6 changes: 3 additions & 3 deletions Content.Shared/CCVar/CCVars.cs
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ public static readonly CVarDef<bool>
/// Whether gas differences will move entities.
/// </summary>
public static readonly CVarDef<bool> SpaceWind =
CVarDef.Create("atmos.space_wind", false, CVar.SERVERONLY);
CVarDef.Create("atmos.space_wind", true, CVar.SERVERONLY);

/// <summary>
/// Divisor from maxForce (pressureDifference * 2.25f) to force applied on objects.
Expand All @@ -945,14 +945,14 @@ public static readonly CVarDef<bool>
/// Useful to prevent clipping through objects.
/// </summary>
public static readonly CVarDef<float> SpaceWindMaxVelocity =
CVarDef.Create("atmos.space_wind_max_velocity", 30f, CVar.SERVERONLY);
CVarDef.Create("atmos.space_wind_max_velocity", 15f, CVar.SERVERONLY);

/// <summary>
/// The maximum force that may be applied to an object by pushing (i.e. not throwing) atmospheric pressure differences.
/// A "throwing" atmospheric pressure difference ignores this limit, but not the max. velocity limit.
/// </summary>
public static readonly CVarDef<float> SpaceWindMaxPushForce =
CVarDef.Create("atmos.space_wind_max_push_force", 20f, CVar.SERVERONLY);
CVarDef.Create("atmos.space_wind_max_push_force", 15f, CVar.SERVERONLY);

/// <summary>
/// Whether monstermos tile equalization is enabled.
Expand Down
16 changes: 16 additions & 0 deletions Resources/Changelog/ChangelogADT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -722,3 +722,19 @@ Entries:
- {message: Добавлен суп с опилками для ивента, type: Add}
id: 55626 #костыль отображения в Обновлениях
time: '2023-12-09T07:20:00.0000000+00:00'

- author: Aserovich
changes:
- {message: Звук разгерметизации стал несколько громче, type: Fix}
- {message: Добавил боевой терминал взаимодействия требующий доступ СБ для переключения сигнала, type: Add}
- {message: На рельсотроны добавлено требования доступа СБ для ручной активации, type: Fix}
- {message: У терминалов появились собственные звуки переключения сигнала, type: Tweak}
- {message: Святой дядя празат сделал собственный спрайт рельсотрону, type: Fix}
- {message: Снаряд истребительского рельсотрона понизил пробивную способность и не ломает бронированые стены с трех выстрелов, type: Fix}
- {message: Кровь сумеречника стала темнее, type: Fix}
- {message: Давление дамажит 2 брута в секунду (было 4), type: Fix}
- {message: Включил космический ветер и сразу понизил его мощность, type: Tweak}
- {message: Голоса сумеречников научились отличать пол с подогревом от женского, type: Fix}
- {message: Незначительные багфиксы крашей, type: Fix}
id: 55627 #костыль отображения в Обновлениях
time: '2023-12-09T04:20:00.0000000+00:00'
4 changes: 2 additions & 2 deletions Resources/ConfigPresets/Build/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ preload = false
expedition_cooldown = 30.0

[shuttle]
grid_fill = true
grid_fill = false
auto_call_time = 0
emergency = false
arrivals = true
arrivals = false

[admin]
see_own_notes = true
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Species/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
- type: Barotrauma
damage:
types:
Blunt: 4 #per second, scales with pressure and other constants.
Blunt: 2 #per second, scales with pressure and other constants.
- type: PassiveDamage # Slight passive regen. Assuming one damage type, comes out to about 4 damage a minute.
allowedStates:
- Alive
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
- type: Barotrauma
damage:
types:
Blunt: 4 #per second, scales with pressure and other constants.
Blunt: 2 #per second, scales with pressure and other constants.

# Used for mobs that can be set on fire
- type: entity
Expand Down
11 changes: 11 additions & 0 deletions Resources/Prototypes/NES/Nes_ammo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
- type: entity
noSpawn: true
parent: BaseBullet
id: NesBulletRailgun
name: снаряд рельсотрона
components:
- type: Projectile
damage:
types:
Piercing: 70
Structural: 10
45 changes: 44 additions & 1 deletion Resources/Prototypes/NES/Nes_furniture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,55 @@
- type: entity
parent: BaseComputer
id: NesComputerButton
name: боевой терминал взаимодействия
description: Терминал для взаимодействия с подключенными к нему устройствами, требует доступ службы безопасности.
components:
- type: Clickable
- type: UseDelay
- type: SignalSwitch
clickSound: "/Audio/Machines/beep.ogg"
onPort: Pressed
offPort: Pressed
statusPort: Pressed
delay: 0.5 # prevent light-toggling auto-clickers.
- type: Sprite
layers:
- map: ["computerLayerBody"]
state: computer
- map: ["computerLayerKeyboard"]
state: generic_keyboard
- map: ["computerLayerScreen"]
state: medcomp
color: "#ff0000"
- map: ["computerLayerKeys"]
state: med_key
# - type: Fixtures
- type: DeviceNetwork
deviceNetId: Wireless
- type: WirelessNetworkConnection
range: 200
- type: DeviceLinkSource
ports:
- Pressed
- type: PointLight
radius: 1.5
energy: 1.6
color: "#ff0000"
- type: Lock
locked: true
- type: AccessReader
access: [['Security']]

- type: entity
parent: BaseComputer
id: NesPeopleComputerButton
name: терминал взаимодействия
description: Терминал для взаимодействия с подключенными к нему устройствами.
components:
- type: Clickable
- type: UseDelay
- type: SignalSwitch
clickSound: "/Audio/Machines/beep.ogg"
onPort: Pressed
offPort: Pressed
statusPort: Pressed
Expand All @@ -83,6 +126,7 @@
state: generic_keyboard
- map: ["computerLayerScreen"]
state: medcomp
color: "#5adbff"
- map: ["computerLayerKeys"]
state: med_key
# - type: Fixtures
Expand All @@ -97,4 +141,3 @@
radius: 1.5
energy: 1.6
color: "#1f8c28"

21 changes: 12 additions & 9 deletions Resources/Prototypes/NES/Shuttles/Nes_shuttles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
id: NesCombatEmitter
name: тяжелый рельсотрон
parent: ConstructibleMachine
description: Тяжелый рельсотрон, разгоняющий снаряд в своле до сверх скоростей. Снаряд будучи обычным стержнем на большой скорости может вызвать непоправимый ущерб противнику.
description: Тяжелый рельсотрон, разгоняющий снаряд в стволе до сверх скоростей. Снаряд будучи обычным стержнем на большой скорости может вызвать непоправимый ущерб.
placement:
mode: SnapgridCenter
components:
Expand All @@ -168,7 +168,7 @@
- type: Transform
anchored: true
- type: Sprite
sprite: Structures/Power/Generation/Singularity/emitter.rsi
sprite: NES/Railguns/railgun.rsi
layers:
- state: emitter # Corvax-Resprite
- state: beam
Expand All @@ -181,7 +181,7 @@
map: ["enum.StorageVisualLayers.Lock"]
- type: Emitter
boltType: BulletGrenadeFrag
baseFireBurstDelayMin: 8
baseFireBurstDelayMin: 10
baseFireInterval: 0.8
baseFireBurstDelayMax: 15
- type: Gun
Expand All @@ -205,7 +205,9 @@
- type: Rotatable
- type: Appearance
- type: Lock
locked: false
locked: true
- type: AccessReader
access: [['Security']]
- type: DeviceNetwork
deviceNetId: Wireless
receiveFrequencyId: BasicDevice
Expand All @@ -217,12 +219,11 @@
- Off
- Toggle


- type: entity
id: NesCombatEmitterSmall
name: рельсотрон
parent: ConstructibleMachine
description: Рельсотрон, разгоняющий снаряд в своле до сверх скоростей. Снаряд будучи обычным стержнем на большой скорости может повредить обшивку вражеского корабля.
description: Рельсотрон, разгоняющий снаряд в стволе до сверх скоростей. Снаряд будучи обычным стержнем на большой скорости может повредить обшивку вражеского корабля.
placement:
mode: SnapgridCenter
components:
Expand All @@ -245,7 +246,7 @@
- type: Transform
anchored: true
- type: Sprite
sprite: Structures/Power/Generation/Singularity/emitter.rsi
sprite: NES/Railguns/railgun.rsi
layers:
- state: emitter # Corvax-Resprite
- state: beam
Expand All @@ -257,7 +258,7 @@
# visible: false # Corvax-Resprite
map: ["enum.StorageVisualLayers.Lock"]
- type: Emitter
boltType: BulletAntiMateriel
boltType: NesBulletRailgun
baseFireBurstDelayMin: 1
baseFireInterval: 0.5
baseFireBurstDelayMax: 1
Expand All @@ -282,7 +283,9 @@
- type: Rotatable
- type: Appearance
- type: Lock
locked: false
locked: true
- type: AccessReader
access: [['Security']]
- type: DeviceNetwork
deviceNetId: Wireless
receiveFrequencyId: BasicDevice
Expand Down
2 changes: 1 addition & 1 deletion Resources/Prototypes/Reagents/biological.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
group: Biological
desc: reagent-desc-shadowkin-blood
flavor: metallic
color: "#691281"
color: "#2e0f24"
recognizable: true
physicalDesc: reagent-physical-desc-ferrous
slippery: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
save: false
parent: BaseMobHuman
id: MobShadowkin
name: Urist McFloof
name: УристМак Сумеречник
components:
- type: HumanoidAppearance
species: Shadowkin
Expand Down Expand Up @@ -89,9 +89,9 @@
Piercing: 1
- type: Vocal
sounds:
Male: MaleSlime
Female: FemaleSlime
Unsexed: MaleSlime
Male: MaleHuman
Female: FemaleHuman
Unsexed: MaleHuman
- type: CombatMode
canDisarm: true
- type: MindContainer
Expand Down
Binary file added Resources/Textures/NES/Railguns/railgun.rsi/beam.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/Textures/NES/Railguns/railgun.rsi/lock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions Resources/Textures/NES/Railguns/railgun.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from Skyrat-tg at https://github.com/Skyrat-SS13/Skyrat-tg/commit/f9e3b58ecd64fa061f83420689bd90bfa3a4c185 & modified by github:Morb0",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "beam",
"directions": 4
},
{
"name": "underpowered",
"directions": 4
},
{
"name": "lock",
"directions": 4
},
{
"name": "unlock",
"directions": 4
},
{
"name": "emitter",
"directions": 4
},
{
"name": "projectile"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading