-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
217 additions
and
5 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
37 changes: 37 additions & 0 deletions
37
Content.Shared/_NF/Vehicle/Components/VehicleHornComponent.cs
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,37 @@ | ||
using Robust.Shared.Audio; | ||
using Robust.Shared.GameStates; | ||
using Robust.Shared.Prototypes; | ||
using Content.Shared.Vehicle; | ||
|
||
namespace Content.Shared._NF.Vehicle.Components; | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
[RegisterComponent, NetworkedComponent] | ||
[Access(typeof(SharedVehicleSystem))] | ||
public sealed partial class VehicleHornComponent : Component | ||
{ | ||
/// <summary> | ||
/// The sound that the horn makes | ||
/// </summary> | ||
[DataField] | ||
[ViewVariables(VVAccess.ReadWrite)] | ||
public SoundSpecifier? HornSound = new SoundPathSpecifier("/Audio/Effects/Vehicle/carhorn.ogg") | ||
{ | ||
Params = AudioParams.Default.WithVolume(-3f) | ||
}; | ||
|
||
[ViewVariables] | ||
public EntityUid? HonkPlayingStream; | ||
|
||
[DataField] | ||
public EntProtoId? Action = "ActionVehicleHorn"; | ||
|
||
/// <summary> | ||
/// The action for the horn (if any) | ||
/// </summary> | ||
[DataField] | ||
[ViewVariables(VVAccess.ReadWrite)] | ||
public EntityUid? ActionEntity; | ||
} |
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: entity | ||
parent: MobSiliconBaseVehicle | ||
id: MobHoverTaxiBot | ||
name: hovertaxibot | ||
description: Give a ride? IN SPAAAAACE! | ||
components: | ||
- type: Sprite | ||
sprite: _NF/Mobs/Silicons/Bots/hovertaxibot.rsi | ||
layers: | ||
- state: hull | ||
- state: engines | ||
map: ["enum.VehicleVisualLayers.AutoAnimate"] | ||
shader: unshaded | ||
- state: unshaded | ||
shader: unshaded | ||
- type: GhostRole | ||
name: ghost-role-information-hovertaxibot-name | ||
description: ghost-role-information-hovertaxibot-description | ||
rules: ghost-role-information-nonantagonist-rules | ||
- type: MovementIgnoreGravity | ||
- type: MovementAlwaysTouching | ||
- type: CanMoveInAir | ||
- type: Strap | ||
buckleOffset: "0, 0" | ||
unbuckleDistanceSquared: 0.09 # (30 cm)^2 - seems unnecessary, but for consistency with vehicles | ||
- type: MovementSpeedModifier # Matches a hoverbike | ||
acceleration: 2 | ||
friction: 1.5 | ||
baseWalkSpeed: 4.5 | ||
baseSprintSpeed: 7 | ||
- type: Construction | ||
graph: HoverTaxiBot | ||
node: bot | ||
- type: UserInterface | ||
interfaces: | ||
enum.RadarConsoleUiKey.Key: | ||
type: RadarConsoleBoundUserInterface | ||
- type: IntrinsicUI | ||
uis: | ||
enum.RadarConsoleUiKey.Key: | ||
toggleAction: ActionObserverShowRadar | ||
- type: RadarConsole | ||
followEntity: true | ||
- type: VehicleHorn |
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
35 changes: 35 additions & 0 deletions
35
Resources/Prototypes/_NF/Recipes/Crafting/Graphs/bots/hovertaxibot.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,35 @@ | ||
- type: constructionGraph | ||
id: HoverTaxiBot | ||
start: start | ||
graph: | ||
- node: start | ||
edges: | ||
- to: bot | ||
steps: | ||
- tag: ProximitySensor | ||
icon: | ||
sprite: Objects/Misc/proximity_sensor.rsi | ||
state: icon | ||
name: proximity sensor | ||
- tag: BorgHead | ||
icon: | ||
sprite: Objects/Specific/Robotics/cyborg_parts.rsi | ||
state: borg_head | ||
name: borg head | ||
doAfter: 1 | ||
- tag: BorgArm | ||
icon: | ||
sprite: Mobs/Silicon/drone.rsi | ||
state: l_hand | ||
name: borg arm | ||
doAfter: 2 | ||
- tag: SmallThrusterMachineCircuitboard | ||
icon: | ||
sprite: Objects/Misc/module.rsi | ||
state: generic | ||
name: small thruster machine board | ||
doAfter: 2 | ||
- material: Steel | ||
amount: 10 | ||
- node: bot | ||
entity: MobHoverTaxiBot |
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: construction | ||
name: hovertaxibot | ||
id: hovertaxibot | ||
graph: HoverTaxiBot | ||
startNode: start | ||
targetNode: bot | ||
category: construction-category-utilities | ||
objectType: Item | ||
description: This spacefaring bot takes people to their destination. | ||
icon: | ||
sprite: _NF/Mobs/Silicons/Bots/hovertaxibot.rsi | ||
state: hull |
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 |
---|---|---|
|
@@ -93,3 +93,6 @@ | |
|
||
- type: Tag | ||
id: ClothingRobesGoblin | ||
|
||
- type: Tag | ||
id: SmallThrusterMachineCircuitboard |
Binary file added
BIN
+418 Bytes
Resources/Textures/_NF/Mobs/Silicons/Bots/hovertaxibot.rsi/engines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions
37
Resources/Textures/_NF/Mobs/Silicons/Bots/hovertaxibot.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,37 @@ | ||
{ | ||
"version": 1, | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"license": "CC-BY-SA-3.0", | ||
"copyright": "hull drawn by FillerVK, modified by Diebeck, modified by Whatstone (Discord), unshaded and engines by Whatstone (Discord)", | ||
"states": [ | ||
{ | ||
"name": "engines", | ||
"directions": 4, | ||
"delays": [ | ||
[ | ||
0.2, 0.2, 0.2, 0.2 | ||
], | ||
[ | ||
0.2, 0.2, 0.2, 0.2 | ||
], | ||
[ | ||
0.2, 0.2, 0.2, 0.2 | ||
], | ||
[ | ||
0.2, 0.2, 0.2, 0.2 | ||
] | ||
] | ||
}, | ||
{ | ||
"name": "hull", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "unshaded", | ||
"directions": 4 | ||
} | ||
] | ||
} |
Binary file added
BIN
+311 Bytes
Resources/Textures/_NF/Mobs/Silicons/Bots/hovertaxibot.rsi/unshaded.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.