Add laser raptors (#18660)

This commit is contained in:
metalgearsloth
2023-08-05 04:38:11 +10:00
committed by GitHub
parent dfbd88507a
commit c9368c36af
4 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
- type: entity
name: laser raptor
id: MobLaserRaptor
parent: SimpleMobBase
description: From the Viking age.
components:
- type: NpcFactionMember
factions:
- SimpleHostile
- type: HTN
rootTask:
task: SimpleRangedHostileCompound
- type: Sprite
drawdepth: Mobs
sprite: Mobs/Aliens/laser_raptor.rsi
layers:
- map: [ "enum.DamageStateVisualLayers.Base" ]
state: laser_raptor
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.30
density: 80
mask:
- MobMask
layer:
- MobLayer
- type: MobThresholds
thresholds:
0: Alive
100: Dead
- type: MovementSpeedModifier
baseWalkSpeed: 2
baseSprintSpeed: 5
- type: Tag
tags:
- FootstepSound
- type: HitscanBatteryAmmoProvider
proto: RedMediumLaser
fireCost: 50
- type: BatterySelfRecharger
autoRecharge: true
autoRechargeRate: 50
- type: Battery
maxCharge: 1000
startingCharge: 1000
- type: Gun
fireRate: 1
useKey: false
selectedMode: SemiAuto
availableModes:
- SemiAuto
soundGunshot: /Audio/Weapons/Guns/Gunshots/laser_cannon.ogg
- type: CombatMode
- type: InteractionPopup
successChance: 0.5
interactSuccessString: petting-success-slimes
interactFailureString: petting-failure-generic

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 802 B

View File

@@ -0,0 +1,18 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Sprited by aleksh (discord)",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "laser_raptor",
"directions": 4
},
{
"name": "laser_raptor_dead"
}
]
}