From 3243c81fe12444e87410cd03a362030c259e2952 Mon Sep 17 00:00:00 2001 From: CrimeMoot Date: Wed, 30 Oct 2024 13:16:39 +0500 Subject: [PATCH 1/5] i'ts trap --- .../Entities/Objects/Devices/trap.yml | 95 ++++++++++++++++++ .../Objects/Devices/trap.rsi/beartrap.png | Bin 0 -> 491 bytes .../Objects/Devices/trap.rsi/beartrap1.png | Bin 0 -> 464 bytes .../Objects/Devices/trap.rsi/meta.json | 17 ++++ 4 files changed, 112 insertions(+) create mode 100644 Resources/Prototypes/_Backmen/Entities/Objects/Devices/trap.yml create mode 100644 Resources/Textures/Backmen/Objects/Devices/trap.rsi/beartrap.png create mode 100644 Resources/Textures/Backmen/Objects/Devices/trap.rsi/beartrap1.png create mode 100644 Resources/Textures/Backmen/Objects/Devices/trap.rsi/meta.json diff --git a/Resources/Prototypes/_Backmen/Entities/Objects/Devices/trap.yml b/Resources/Prototypes/_Backmen/Entities/Objects/Devices/trap.yml new file mode 100644 index 00000000000..6cccf8215a1 --- /dev/null +++ b/Resources/Prototypes/_Backmen/Entities/Objects/Devices/trap.yml @@ -0,0 +1,95 @@ +- type: entity + name: капкан + parent: BaseItem + id: trap + description: Капкан для больших мальчиков + components: + - type: Sprite + sprite: Backmen/Objects/Devices/trap.rsi + drawdepth: Mobs + layers: + - state: beartrap + map: ["base"] + - type: StepTrigger + intersectRatio: 0.2 + requiredTriggeredSpeed: 2 + - type: Ensnaring + freeTime: 3.0 + breakoutTime: 3.5 + walkSpeed: 0.7 + sprintSpeed: 0.7 + staminaDamage: 55 + canThrowTrigger: true + canMoveBreakout: true + - type: Damageable + damageContainer: Inorganic + - type: Destructible + thresholds: + - trigger: + !type:DamageTrigger + damage: 40 + behaviors: + - !type:DoActsBehavior + acts: [ "Destruction" ] + - trigger: + !type:DamageTrigger + damage: 10 + behaviors: + - !type:PlaySoundBehavior + sound: + collection: MetalBreak + - !type:DoActsBehavior + acts: [ "Destruction" ] + - type: Mousetrap + - type: TriggerOnStepTrigger + - type: PreventableStepTrigger + - type: DamageUserOnTrigger + damage: + types: + Blunt: 5 + Piercing: 10 + - type: EmitSoundOnUse + sound: "/Audio/Items/Handcuffs/cuff_end.ogg" + - type: EmitSoundOnTrigger + sound: "/Audio/Items/snap.ogg" + - type: Item + sprite: Backmen/Objects/Devices/trap.rsi + - type: Appearance + - type: GenericVisualizer + visuals: + enum.MousetrapVisuals.Visual: + base: + Armed: { state: beartrap1 } + Unarmed: { state: beartrap } + - type: Physics + bodyType: Dynamic + - type: CollisionWake + enabled: false + - type: Fixtures + fixtures: + slips: + shape: + !type:PhysShapeAabb + bounds: "-0.2,-0.2,0.2,0.2" + hard: false + layer: + - LowImpassable + fix1: + shape: + !type:PhysShapeAabb + bounds: "-0.2,-0.2,0.2,0.2" + density: 30 + mask: + - ItemMask + - type: LandAtCursor + - type: Rotatable + +- type: entity + name: капкан + suffix: Armed + parent: trap + id: trapArmed + description: Капкан для больших мальчиков + components: + - type: Mousetrap + isActive: true \ No newline at end of file diff --git a/Resources/Textures/Backmen/Objects/Devices/trap.rsi/beartrap.png b/Resources/Textures/Backmen/Objects/Devices/trap.rsi/beartrap.png new file mode 100644 index 0000000000000000000000000000000000000000..ee870b4aae683e48be0c1c9d6dfaf8309ebdb103 GIT binary patch literal 491 zcmVJNRCt{2mAy*DKoo^X*dm2U+LU&&Od+I5v51A(2>lb>~yOu#0mnV+59^WB@-n+f}8 zjQ}IS2rvSS03$$a0M~Un%{|XskoT+WrgKUF2)enx!OkwunXc=?l=d@;bsWbmNfLH^ za3uDX0LbL#?v_PSlm|0SlVe}gw9>gS48@uI$A=PJZ-62g^L<|gDNML!S>lXr4i%=H z%~2}=WRe9e?ZGSq;PSfZIlwCe%nFjGDf{~Q?)+RQ09>k_t?gO`@Xnp7lh2E>_O9vf zC;>p#Ovrp`vRE>!LJU#?()HyP-`(F6!IxK7+2=?2=lMYZaQl(59E@)G>B(Wfetmn- zv#n-d{b%$7fN&2C!zgt$Q;me?@$70f|z9t zwJCjP02u;vfS?aNy*!KG={wNYyfc6dfh^IA=?-8GbusS+KoA(wicx_sB_9NU6a)cN hl@dVTtOo-aLccUv1YtB#uHygz002ovPDHLkV1nC6(oX;Y literal 0 HcmV?d00001 diff --git a/Resources/Textures/Backmen/Objects/Devices/trap.rsi/beartrap1.png b/Resources/Textures/Backmen/Objects/Devices/trap.rsi/beartrap1.png new file mode 100644 index 0000000000000000000000000000000000000000..dc3845910d0a4c69de0028ea3dd9f6056fb99cf4 GIT binary patch literal 464 zcmV;>0WbcEP)P;cG+fblSyvwobO&{jzcya7Qg~n z01IFNEWluZIF4zOB%_T0K>XzB7|Y%e#sCoGzqzif%$q=I0a%x}_jjZ$%T6u~!*-oz zStsXt9=W-m(ub!*eJvB%-PppG0=r2Th?Wv! z-2mP{i~$gA3jg(d{IBa?3jlKof}k}U-frOo&$Aa{jtQfC-lU8H7zCcnAZ%k;F*^gy ziebSf!o~nR$a27nF#(91hz$Y|MVh8$Xbb}A+x5x-RuO;dTHB3OW_}|80000 Date: Wed, 30 Oct 2024 13:32:34 +0500 Subject: [PATCH 2/5] add Construction --- .../Entities/Objects/Devices/trap.yml | 3 +++ .../Construction/Graphs/weapons/trap.yml | 26 +++++++++++++++++++ .../_Backmen/Recipes/Construction/weapons.yml | 10 +++++++ 3 files changed, 39 insertions(+) create mode 100644 Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml create mode 100644 Resources/Prototypes/_Backmen/Recipes/Construction/weapons.yml diff --git a/Resources/Prototypes/_Backmen/Entities/Objects/Devices/trap.yml b/Resources/Prototypes/_Backmen/Entities/Objects/Devices/trap.yml index 6cccf8215a1..c64efb8ac37 100644 --- a/Resources/Prototypes/_Backmen/Entities/Objects/Devices/trap.yml +++ b/Resources/Prototypes/_Backmen/Entities/Objects/Devices/trap.yml @@ -48,6 +48,9 @@ types: Blunt: 5 Piercing: 10 + - type: Construction + graph: Trap + node: trap - type: EmitSoundOnUse sound: "/Audio/Items/Handcuffs/cuff_end.ogg" - type: EmitSoundOnTrigger diff --git a/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml b/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml new file mode 100644 index 00000000000..4b0ebe0d322 --- /dev/null +++ b/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml @@ -0,0 +1,26 @@ +- type: constructionGraph + id: Trap + start: start + graph: + - node: start + edges: + - to: trap + steps: + - material: Cable + amount: 5 + doAfter: 2 + - material: Steel + amount: 5 + doAfter: 2 + - material: MetalRod + amount: 5 + doAfter: 2 + - tag: GlassShard + name: glass shard + icon: + sprite: Objects/Materials/Shards/shard.rsi + state: shard1 + doAfter: 0.5 + + - node: trap + entity:Trap \ No newline at end of file diff --git a/Resources/Prototypes/_Backmen/Recipes/Construction/weapons.yml b/Resources/Prototypes/_Backmen/Recipes/Construction/weapons.yml new file mode 100644 index 00000000000..2aefbeca33a --- /dev/null +++ b/Resources/Prototypes/_Backmen/Recipes/Construction/weapons.yml @@ -0,0 +1,10 @@ +- type: construction + name: Trap + id: Trap + graph: Trap + startNode: start + targetNode: trap + category: construction-category-weapons + description: Ловушка для любителей подглядывать. + icon: { sprite: Backmen/Objects/Devices/trap.rsi, state: beartrap1 } + objectType: Item \ No newline at end of file From 386dcb282f268ce4f04e2390bef61b7b14434af3 Mon Sep 17 00:00:00 2001 From: CrimeMoot Date: Wed, 30 Oct 2024 13:33:21 +0500 Subject: [PATCH 3/5] fix entity --- .../_Backmen/Recipes/Construction/Graphs/weapons/trap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml b/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml index 4b0ebe0d322..7af006ff0c4 100644 --- a/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml +++ b/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml @@ -23,4 +23,4 @@ doAfter: 0.5 - node: trap - entity:Trap \ No newline at end of file + entity: Trap \ No newline at end of file From 47608a632b64d82c2a1db51621ca5a43592a8bf4 Mon Sep 17 00:00:00 2001 From: CrimeMoot Date: Wed, 30 Oct 2024 13:33:58 +0500 Subject: [PATCH 4/5] =?UTF-8?q?=D0=B4=D0=B0=20=D0=B1=D0=BB=D1=8F=D1=82?= =?UTF-8?q?=D1=8C=20=D0=A2=D0=A0=D0=90=D0=9F=20=D1=81=20=D0=BC=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8C=D0=BA=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_Backmen/Recipes/Construction/Graphs/weapons/trap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml b/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml index 7af006ff0c4..9ed0e9094c3 100644 --- a/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml +++ b/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml @@ -23,4 +23,4 @@ doAfter: 0.5 - node: trap - entity: Trap \ No newline at end of file + entity: trap \ No newline at end of file From 3ab31716042b759ffa94f0a768ff62ee48721e16 Mon Sep 17 00:00:00 2001 From: CrimeMoot Date: Wed, 30 Oct 2024 13:58:01 +0500 Subject: [PATCH 5/5] fix --- .../_Backmen/Recipes/Construction/Graphs/weapons/trap.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml b/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml index 9ed0e9094c3..9ed629072ea 100644 --- a/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml +++ b/Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/weapons/trap.yml @@ -18,8 +18,8 @@ - tag: GlassShard name: glass shard icon: - sprite: Objects/Materials/Shards/shard.rsi - state: shard1 + sprite: Objects/Materials/Shards/shard.rsi + state: shard1 doAfter: 0.5 - node: trap