branchrust_reboot/main/Livestock_animalscancel
216 Commits over 92 Days - 0.10cph!
Fixed shears world model not playing deploy animation (was playing fire instead)
Possibly fixed double firing shears sfx and missing attack event warnings
Only require an infant animal to reach 80% happiness in order to max out potential stat
Child animals can now leave the radius of their mother when attempting to eat out of a trough that is out of range from the leash to their mother
Prevents child animals getting stuck with low hunger values while in a pen with a trough
Sharks now flee from players with animal repellant buff
Bulls and rams will no longer flee from players with the animal repellant effect active
They will also not charge
Bee swarms won't chase players with the animal repellant buff (Croc pie)
Can still take damage if you walk through them though
Update croc pie to use new animal repellent modifier
Create recipes, rich version, UI bits
Show genetics on cow panel as well
Don't show the lead option if an animal isn't tamed
Add a tame flag to livestock
Don't show milk option if animal is not tamed
Merge from vendor_changes
Adjusted overcrowded thresholds - crowded (4 -> 5) and severe packing (6 -> 9)
Reduced packing radius from 3m -> 2.5m
Doubled population of cows and sheep in the wild per square km (1 -> 2)
Lower GrazeDayShare from 0.4 -> 0.3 on cows and sheep, meaning they will spend less of the day eating and require less food
Halved dung interval on cows and sheep
Cows and sheep get double fullness when eating from a trough
Fixed reference to animals when selling wool
Fixed some failing tests, all were testing regressions not actual regressions
NPCAnimController perf improvements
Throttle the animator param calculations if the animal has been culled, max once every 0.25
Check the livestock have changed flags before setting the animator params
Disable the F Look component when an animal is culled or if the animal is > 30m away
Don't do the snap to ground raycast if we are culled
In a scene with 40 cows, this reduces FLook and NPCAnimController total of 0.6ms to 0.1ms when occluded, 0.3ms when at a distance
Merge from livestock_hotfixes
Added item ownership for items purchased from livestock vendor
Fixed wrong text displayed if player drops wool mid conversation
Send the livestock to sell via an RPC rather than relying on client side triggers to match up with server side triggers
Filter items offered by livestock vendor by game mode so we don't give guns in primitive
Livestock sale updates:
Fixed turret being offered for low quality, meant to be on the high end
Added options for high end sales:
2-4 basic bp frags
Thompson, custom smg, python, hc revolver
Updated wool sales chart, is now about 75% of livestock sales with no guns
Fixed NPCAnimController allocation per frame when an animal is playing an animation with look at disabled
Timing fix, don't re-up the negotiation timer if the stack has changed
Livestock vendor will now pause the auction process if the wool stack size changes mid offer, you need to make your inventory match the original size for the sale to continue (otherwise it will time out)
Hooked up the icon on the conversation vendor page
Rich beef pie now gives +25% hunger, hydration, etc - matches rich pie standard
Rounded up the values on all rich pies to the closest whole number, we shouldn't show decimal points for things like this
Fixed buffs tooltip not able to show times > 60m
Update milk description to reference skimming
Fix calves purchased at ranch sometimes pulling their name from the wrong gender list
Fix error when saving modular cars on a thread
Created new Crab_Media, a prefab that drives crab movement in the shader based on transform movement
Ideal for timeline usage
Required some minor changes to the critter shader
Fixed missing strings for crab_single
Added some stub client RPC's to fix the missing RPC spam
Pie topper entity and viewmodel hook up
Fixed rich mutton pie name
S2P ferry terminal and radtown