forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Firebots - Real (space-wizards#32482)
* Add Firebots Had to add OnActivateInWorld to the spray system to get the bot to work. Checks for the flammable component and if the onFire boolean is true. * Make SpraySystem actually use useDelay got rid of that TODO * Added firebot speech Fire detected!
- Loading branch information
Showing
15 changed files
with
241 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Content.Server.NPC.Queries.Considerations; | ||
|
||
/// <summary> | ||
/// Returns 1f if the target is on fire or 0f if not. | ||
/// </summary> | ||
public sealed partial class TargetOnFireCon : UtilityConsideration | ||
{ | ||
|
||
} |
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 @@ | ||
firebot-fire-detected = Fire detected! |
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,44 @@ | ||
- type: htnCompound | ||
id: FirebotCompound | ||
branches: | ||
- tasks: | ||
- !type:HTNCompoundTask | ||
task: DouseFireTargetCompound | ||
- tasks: | ||
- !type:HTNCompoundTask | ||
task: IdleCompound | ||
|
||
- type: htnCompound | ||
id: DouseFireTargetCompound | ||
branches: | ||
- tasks: | ||
- !type:HTNPrimitiveTask | ||
operator: !type:UtilityOperator | ||
proto: NearbyOnFire | ||
|
||
- !type:HTNPrimitiveTask | ||
operator: !type:SpeakOperator | ||
speech: firebot-fire-detected | ||
hidden: true | ||
|
||
- !type:HTNPrimitiveTask | ||
operator: !type:MoveToOperator | ||
pathfindInPlanning: true | ||
removeKeyOnFinish: false | ||
targetKey: TargetCoordinates | ||
pathfindKey: TargetPathfind | ||
rangeKey: InteractRange | ||
|
||
- !type:HTNPrimitiveTask | ||
preconditions: | ||
- !type:TargetInRangePrecondition | ||
targetKey: Target | ||
rangeKey: InteractRange | ||
operator: !type:InteractWithOperator | ||
targetKey: Target | ||
services: | ||
- !type:UtilityService | ||
id: FireService | ||
proto: NearbyOnFire | ||
key: Target | ||
|
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
33 changes: 33 additions & 0 deletions
33
Resources/Prototypes/Recipes/Crafting/Graphs/bots/firebot.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,33 @@ | ||
- type: constructionGraph | ||
id: FireBot | ||
start: start | ||
graph: | ||
- node: start | ||
edges: | ||
- to: bot | ||
steps: | ||
- tag: FireExtinguisher | ||
icon: | ||
sprite: Objects/Misc/fire_extinguisher.rsi | ||
state: fire_extinguisher_open | ||
name: fire extinguisher | ||
- tag: FireHelmet | ||
icon: | ||
sprite: Clothing/Head/Helmets/firehelmet.rsi | ||
state: icon | ||
name: fire helmet | ||
doAfter: 2 | ||
- tag: ProximitySensor | ||
icon: | ||
sprite: Objects/Misc/proximity_sensor.rsi | ||
state: icon | ||
name: proximity sensor | ||
doAfter: 2 | ||
- tag: BorgArm | ||
icon: | ||
sprite: Mobs/Silicon/drone.rsi | ||
state: l_hand | ||
name: borg arm | ||
doAfter: 2 | ||
- node: bot | ||
entity: MobFireBot |
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
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/firebot.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": "Taken from https://github.com/tgstation/tgstation/commit/eba0d62005e7754dd8b1c88e45cd949c360774d5", | ||
"states": [ | ||
{ | ||
"name": "firebot", | ||
"delays": [ | ||
[ | ||
0.5, | ||
0.2 | ||
] | ||
] | ||
} | ||
] | ||
} |