Skip to content

Commit

Permalink
Xeno Hunter (#371)
Browse files Browse the repository at this point in the history
* Xeno Hunter

Добовляет ксеноморфа охотника

* fix

* fix2

* ffffff
  • Loading branch information
Tenteratus authored Jun 19, 2024
1 parent c3e339f commit acdf403
Show file tree
Hide file tree
Showing 12 changed files with 167 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ ghost-role-information-mimic-clown-rules = Вы - антагонист, убив
ghost-role-information-mimic-greytide-name = ассистент-мимик
ghost-role-information-mimic-greytide-description = Вы - одна из самых страшных и загадочных вещей из тех. тоннелей.
ghost-role-information-mimic-greytide-rules = Вы - антагонист, убивайте и охотьтесь на экипаж.
ghost-role-information-xenomorph-hunter-name = Ксеноморф охотник
ghost-role-information-xenomorph-hunter-description = Вы - ксеноморф охотник. Вы - идеальный организм, созданный лишь для одной цели - убивать!
ghost-role-information-xenomorph-hunter-rules = Вы - антагонист, убивайте и охотьтесь на экипаж, старайтесь устравивать засады и не лезть в открытый бой.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ent-MobXenoHunter = ксеноморф охотник
.desc = Обычно они приходят ночью. Обычно...
12 changes: 12 additions & 0 deletions Resources/Prototypes/Damage/modifier_sets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -337,3 +337,15 @@
Poison: 0.0
Radiation: 0.0
Caustic: 0.0

- type: damageModifierSet
id: Xenomorhp
coefficients:
Blunt: 0.5
Slash: 0.5
Piercing: 0.5
Shock: 0
Cold: 0
Heat: 1.5
Poison: 0.0
Radiation: 0.1
19 changes: 19 additions & 0 deletions Resources/Prototypes/GameRules/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -604,3 +604,22 @@
maxOccurrences: 1 # this event has diminishing returns on interesting-ness, so we cap it
weight: 5
- type: MobReplacementRule

- type: entity
id: XenomorphMigration
parent: BaseStationEventShortDelay
components:
- type: StationEvent
earliestStart: 30
startAnnouncement: station-event-vent-creatures-start-announcement
startAudio: # Starshine
path: /Audio/Starshine/Announcements/lifesigns.ogg
params:
volume: -4
weight: 6
minimumPlayers: 15
duration: 60
- type: VentCrittersRule
specialEntries:
- id: SpawnPointGhostXenoHunter
prob: 0.00001
82 changes: 82 additions & 0 deletions Resources/Prototypes/Starshine/Entities/Mobs/NPCs/xenomorph.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Hacky for the stress test so don't even consider adding to this
- type: entity
name: Hunter
id: MobXenoHunter
parent: MobXeno
components:
- type: MovementSpeedModifier
baseWalkSpeed : 3.5
baseSprintSpeed : 6.5
- type: Tool
speed: 1.5
- type: Hands
- type: ComplexInteraction
- type: Sprite
sprite: Starshine/Mobs/Aliens/Xeno/hunter.rsi
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.4
density: 1000
mask:
- MobMask
layer:
- MobLayer
- type: MobThresholds
thresholds:
0: Alive
150: Dead
- type: SlowOnDamage
speedModifierThresholds:
120: 0.7
- type: Damageable
damageModifierSet: Xenomorhp
- type: Stamina
critThreshold: 400
- type: MeleeWeapon
altDisarm: false
damage:
types:
Slash: 20
Structural: 20
- type: StaminaDamageOnHit
damage: 40
- type: Puller
needsHands: false
- type: GhostRole
allowMovement: true
allowSpeech: true
makeSentient: true
name: ghost-role-information-xenomorph-hunter-name
description: ghost-role-information-xenomorph-hunter-description
rules: ghost-role-information-xenomorph-hunter-rules
raffle:
settings: default
- type: GhostTakeoverAvailable
- type: TypingIndicator
proto: alien
- type: Temperature
heatDamageThreshold: 360
coldDamageThreshold: -150
currentTemperature: 310.15
- type: NoSlip
- type: Perishable #Ummmm the acid kills a lot of the bacteria or something
molsPerSecondPerUnitMass: 0.0005
- type: Speech
speechVerb: LargeMob
- type: PassiveDamage # Around 15 damage a minute healed
allowedStates:
- Alive
damageCap: 150
damage:
types:
Heat: -0.25
Bloodloss: -0.1
groups:
Brute: -0.25
- type: NightVision
isToggle: true
color: "#808080"
playSoundOn: false
20 changes: 20 additions & 0 deletions Resources/Prototypes/Starshine/Entities/Spawners/ghost_roles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- type: entity
id: SpawnPointGhostXenoHunter
name: ghost role spawn point
suffix: xenomorph hunter
parent: MarkerBase
components:
- type: GhostRole
name: ghost-role-information-xenomorph-hunter-name
description: ghost-role-information-xenomorph-hunter-description
rules: ghost-role-information-xenomorph-hunter-rules
raffle:
settings: default
- type: GhostRoleMobSpawner
prototype: MobXenoHunter
- type: Sprite
sprite: Markers/jobs.rsi
layers:
- state: green
- sprite: Starshine/Mobs/Aliens/Xeno/hunter.rsi
state: running
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.
28 changes: 28 additions & 0 deletions Resources/Textures/Starshine/Mobs/Aliens/Xeno/hunter.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from Colonial Marines at commit https://gitlab.com/cmdevs/colonial-warfare/-/commit/f6b3c61fcbfe73a3f0f92edd5fc441ef845017e5 Sprites centered by metalgearsloth",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "running",
"directions": 4
},
{
"name": "walking",
"directions": 4
},
{
"name": "dead"
},
{
"name": "sleeping"
},
{
"name": "crit"
}
]
}
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit acdf403

Please sign in to comment.