Skip to content

Commit

Permalink
adds N14 factions for NPCs and start of ranged NPC behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Peptide90 committed Jun 26, 2023
1 parent 175b6b2 commit 853d617
Show file tree
Hide file tree
Showing 6 changed files with 153 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Resources/Prototypes/Entities/Mobs/Player/human.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- type: CanHostGuardian
- type: Faction
factions:
- NanoTrasen
- Wastelander

#Syndie
- type: entity
Expand Down
10 changes: 10 additions & 0 deletions Resources/Prototypes/NPCs/mob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,13 @@
- id: FollowCompound
- tasks:
- id: IdleCompound

- type: htnCompound
id: SimpleRangedHostileCompound
branches:
- tasks:
- id: RangedCombatCompound
- tasks:
- id: MeleeCombatCompound
- tasks:
- id: IdleCompound
25 changes: 22 additions & 3 deletions Resources/Prototypes/Nuclear14/Mobs/NPCs/basemob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- type: MobMover
- type: Faction
factions:
- SimpleHostile
- WastelandHostile
- type: HTN
rootTask: SimpleHostileCompound
- type: Sprite
Expand All @@ -24,7 +24,7 @@
- type: Physics
- type: MovementSpeedModifier
baseWalkSpeed : 3
baseSprintSpeed : 6
baseSprintSpeed : 3
- type: Fixtures
fixtures:
- shape:
Expand Down Expand Up @@ -100,7 +100,7 @@
rootTask: SimpleHostileCompound
blackboard:
NavInteract: !type:Bool
true
false
NavPry: !type:Bool
true
NavSmash: !type:Bool
Expand All @@ -112,6 +112,25 @@
- type: WaveMob
difficulty: 1

- type: entity
abstract: true
parent: N14MobWave
id: N14MobWaveSmart
components:
- type: HTN
rootTask: SimpleHostileCompound
blackboard:
NavInteract: !type:Bool
true

- type: entity
abstract: true
parent: N14MobWaveSmart
id: N14MobWaveRanged
components:
- type: HTN
rootTask: SimpleRangedHostileCompound

- type: entity
abstract: true
id: N14MobWaveAnimal
Expand Down
27 changes: 27 additions & 0 deletions Resources/Prototypes/Nuclear14/Mobs/NPCs/humanoid.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
- type: entity
parent: [ N14MobHuman, N14MobWaveRanged ]
id: N14MobRaider
name: Raider
description: A mean looking individual. Wants to mess you up.
components:
- type: Loadout
prototypes: [ RaiderGearRanged1 ]
- type: Faction
factions:
- Raider

- type: startingGear
id: RaiderGearRanged1
equipment:
# jumpsuit: ClothingUniformJumpsuitERTLeader
# back: ClothingBackpackERTLeaderFilled
# shoes: ClothingShoesBootsJack
# head: ClothingHeadHelmetHelmet
# eyes: ClothingEyesGlassesSecurity
# gloves: ClothingHandsGlovesColorBlack
# outerclothing: ClothingOuterVestKevlar
# id: ERTLeaderPDA
# ears: ClothingHeadsetAltCommand
# belt: ClothingBeltSecurityWebbing
# pocket1: Flare
inhand1: N14WeaponShotgun
14 changes: 14 additions & 0 deletions Resources/Prototypes/Nuclear14/Mobs/Species/human.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- type: entity
save: false
name: Wastelander
parent: MobHuman
id: N14MobHuman
components:
- type: Faction
factions:
- Wastelander
- type: RandomMetadata
nameSegments:
- names_first
- names_last
- type: RandomHumanoidAppearance
79 changes: 79 additions & 0 deletions Resources/Prototypes/Nuclear14/ai_factions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
- type: faction
id: Wastelander
hostile:
- SimpleHostile
- Raider
- Enclave

- type: faction
id: Tribal
hostile:
- WastelandHostile
- Raider
- Enclave
- BOSMidwest
- BOSWashington
- NCR

- type: faction
id: CaravanCompany
hostile:
- WastelandHostile
- Raider
- Enclave

- type: faction
id: NCR
hostile:
- WastelandHostile
- Raider
- BOSMidwest
- BOSWashington
- Enclave

- type: faction
id: Raider
hostile:
- Wastelander
- WastelandHostile

- type: faction
id: BOSMidwest
hostile:
- WastelandHostile
- Raider
- BOSWashington
- Enclave
- NCR

- type: faction
id: BOSWashington
hostile:
- WastelandHostile
- Raider
- BOSMidwest
- Enclave
- NCR

- type: faction
id: Enclave
hostile:
- WastelandHostile
- Raider
- Wastelander
- BOSMidwest
- BOSWashington
- NCR
- CaravanCompany

- type: faction
id: WastelandHostile
hostile:
- Wastelander
- Raider
- Enclave
- BOSWashington
- BOSMidwest
- NCR
- CaravanCompany
- Tribal

0 comments on commit 853d617

Please sign in to comment.