branchrust_reboot/main/hardcore_refreshcancel
43 Commits over 30 Days - 0.06cph!
Fix server not sending fog images to client on connect
Possible NRE fix when connecting to a hardcore server and dying quickly
Rename convar enum for clearer options down the line
Added the ability for a game mode to multiply the crafting cost of a set of items
Uses the loot tag system, added a new FirearmAmmunition tag
Can be defined in sliders on the gamemode prefab, can also override per game mode to pipe in convars
Exposed multiplier as a convar for hardcore (server.hardcoreFirearmAmmunitionCraftingMultiplier), defaults to x10 crafting cost (WIP)
Applied to : regular/HV/incendiary pistol ammo, regular/HV/invendiary rifle ammo
Can no longer loot rifle, smg or semi bodies
Adjusted map fade in animations on in-game map and death screen map to properly hide underlying info
Fixed clearAllFogOfWar not working on large maps
Enable Burst on DrawPixelsJob
Fixed map marker sfx still playing even if map markers are disabled by game mode
Fixed being able to research items that are marked default craftable but also blocked for crafting in the current game mode (eg. eoka)
Fixed being able to research redirect skins of items that have been marked non craftable by the game mode
Possibly fixed out of range exception when saving fog images
Fix alphaHitTestMinimumThreshold error spam
Suppress warnings in Compass and CompassViewmodel
None compile fix (CompassViewmodel)
Support alpha clipping the fog of war so we get hover events on things like vending machines that have been revealed by fog
Added admin convar debug.clearAllFogOfWar to fully reveal the map
Obscure the underlying map image by 0.15 seconds when opening the map, prevents the map image being visible for a few frames while the fog is fading in
Disable condition on compass
Clean up v_compass.anim.controller missing local files
Fix resetfogofwar command
Possibly, maybe, finally fixed loading fog of war from a save
Switch to RGBAFloat for fog images, looks better and matches the data we're using in the jobs. Still broken after loading though
Fog of war works on death screen map
Fix fog not clearing immediately on spawn
Better initialisation flow for hardcore map, stops parts of it running when booting up in vanilla
Added debug.resetfogofwar
Reapply game mode changes
Merge from main (stomp local BaseGameMode changes, will need to reapply)
Added server.pveBulletDamageMultiplier convar, set to 1.5x on hardcore, affects all damage going from a player -> npc
Added server.respawnTimeAddition convar, adds the given amount of time to all respawn points (bags/beds/etc, won't apply to beach respawns)
Set to 25m for hardcore, brings sleeping bag cooldown to 30m
Subject to change!
Reworked how we handle loot distribution changes, each item now has a loot distribution type and the game mode can raise or lower the weights of all items with that type. Only has a firearms options right now
This is independent of the item category as we need to be a bit more fine grained, it's also a bit mask so an item could be in more than one category (eg. firearms and military)
Added a 50 point modifier to all firearm spawns in loot containers, should double chance of finding guns (needs more testing)
Added the firearms loot type and crafting restrictions to all firearms:
Military Flamethrower
P17
L96
Python
Double barrel shotgun
Pump Shotgun
Homing missile launcher
HC Revolver
MGL
HMLMG
M4
Minigun
Revolver
Rocket Launcher
Bolt Rifle
Eoka
Flamethrower
M249
MP5
Waterpipe shotgun
Spas12
AK
LR300
M39
M92
Semi auto pistol
Semi auto rifle
SKS
Custom SMG
T1 SMG
MP5
Added ability to adjust weighting of items globally in loot spawns per game mode
Fixed vending machine restrictions not being properly applied if era is default
Add ability for items to have a restriction per game mode, extending the era restriction field
These restrictions are stored on the game mode instead of the item but are displayed on the item via a custom inspector
Game mode restrictions are applied prior to the era restrictions
Allows us to restrict items per game mode using the same set of tools we used for the primitive mode (eg. disallow crafting but still allow looting)
Disabled the ak from being crafted as a test