Skip to content

Commit

Permalink
Merge branch 'master' into Thief-Breaching-Charges
Browse files Browse the repository at this point in the history
  • Loading branch information
Unkn0wnGh0st333 authored Sep 20, 2024
2 parents 281acd2 + a3727d2 commit da5f222
Show file tree
Hide file tree
Showing 21 changed files with 166 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Numerics;
using Content.Server.Atmos.Components;
using Content.Server.GameTicking.Rules.Components;
using Content.Server.StationEvents.Components;
using Content.Shared.GameTicking.Components;
Expand All @@ -12,6 +13,7 @@ namespace Content.Server.StationEvents.Events
{
public sealed class MeteorSwarmRule : StationEventSystem<MeteorSwarmRuleComponent>
{
[Dependency] private readonly SharedMapSystem _map = default!;
[Dependency] private readonly SharedPhysicsSystem _physics = default!;

protected override void Started(EntityUid uid, MeteorSwarmRuleComponent component, GameRuleComponent gameRule, GameRuleStartedEvent args)
Expand Down Expand Up @@ -40,6 +42,10 @@ protected override void ActiveTick(EntityUid uid, MeteorSwarmRuleComponent compo

Box2? playableArea = null;
var mapId = GameTicker.DefaultMap;
// use a dud meteor if there's an atmosphere to "simulate" burning up
var proto = "MeteorLargeDeltaV";
if (_map.TryGetMap(mapId, out var mapUid) && TryComp<MapAtmosphereComponent>(mapUid, out var atmos) && !atmos.Space)
proto = "MeteorGlacierDeltaV";

var query = AllEntityQuery<MapGridComponent, TransformComponent>();
while (query.MoveNext(out var gridId, out _, out var xform))
Expand Down Expand Up @@ -67,7 +73,7 @@ protected override void ActiveTick(EntityUid uid, MeteorSwarmRuleComponent compo
var angle = new Angle(RobustRandom.NextFloat() * MathF.Tau);
var offset = angle.RotateVec(new Vector2((maximumDistance - minimumDistance) * RobustRandom.NextFloat() + minimumDistance, 0));
var spawnPosition = new MapCoordinates(center + offset, mapId);
var meteor = Spawn("MeteorLargeDeltaV", spawnPosition);
var meteor = Spawn(proto, spawnPosition);
var physics = EntityManager.GetComponent<PhysicsComponent>(meteor);
_physics.SetBodyStatus(meteor, physics, BodyStatus.InAir);
_physics.SetLinearDamping(meteor, physics, 0f);
Expand Down
29 changes: 15 additions & 14 deletions Resources/Changelog/DeltaVChangelog.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
Entries:
- author: Vordenburg
changes:
- message: Enhanced intrusion defenses have been deployed in electrical systems.
type: Add
id: 64
time: '2023-10-15T14:07:21.0000000+00:00'
- author: leonardo-dabepis
changes:
- message: added mothamphetamine drink
type: Add
- message: changed "dulleavene" to "health violation"
type: Tweak
id: 65
time: '2023-10-16T23:25:27.0000000+00:00'
- author: DebugOk
changes:
- message: Moth coloration has been changed, existing characters might look slightly
Expand Down Expand Up @@ -3606,3 +3592,18 @@
id: 563
time: '2024-09-20T03:38:10.0000000+00:00'
url: https://github.com/DeltaV-Station/Delta-v/pull/1866
- author: deltanedas
changes:
- message: Glacier's atmosphere now protects it from meteor storms.
type: Tweak
id: 564
time: '2024-09-20T13:23:14.0000000+00:00'
url: https://github.com/DeltaV-Station/Delta-v/pull/1872
- author: Solaris7518
changes:
- message: The corrupted corgi will no longer terrorize the crew the moment the
round starts.
type: Remove
id: 565
time: '2024-09-20T14:02:21.0000000+00:00'
url: https://github.com/DeltaV-Station/Delta-v/pull/1867
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,38 @@
- type: UseDelay
delay: 0 #Straight up doesn't work for guns

- type: entity
name: SLP-67 "Volk"
parent: BaseWeaponPistol
id: WeaponPistolSLP67
description: The SLP-67, featuring a fullsize polymer frame and extended slide, improves upon its predecessor in ergonomics, accuracy, and capacity. Uses .35 auto ammo.
components:
- type: Sprite
sprite: DeltaV/Objects/Weapons/Guns/Pistols/slp67.rsi
- type: Item
size: Normal
- type: Clothing
sprite: DeltaV/Objects/Weapons/Guns/Pistols/slp67.rsi
- type: ItemSlots
slots:
gun_magazine:
name: Magazine
startingItem: MagazinePistolHighCapacity
insertSound: /Audio/Weapons/Guns/MagIn/pistol_magin.ogg
ejectSound: /Audio/Weapons/Guns/MagOut/pistol_magout.ogg
priority: 2
whitelist:
tags:
- MagazinePistolHighCapacity
whitelistFailPopup: gun-magazine-whitelist-fail
gun_chamber:
name: Chamber
startingItem: CartridgePistol
priority: 1
whitelist:
tags:
- CartridgePistol

- type: entity
name: SLP-57
parent: BaseWeaponPistol
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,56 @@
mask:
- Impassable
- BulletImpassable

# this gets spawned by the meteor swarm rule if the target map has an atmosphere
# since meteors dont make much sense
- type: entity
categories: [ HideSpawnMenu ]
id: MeteorGlacierDeltaV
name: meteor
description: This meteor is burning up like a in the atmosphere, like a... meteor.
components:
- type: Sprite
noRot: false
sprite: Objects/Weapons/Guns/Projectiles/meteor.rsi
scale: 0.5,0.5
layers:
- state: large
shader: unshaded
- type: PointLight
radius: 3
energy: 5
color: "#ff6622"
- type: AmbientSound
enabled: true
volume: 2
range: 14
sound:
path: /Audio/Items/Flare/flare_burn.ogg
params:
loop: true
- type: IgnitionSource
ignited: true
temperature: 500
- type: DeleteOnTrigger
- type: TriggerOnCollide
fixtureID: projectile
- type: Projectile
damage: {}
deleteOnCollide: false
- type: Physics
bodyType: Dynamic
- type: Fixtures
fixtures:
projectile:
shape:
!type:PhysShapeCircle
radius: 0.8
density: 100
hard: true
# Didn't use MapGridComponent for now as the bounds are stuffed.
layer:
- LargeMobLayer
mask:
- Impassable
- BulletImpassable
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

- type: job
id: MedicalBorg
name: job-name-medical-borg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
- MobBoxingKangaroo
- MobGoose
- MobSnake
- MobGiantSpider
- MobGiantSpiderAngry
# - MobGiantSpider # Delta-V Change
# - MobGiantSpiderAngry # Delta-V Change
- MobCorgi
- MobCorgiNarsi
#- MobCorgiNarsi # Delta-V change, disables the "corrupted corgi" (literally just a hostile cerberus with no master) from spawning naturally
- MobCorgiPuppy
- MobCrab
- MobCatSpace
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/Roles/Jobs/departments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
- ERTSecurity
- ERTEngineer
- DeathSquad
- StationAi # DeltaV - added for playtime trackers
primary: false
weight: 100

Expand Down Expand Up @@ -141,7 +142,9 @@
color: "#D381C9"
roles:
- Borg
- MedicalBorg # DeltaV - roundstart mediborg job
- StationAi
primary: false # DeltaV - removed from primary dept

- type: department
id: Specific
Expand Down
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
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
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"version": 1,
"license": "CC0-1.0",
"copyright": "Original work by TJohnson.",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "base"
},
{
"name": "bolt-open"
},
{
"name": "mag-0"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "equipped-BELT",
"directions": 4
},
{
"name": "equipped-SUITSTORAGE",
"directions": 4
}
]
}
3 changes: 3 additions & 0 deletions RunBoth-Debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
start "DeltaVServer-Debug" cmd /k "runserver-Debug.bat"
start "DeltaVClient-Debug" cmd /k "runclient-Debug.bat"
3 changes: 3 additions & 0 deletions RunBoth-Tools.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
start "DeltaVServer-Tools" cmd /k "runserver-Tools.bat"
start "DeltaVClient-Tools" cmd /k "runclient-Tools.bat"
3 changes: 3 additions & 0 deletions RunBoth.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
start "DeltaVServer" cmd /k "runserver.bat"
start "DeltaVClient" cmd /k "runclient.bat"
2 changes: 2 additions & 0 deletions runclient-Debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
dotnet run --project Content.Client --configuration Debug
3 changes: 3 additions & 0 deletions runserver-Debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
dotnet run --project Content.Server --configuration Debug
pause

0 comments on commit da5f222

Please sign in to comment.