549 Commits over 215 Days - 0.11cph!
Fixed a bad target blackboard read in SleepInTerritory
Added a Select Random Position in territory so that the animal would actually go to it's territory to sleep
Fixed a bad selector target in CombatAbilitySelector
Fixed party movement distance check not working
Fixed combat ability selector not using the right target and failing all distance checks
Quivers now get equipped on back slots and are not held in hands
Added a WeaponEquipPoint field to CombatAbilityParameters to specify how a weapon should be held for the given combat ability. Set Bow-Shoot to LHand, everything else defaults to RHand.
Marked take branch interactions on trees as Require Item Pick Up (branches were flying away when taken from trees)
Target keyword can now be used in Goal Plan Variant descriptions - fixes a bunch of in-game text showing {Target}
Hooked up two meshes to particle system shape components to stop chopped down birch trees from spamming warnings while playing - this was done on the prefabs directly, there could be changes needed on the TreeModelEditor to prevent this happening in future
Added a Use Attachment Points field to Container that parents items to attachment points in the container hierarchy. Recursively looks for a transform named "AP_XX" to parent to (eg. AP_06 or AP_12)
Attachment Point containers will now resort their items when an item is dropped
Marked basket as placeable so that a full basket can be set down in camp for people to eat from
Items now store if they were placed when saving, fixes placed items getting physics enabled after loading a game
Added baskets to the advanced crafting unlock (reach apprentice whittling)
Added a missing ProtoInclude for PersistedIgniteableData
Fixed being able to trigger place item on something that isn't held
{BLACKBOARD_ITEM} keyword can now be used on goal plans
Added an extra indicator when placing items to indicate where an item will go and what it's rotation will be (outline material used for building placement is hard to see on small items like torches/baskets)
Can now specify on a placeable item whether it can be rotated, defaults to true and marked torch and basket as false (rotation has no impact on these)
Can now ignite an unlit igniteable while holding a lit item (previously only the opposite was possible)
Updating occluder branch from main
Updated CameraOcclusion system to use new unit highlighting system
WIP hostile raiding implementation
-Only implemented on wolves
-Similar system to Human Party system (should theoretically work with hostile tribes as well)
-A collection of 2-4 units is created at night, the collection leader then finds the players territory and starts moving towards it
Reworked raid objective (just position for now) into a new RaidDesire desire type. Can eventually be used to store an objective for a raid (eat from this spit, attack this building, etc)
Added human wake up logic to the animal sleep system, seems to work ok? Animals weren't waking up in testbox scenes, presumably there just isn't enough stuff to wake them up
WIP raid objectives, animals will only raid if there is food in the camp
More raid stuff, animals will now eat food they find in your camp
Raid gets disbanded once the target interaction is no longer valid
Player's group diplomacy component now tracks the last time the group was raided and added a 12-24hr cooldown so raids don't happen too often
Added a MoveAwayFromFire goal to animal idle, lets torches and campfires act as deterrents to animals
Tweaked aggression values to make animals more dangerous (just wolves right now) and fixed some issues with calculating hostility
Raid target falls back to just going to the player camp location if no valid interactions (like eating) are available
Tribe spawner now tracks ItemViews as well as BuildingViews so proper items are spawned with the premade tribes
Updated blackboard syntax based on main changes
Updated UnitStatusUtility to return friendly if unit a and unit b are player controlled
TOD Light consideration can now look at the date time instead of light intensity (light intensity goes back up at night thanks to moon light, so it's not a good indicator of is it night time)
Raids should now happen at night
Switched night time consideration to use the TimeRangeParameters system
Reworked raid creation - Diplomacy component now has a raid time and possible units to spawn in the raid. It then spawns these units as a collection and triggers the existing raid mechanics.
This is instead of creating a collection out of existing units, this approach didn't really work in proper game scenes since animals were often killed or scattered.
Added some combat target tinkering in the raid desire to try and make raiding animals more aggressive
Cleaned up some now unneeded raid creation stuff
Clean up/remove old fader occlusion system
Merging unit_occluders branch, units in the players tribe will now get their highlight turned on when blocked by Resource or Ground layers
Occlusion casts to head rather than transform to fix highlight turning on because transform was too close to ground collider
Merging raids branch - can toggle raids off completely by unchecking RunRaids on the Tribe group diplomacy component
Exposed raid sizes on the diplomacy parameters
Added a starting delay for raids (set to 24h, so raids start on the second night)
Added a button to launch a raid immediately in the diplomacy inspector
Added random ranges for time between raids
Reverted wolf aggression back to 2 (was 2 before raid changes, ambient pre-existing wolves are too aggressive on island_01)
Added a Raiding effect that gets applied to units to increase aggression during raids
Added a rock spawner near the starting area on Island_01 so the first building is easier to make
Fixed smartobjects initialising their interactions before their interaction positions (caused the interaction to not init successfully, made buildings impossible to interact with)
Don't calculate lag locations (used for party movement) if we're not in a party
Raid positions are now checked to ensure they can reach the player's camp - prevents spawning raids inside cliffs
renamed female damage renderer (needs to be have damage in the name, was called human_female_overlay)