Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Resources/Audio/_QB/Animals/attributions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- files: [ "mosquito.ogg" ]
license: "Custom"
copyright: "Created by pixabay user freesound_community. The original audio split to mono, trimmed and converted from MP3 to OGG format by rebe83"
source: "https://pixabay.com/sound-effects/nature-flying-mosquito-105770/"
Binary file added Resources/Audio/_QB/Animals/mosquito.ogg
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ghost-role-information-mosquito-name = Mosquito
ghost-role-information-mosquito-description = A hungry little bug looking for a bite to eat.
2 changes: 2 additions & 0 deletions Resources/Prototypes/_Impstation/GameRules/pests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@
prob: 0
- id: MobButterfly
prob: 0
- id: MobMosquito # QB
prob: 0

- type: entity
id: SlimesSpawn
Expand Down
105 changes: 105 additions & 0 deletions Resources/Prototypes/_QB/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,108 @@
- type: HTN
rootTask:
task: MeleeDogCompound

- type: entity
name: mosquito
parent: [ SimpleMobBase, FlyingMobBase]
id: MobMosquito
description: EEEEeeeeEEEEEEEEeeEEE
components:
- type: VentCrawler
enterDelay: 1
- type: Item
size: Tiny
- type: CombatMode
- type: MeleeWeapon
altDisarm: false
angle: 0
animation: WeaponArcThrust
soundHit:
path: /Audio/Weapons/star_hit.ogg
damage:
types:
Bloodloss: 2
- type: MovementSpeedModifier
baseWalkSpeed : 3
baseSprintSpeed : 7
- type: GhostRole
makeSentient: true
allowSpeech: false
allowMovement: true
name: ghost-role-information-mosquito-name
description: ghost-role-information-mosquito-description
rules: ghost-role-information-freeagent-rules
mindRoles:
- MindRoleGhostRoleFreeAgentHarmless
- type: GhostTakeoverAvailable
- type: Emoting
- type: Sprite
drawdepth: Mobs
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
sprite: _QB/Mobs/Animals/mosquito.rsi
state: mosquito
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.1 # making them smaller makes them die of heat...?
density: 30 # making them less dense makes them die of heat...?
mask:
- FlyingMobMask
layer:
- FlyingMobLayer
- type: MobState
- type: MobThresholds
thresholds:
0: Alive
10: Dead # two punches
- type: TriggerOnMobstateChange
mobState:
- Dead
- type: EmitSoundOnTrigger
sound:
path: /Audio/Voice/Slime/slime_squish.ogg
params:
variation: 0.125
- type: DamageStateVisuals
states:
Alive:
Base: mosquito
Dead:
Base: dead
- type: Bloodstream
bloodReferenceSolution:
reagents:
- ReagentId: InsectBlood
Quantity: 1
- type: MobPrice
price: 50
- type: NPCRetaliation
- type: FactionException
- type: NpcFactionMember
factions:
- Passive
- type: HTN
rootTask:
task: SimpleHostileCompound
- type: Destructible
thresholds:
- trigger:
!type:DamageTypeTrigger
damageType: Blunt
damage: 20
behaviors:
- !type:GibBehavior
recursive: false
- type: AmbientSound
enabled: true
volume: -3
range: 8
sound:
path: /Audio/_QB/Animals/mosquito.ogg
- type: Tag
tags:
- Trash
- MultitoolDefibrillatorTarget
15 changes: 15 additions & 0 deletions Resources/Prototypes/_QB/GameRules/pests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@
prob: 0.04
- id: PolyoomyciteVentSpawner
prob: 0.02

- type: entity
id: MosquitoSpawn
parent: BaseStationEventShortDelay
components:
- type: StationEvent
earliestStart: 20
minimumPlayers: 1 #Nobody is safe
weight: 5
duration: 60
- type: VentCrittersRule
announce: false # CC can't detect this
entries:
- id: MosquitoVentSpawner
prob: 0.05
19 changes: 19 additions & 0 deletions Resources/Prototypes/_QB/Markers/Spawners/Conditional/timed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,22 @@
chance: 0.9
minimumEntitiesSpawned: 1
maximumEntitiesSpawned: 4

- type: entity
name: Mosquito Vent Spawner
id: MosquitoVentSpawner
parent: MarkerBase
components:
- type: Sprite
layers:
- state: blue
- sprite: _QB/Mobs/Animals/mosquito.rsi
state: icon
- state: timed
- type: Timer
- type: ClusterSpawner
prototypes:
- MobMosquito
chance: 0.9
minimumEntitiesSpawned: 3
maximumEntitiesSpawned: 10
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.
21 changes: 21 additions & 0 deletions Resources/Textures/_QB/Mobs/Animals/mosquito.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"version": 1,
"license": "CC-BY-SA-4.0",
"copyright": "by rebe83 (Github)",
"size": {
"x": 16,
"y": 16
},
"states": [
{
"name": "icon"
},
{
"name": "dead"
},
{
"name": "mosquito",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading