Add hot potato (#14204)

Co-authored-by: AJCM <AJCM@tutanota.com>
This commit is contained in:
Slava0135
2023-04-22 14:40:36 +03:00
committed by GitHub
parent 1907b249d7
commit c00bd9c247
14 changed files with 274 additions and 0 deletions

View File

@@ -620,6 +620,23 @@
whitelist:
- Clown
- type: listing
id: uplinkHotPotato
name: uplink-hot-potato-name
description: uplink-hot-potato-desc
productEntity: HotPotato
cost:
Telecrystal: 4
categories:
- UplinkJob
conditions:
- !type:BuyerJobCondition
whitelist:
- Chef
- Botanist
- Clown
- Mime
# Armor
- type: listing

View File

@@ -0,0 +1,55 @@
- type: entity
name: hot potato
description: Once activated, this time bomb can't be dropped - only passed to someone else!
parent: BaseItem
id: HotPotato
components:
- type: Sprite
sprite: Objects/Weapons/Bombs/hot_potato.rsi
state: icon
netsync: false
- type: Item
sprite: Objects/Weapons/Bombs/hot_potato.rsi
size: 5
- type: MeleeWeapon
damage:
types:
Blunt: 5
- type: OnUseTimerTrigger
delay: 180
beepSound: /Audio/Machines/Nuke/general_beep.ogg
- type: ExplodeOnTrigger
- type: Explosive
explosionType: Default
maxIntensity: 8
intensitySlope: 5
totalIntensity: 20
canCreateVacuum: false
- type: DeleteOnTrigger
- type: HotPotato
- type: Appearance
visuals:
- type: GenericEnumVisualizer
key: enum.Trigger.TriggerVisuals.VisualState
states:
enum.Trigger.TriggerVisualState.Primed: activated
enum.Trigger.TriggerVisualState.Unprimed: complete
- type: entity
id: HotPotatoEffect
noSpawn: true
components:
- type: TimedDespawn
lifetime: 0.6
- type: Sprite
netsync: false
noRot: true
drawdepth: Effects
sprite: Effects/chemsmoke.rsi
state: chemsmoke
scale: "0.15, 0.15"
- type: EffectVisuals
- type: Tag
tags:
- HideContextMenu
- type: AnimationPlayer