85 Commits over 0 Days - ∞cph!
GetVoxel: return 0 for unallocated chunks
Fix warnings from RangedFloat API changes
FlattenGround: do bigger things first
First pass at implementing FlattenGroundComponent
https://files.facepunch.com/ziks/2024-08-16/sbox-dev_nWg5BriXua.png
https://files.facepunch.com/ziks/2024-08-16/sbox-dev_gZGfddKkMi.png
Fleshed out world damage
Now uses passed in Damage value
Has falloff up to Radius
Got rid of multiple CarveModification hack
A bit slow with large radius ATM
https://files.facepunch.com/ziks/2024-08-16/sbox-dev_7gsWLQoZrz.png
Don't network mob state machines
Restructure world gen so we can modify heightmap while placing objects
Actually fix drone NRE
Skeleton FlattenGroundComponent
https://files.facepunch.com/ziks/2024-08-16/sbox-dev_JiSjz6Jl5u.png
Update libstates
Possible fix for NRE in drone FSM
Make missile bot damage ground
Simplify some voxel modification RPCs
Add some documentation to IModification
Add BuildModification
Set BlockType in Item, dunno if this is actually needed
WIP ore seams
Fix for possible NRE in Roller state machine
Spawn metal piles
Model might need scaling down
Spawn players near beaches
Put these back
Some safety in SetPalette
Mark voxel textures as used again
Reimplement dirt punching
Let mining laser destroy soil
Fix prop rotation not being deterministic
Generate some soily beaches
I don't know what this is doing but it's making everything too dark
Make noise texture match voxel resolution
Spawn item on block destroy
Blocks respect GatherSourceKind
Block health working
Every hit does 1 damage for now
Fix possible NRE in drone chase graph
Starting on block health
Fix loading voxels from a save
Save world gen seed etc, nicer RLE for chunks
LoadWorldState, untested
Fix VoxelModel.DrawGizmos
Speed up world gen
https://files.facepunch.com/ziks/2024-08-15/sbox-dev_eWK5BoSjtT.mp4
Fix some warnings
Spawn props on clients too, only network prefabs with NetworkMode.Object
Expose parameter for biasing towards plains or mountains
Rock node / fragment features
Hook up some more world features
World gen can spawn objects
Add BiomeSampler to scene
Let's have the voxel world at z=0
Use a spawner for the spider boss
WIP
World gen parameters
Update libstates
Make world gen a bit flatter for now
Fix destroying voxels on non-host
Bump up world height to 128
Hacky voxel modification networking
VoxelWorldGen component, use seed
Use new modification stuff for voxel damage
Started on voxel networking boilerplate
Implement world gen as IModification