Skip to content

Conversation

@Pyetrek
Copy link

@Pyetrek Pyetrek commented Aug 26, 2022

Adds the ability to change the rotation of a prefab after it has spawned. Useful for when you are spawning non-monster prefabs like wall pieces.

@Pyetrek
Copy link
Author

Pyetrek commented Sep 3, 2022

@ASharpPen would you mind taking a look?

@ASharpPen
Copy link
Owner

Hm, since you can't precisely control the position, how you are using the rotation?

@Pyetrek
Copy link
Author

Pyetrek commented Sep 4, 2022

Hm, since you can't precisely control the position, how you are using the rotation?

I am using this in conjunction with Pyetrek@c29cd6c (still a work in progress) to be able to specify my own groups of things to spawn. For instance, this config below will spawn a gray dwarf nest surrounded by sharp stakes. Makes for a pretty interesting raid on a base:

[BlackForest]
Name = BlackForest
Enabled = true
Random = true
Biomes = 
Duration = 50
StartMessage = The enemy are entrenching around your base!
EndMessage =
NearBaseOnly = true
## List of global keys disabling raid
NotRequiredGlobalKeys = defeated_bonemass
## List of required global keys. Leave empty for no requirement
RequiredGlobalKeys = defeated_gdking
RequireOneOfGlobalKeys = 
PauseIfNoPlayerInArea = true
ForceEnvironment = Eikthyr
ForceMusic = CombatEventL1
Faction = Boss
## Minutes between checks for this raid to run. 0 uses game default (46 minutes). This is only used if UseIndividualRaidChecks is set in general config.
RaidFrequency = 0
## Chance at each check for this raid to run. 0 uses game default (20%). This is only used if UseIndividualRaidChecks is set in general config.
RaidChance = 0

[BlackForest.0]
Name = ProtectedSpawners
Enabled = true
PrefabName = Spawner_GreydwarfNest
HuntPlayer = true
MaxSpawned = 1
SpawnInterval = 10
SpawnChancePerInterval = 100
GroundOffset = 0
SpawnDistance = 5
SpawnRadiusMin = 5
SpawnRadiusMax = 10
InForest=false

[BlackForest.0_0]
Name = SharpStakes0
Enabled = false
PrefabName = piece_sharpstakes
GroundOffset = 0
RotationY=0
TranslateX=0
TranslateZ=-4

[BlackForest.0_1]
Name = SharpStakes45
Enabled = false
PrefabName = piece_sharpstakes
GroundOffset = 0
RotationY=45
TranslateX=-4
TranslateZ=-4

[BlackForest.0_2]
Name = SharpStakes90
Enabled = false
PrefabName = piece_sharpstakes
GroundOffset = 0
RotationY=90
TranslateX=-4
TranslateZ=0

[BlackForest.0_3]
Name = SharpStakes135
Enabled = false
PrefabName = piece_sharpstakes
GroundOffset = 0
RotationY=135
TranslateX=-4
TranslateZ=4

[BlackForest.0_4]
Name = SharpStakes180
Enabled = false
PrefabName = piece_sharpstakes
GroundOffset = 0
RotationY=180
TranslateX=0
TranslateZ=4

[BlackForest.0_5]
Name = SharpStakes225
Enabled = false
PrefabName = piece_sharpstakes
GroundOffset = 0
RotationY=225
TranslateX=4
TranslateZ=4

[BlackForest.0_6]
Name = SharpStakes270
Enabled = false
PrefabName = piece_sharpstakes
GroundOffset = 0
RotationY=270
TranslateX=4
TranslateZ=0

[BlackForest.0_7]
Name = SharpStakes315
Enabled = false
PrefabName = piece_sharpstakes
GroundOffset = 0
RotationY=315
TranslateX=4
TranslateZ=-4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants