Skip to content

Commit

Permalink
Merge pull request #1 from PyotrIgn/stealth_fix
Browse files Browse the repository at this point in the history
Изменения системы стелса
  • Loading branch information
PyotrIgn authored Oct 4, 2023
2 parents 96377ee + c2873c0 commit daa11a9
Show file tree
Hide file tree
Showing 58 changed files with 102 additions and 29 deletions.
2 changes: 1 addition & 1 deletion Content.Client/Stealth/StealthSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void OnShaderRender(EntityUid uid, StealthComponent component, BeforePos
_shader.SetParameter("visibility", visibility);

visibility = MathF.Max(0, visibility);
args.Sprite.Color = new Color(visibility, visibility, 0, 0);
args.Sprite.Color = new Color(visibility, visibility, 1, 1);
}
}

4 changes: 2 additions & 2 deletions Content.Shared/Ninja/Components/NinjaSuitComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public sealed partial class NinjaSuitComponent : Component
public float PassiveWattage = 0.36f;

/// <summary>
/// Battery charge used while cloaked, stacks with passive. Will last 200 seconds while cloaked on a small-capacity power cell.
/// Battery charge used while cloaked, stacks with passive. Will last 100-120 seconds while cloaked on a small-capacity power cell.
/// </summary>
[DataField("cloakWattage")]
public float CloakWattage = 3.20f;
public float CloakWattage = 2.85f;

/// <summary>
/// Sound played when a ninja is hit while cloaked.
Expand Down
18 changes: 17 additions & 1 deletion Resources/Changelog/ChangelogADT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,5 +217,21 @@ Entries:
- author: JustKekc
changes:
- {message: Показатели эффективности некоторых медицинских препаратов каким-то образом упали до прежних значений, type: Tweak}
id: 55567 #костыль отображения в Обновлениях
id: 55573 #костыль отображения в Обновлениях
time: '2023-09-30T04:20:00.0000000+00:00'

- author: Петр Игнатьевич
changes:
- {message: Добавлена именная кепка Алексея Мендозы., type: Add}
- {message: Респрайт скафандров ГВ. парамедика. утилизаторов. Автор спрайтов - Празат (@prazat911)., type: Add}
- {message: Фикс коробки невидимости - при получении некоторого количества урона она сломается., type: Fix}
- {message: Фикс работы коробки невидимости - теперь невидимость при быстром движении пропадает как и ранее., type: Fix}
- {message: Фикс невидимости ниндзи - теперь есть едва видимая дымка., type: Fix}
- {message: ЦК удалило случайно попавшие в одеждоматы плащи Синдиката, type: Tweak}
- {message: Двойной энергомеч получил обратно некоторое количество урона по структурам. Также увеличен до 30 урон по живым целям, type: Tweak}
- {message: Цена набора с Христовым на бронебойных патронах увеличена, type: Tweak}
- {message: Цена на коробку патронов 7.62х39 сильно уменьшена, type: Tweak}
- {message: Немного уменьшена стоимость С4 в аплинке, type: Tweak}
- {message: Исправлена локализация названий патронов калибра .50 антиматериальный и названия коробок для патронов 12х70, type: Fix}
id: 55574 #костыль отображения в Обновлениях
time: '2023-10-04T04:19:00.0000000+00:00'
3 changes: 3 additions & 0 deletions Resources/Locale/ru-RU/ADT/Clothing/Head/hats.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ ent-ADTClothingHeadHatsInvestigatorCap = фуражка следователя
.desc = Слава NanoTrasen!
.suffix = { "" }
ent-ADTClothingHeadHatsMendozaCap = кепка Алексея Мендозы
.desc = Фиолетовая кепка некоего Алексея Мендозы. Сзади - нарисованный маркером большой крест. Рядом - еще четырнадцать мелких крестиков. Владелец кепки шутит, что это число его побегов из заключения.
.suffix = { "" }
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ ent-BaseAmmoProvider = { ent-BaseItem }
.desc = { ent-BaseItem.desc }
ent-AmmoProviderShotgunShell = { ent-BaseAmmoProvider }
.desc = { ent-BaseAmmoProvider.desc }
ent-BoxBeanbag = раздатчик ружейных патронов (травматических)
ent-BoxBeanbag = коробка ружейных патронов 12х70 (травматических)
.desc = Полная коробка травматических ружейных патронов.
ent-BoxLethalshot = раздатчик ружейных патронов (летальных)
ent-BoxLethalshot = коробка ружейных патронов 12х70 (летальных)
.desc = Полная коробка летальных ружейных патронов.
ent-BoxShotgunSlug = раздатчик ружейных патронов (пули)
ent-BoxShotgunSlug = коробка ружейных патронов 12х70 (пули)
.desc = Полная коробка пулевых ружейных патронов
ent-BoxShotgunFlare = раздатчик ружейных патронов (фальшфейеры)
ent-BoxShotgunFlare = коробка ружейных патронов 12х70 (фальшфейеры)
.desc = Полная коробка ружейных патронов-фальшфейеров.
ent-BoxShotgunIncendiary = раздатчик ружейных патронов (зажигательные)
ent-BoxShotgunIncendiary = коробка ружейных патронов 12х70 (зажигательные)
.desc = Полная коробка зажигательных ружейных патронов.
ent-BoxShotgunPractice = раздатчик ружейных патронов (учебные)
ent-BoxShotgunPractice = коробка ружейных патронов 12х70 (учебные)
.desc = Полная коробка учебных ружейных патронов.
ent-BoxShellTranquilizer = раздатчик ружейных патронов (транквилизаторы)
ent-BoxShellTranquilizer = коробка ружейных патронов 12х70 (транквилизаторы)
.desc = Полная коробка ружейных патронов-транквилизаторов.
ent-BoxMagazineRifle = коробка магазинов под патрон 6.5х39 TSF
.desc = Полная коробка магазинов с патронами калибра 6.5х39 TSF.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-MagazineBoxAntiMaterial = коробка патронов (.60 антиматериальные)
ent-MagazineBoxAntiMaterial = коробка патронов (.50 антиматериальные)
.desc = { ent-BaseItem.desc }
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ent-BaseMagazineBoxAntiMateriel = коробка патронов (.60 крупнокалиберные)
ent-BaseMagazineBoxAntiMateriel = коробка патронов (.50 антиматериальные)
.desc = { ent-BaseItem.desc }
ent-MagazineBoxAntiMaterielBig = коробка патронов (.60 крупнокалиберные)
ent-MagazineBoxAntiMaterielBig = коробка патронов (.50 антиматериальные)
.desc = { ent-BaseMagazineBoxAntiMateriel.desc }
ent-MagazineBoxAntiMateriel = коробка патронов (.60 крупнокалиберные)
ent-MagazineBoxAntiMateriel = коробка патронов (.50 антиматериальные)
.desc = { ent-BaseMagazineBoxAntiMateriel.desc }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-CartridgeAntiMaterial = патрон (.60 антиматериальный)
ent-CartridgeAntiMaterial = патрон (.50 антиматериальный)
.desc = { ent-BaseItem.desc }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-CartridgeAntiMateriel = патрон (.60 крупнокалиберный)
ent-CartridgeAntiMateriel = патрон (.50 антиматериальный)
.desc = { ent-BaseCartridge.desc }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-BulletAntiMaterial = пуля (.60 антиматериальная)
ent-BulletAntiMaterial = пуля (.50 антиматериальная)
.desc = { ent-BaseBulletHighVelocity.desc }
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-BulletAntiMateriel = пуля (.60 бронебойная)
ent-BulletAntiMateriel = пуля (.50 бронебойная)
.desc = { ent-BaseBullet.desc }
2 changes: 1 addition & 1 deletion Resources/Prototypes/ADT/Catalog/uplink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
icon: { sprite: /Textures/Objects/Weapons/Guns/Snipers/heavy_sniper.rsi, state: base }
productEntity: ADTClothingBackpackDuffelSyndicateFilledHristov
cost:
Telecrystal: 15
Telecrystal: 25
categories:
- UplinkBundles
conditions:
Expand Down
15 changes: 15 additions & 0 deletions Resources/Prototypes/ADT/Entities/Clothing/Head/Hats/hats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,18 @@
sprite: ADT/Clothing/Head/Hats/investigator_cap.rsi
- type: Clothing
sprite: ADT/Clothing/Head/Hats/investigator_cap.rsi

#кепка Мендозы
- type: entity
parent: ClothingHeadBase
id: ADTClothingHeadHatsMendozaCap
name: Mendoza`s cap
description: The purple cap of a certain Alexei Mendoza. At the back is a large cross drawn with a marker. Next to it are fourteen more of the same small crosses. The owner of the cap jokes that this is the number of his escapes from brig.
components:
- type: Tag
tags: # ignore "WhitelistChameleon" tag
- DroneUsable
- type: Sprite
sprite: ADT/Clothing/Head/Hats/mendosa_soft.rsi
- type: Clothing
sprite: ADT/Clothing/Head/Hats/mendosa_soft.rsi
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@
contrabandInventory:
ClothingUniformJumpsuitTacticool: 1
ClothingUniformJumpskirtTacticool: 1
ADTClothingNeckSyndicateCloak: 1
#ADTClothingNeckSyndicateCloak: 1
4 changes: 2 additions & 2 deletions Resources/Prototypes/Catalog/uplink_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
description: uplink-c4-desc
productEntity: C4
cost:
Telecrystal: 5
Telecrystal: 4
categories:
- UplinkExplosives

Expand Down Expand Up @@ -311,7 +311,7 @@
description: uplink-mosin-ammo-desc
productEntity: MagazineBoxLightRifle
cost:
Telecrystal: 15
Telecrystal: 3
categories:
- UplinkAmmo

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
- type: Clothing
sprite: Clothing/OuterClothing/Suits/spaceninja.rsi
- type: StealthClothing
visibility: 1.1
visibility: 0.3
toggleAction: ActionTogglePhaseCloak
- type: PressureProtection
highPressureMultiplier: 0.6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,9 @@
- type: EnergySword
litDamageBonus:
types:
Slash: 22
Slash: 30
Blunt: -4.5
Structural: 45
litDisarmMalus: 0.7
- type: MeleeWeapon
attackRate: 1.3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,21 @@
parent: BaseBigBox
description: Kept ya waiting, huh?
components:
- type: Damageable
damageModifierSet: FlimsyMetallic #Syndicate boxes should have a bit of protection
#- type: Damageable
# damageModifierSet: FlimsyMetallic #Syndicate boxes should have a bit of protection
- type: Stealth
hadOutline: true
- type: StealthOnMove
passiveVisibilityRate: -0.37
movementVisibilityRate: 0.20
movementVisibilityRate: 0.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 60
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]

- type: entity
id: BigBox
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by (discord: not_so_big_chungus) for Adventure Time MRP Server",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "equipped-HELMET",
"directions": 4
},
{
"name": "equipped-HELMET-hamster",
"directions": 4
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/Textures/Clothing/Head/Hardsuits/medical.rsi/icon.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.
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.
Binary file modified Resources/Textures/Clothing/Head/Hardsuits/salvage.rsi/icon.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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Resources/Textures/Shaders/stealth.swsl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void fragment() {
// visualize distortion via:
// COLOR = vec4(w,w,w,1.0);

w *= (3.0 + visibility * 2.0);
w *= (2.0 + visibility * 2.0);

highp vec4 background = zTextureSpec(SCREEN_TEXTURE, ( FRAGCOORD.xy + vec2(w) ) * SCREEN_PIXEL_SIZE );

Expand Down

0 comments on commit daa11a9

Please sign in to comment.