-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #485 from Timfa2112/gladiabot
Port Gladiabot From EE PR
- Loading branch information
Showing
11 changed files
with
162 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
- type: entity | ||
parent: MobSiliconBase | ||
id: MobGladiaBot | ||
name: gladiabot | ||
description: For glory! | ||
components: | ||
- type: Sprite | ||
sprite: Mobs/Silicon/Bots/gladiabot.rsi | ||
state: gladiabot | ||
- type: Construction | ||
graph: GladiaBot | ||
node: bot | ||
- type: SentienceTarget | ||
flavorKind: station-event-random-sentience-flavor-mechanical | ||
- type: UseDelay | ||
delay: 1 | ||
- type: NpcFactionMember | ||
factions: | ||
- GladiabotFFA | ||
- type: CombatMode | ||
- type: MeleeWeapon | ||
altDisarm: false | ||
soundHit: | ||
path: /Audio/Weapons/bladeslice.ogg | ||
angle: 0 | ||
animation: WeaponArcPunch | ||
damage: | ||
types: | ||
Slash: 3 | ||
- type: MobThresholds | ||
thresholds: | ||
0: Alive | ||
40: Dead | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 30 | ||
behaviors: | ||
- !type:TriggerBehavior | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 40 | ||
behaviors: | ||
- !type:SpawnEntitiesBehavior | ||
spawn: | ||
ProximitySensor: | ||
min: 1 | ||
max: 1 | ||
- !type:SpawnEntitiesBehavior | ||
spawn: | ||
MaterialCloth1: | ||
min: 1 | ||
max: 1 | ||
- !type:DoActsBehavior | ||
acts: [ "Destruction" ] | ||
- type: MovementSpeedModifier | ||
baseWalkSpeed: 2 | ||
baseSprintSpeed: 3 | ||
- type: HTN | ||
rootTask: | ||
task: GladiabotCompound | ||
blackboard: | ||
AttackDelayDeviation: !type:Single | ||
0.3 | ||
- type: InteractionPopup | ||
interactSuccessString: petting-success-gladiabot | ||
interactFailureString: petting-failure-gladiabot | ||
interactSuccessSound: | ||
path: /Audio/Ambience/Objects/periodic_beep.ogg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
- type: htnCompound | ||
id: GladiabotCompound | ||
branches: | ||
- tasks: | ||
- !type:HTNPrimitiveTask | ||
operator: !type:UtilityOperator | ||
proto: NearbyMeleeTargets | ||
- !type:HTNCompoundTask | ||
task: MeleeAttackTargetCompound | ||
- tasks: | ||
- !type:HTNCompoundTask | ||
task: IdleCompound |
25 changes: 25 additions & 0 deletions
25
Resources/Prototypes/Recipes/Crafting/Graphs/bots/gladiabot.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
- type: constructionGraph | ||
id: GladiaBot | ||
start: start | ||
graph: | ||
- node: start | ||
edges: | ||
- to: bot | ||
steps: | ||
- material: Cardboard | ||
amount: 1 | ||
doAfter: 2 | ||
- tag: ProximitySensor | ||
icon: | ||
sprite: Objects/Misc/proximity_sensor.rsi | ||
state: icon | ||
name: proximity sensor | ||
doAfter: 2 | ||
- tag: Shiv | ||
icon: | ||
sprite: Objects/Weapons/Melee/shiv.rsi | ||
state: icon | ||
name: shiv | ||
doAfter: 2 | ||
- node: bot | ||
entity: MobGladiaBot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,3 +106,8 @@ | |
|
||
- type: npcFaction | ||
id: AnimalFriend | ||
|
||
- type: npcFaction | ||
id: GladiabotFFA | ||
hostile: | ||
- GladiabotFFA |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
Resources/Textures/Mobs/Silicon/Bots/gladiabot.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 1, | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"license": "CC-BY-SA-3.0", | ||
"copyright": "Tim Falken", | ||
"states": [ | ||
{ | ||
"name": "gladiabot", | ||
"delays": [ | ||
[ | ||
0.5, | ||
0.2 | ||
] | ||
] | ||
} | ||
] | ||
} |