4,406 Commits over 1,249 Days - 0.15cph!
merge from copy_paste_clientside_fixes -> main
Fixed `killbox` command skipping entities it should delete instead of the other way around
Prevent `killbox` from killing players on the server
Print out "Pasted 5 entities" in F1 console
merge from main -> copy_paste_clientside_fixes
Set softcore max team size for 4
- also limits 4 players per TC and turret
Fix another NRE from wounding in softcore
Prevent TC from being repaired if it would overlap another TC once it's repaired
Fix wrong convar being set to prevent backpacks from being dropped when players are wounded in softcore
merge from fix_wounded_nre -> softcore_update
Fix NRE when running injure command in softcore mode
merge from tc_changes -> softcore_update
Move flag that blocks all building when TC is destroyed to `CanBuild()` method inside BuildingPrividge
- move all building checks from IsAuthed() -> CanBuild()
- ensures all other TC auth checks don't get messed up by prevent building flag
merge from softcore_update -> tc_changes
Fix keylock not spawning locked when corpse is repaired
merge from respawn_changes -> softcore_update
When respawning and trying to reclaim items, drop extra items in a dropped bag
Switch dropped bag from white -> corpse bag when dropping extra reclaim loot
Don't respawn with items in softcore if you die inside building privilege
- convar `reclaim_building_auth` controls it
merge from softcore_update -> respawn_changes
merge from tc_changes -> softcore_update
Fix codelocks spawning as locked but with no code after a deployable corpse is repaired if the lock was unlocked when the deployable was destroyed
merge from upkeep_changes -> softcore_update
Set `use_door_upkeep_brackets = true` in softcore gamemode
Add extra phrase to show both building block and door upkeep brackets in the TC loot panel
Add support for doors to have their own upkeep brackets and calculate upkeep seperately in softcore mode
- store List<Doors> per building
- calculate different upkeep brackets for doors vs building blocks
- show both "10 blocks at 10%, 5 doors at 20%" in TC tooltip if doors are on the base
Placeholder values for door upkeep brackets
merge from respawn_changes -> softcore_update
Only merge backpack partial stacks if something is taken from the backpack for the reclaim system
Make backpack dropped on death if not reclaimed instead of staying on the corpse
- backpack still stays on player if you are wounded in softcore (to enforce reclaim of backpack contents)
Move drop backpack to `WoundedStartSharedCode()`
Fix drop backpack for wounding not being called when the player is set to crawling
Make sure "drop backpack on death" is only called when they die and not when they are wounded
- no change to behavior, fixes convars for "drop backpack on death vs wound"
Handle all default items, not just rocks and torches
Ensure rocks, torches and other starting items are never reclaimed
Don't reclaim loot when respawning if the player is F1 killing
- ignore situations where you are F1 killing after being wounded
Fix 100% of clothing being reclaimed on death instead of 0% of clothing
merge from softcore_update -> respawn_changes
merge from tc_changes -> softcore_update
Set spawned lock on corpse to the "Lock" slot
- fixes lock not respawning after deployable is broken and repaired 2x
- fixes codelock not preventing looting of box after corpse is repaired
Rename entity -> lockEntity
merge from softcore_update -> tc_changes
Fix sleeping bag corpses spawning their own corpse so they could never truely be destroyed
Create sleeping bag corpse as a variant of the normal sleeping bag prefab
- keeps all respawn prefab setup identical
Fix corpse not being spawned from `ent kill` after refactor
Reassign all the corpse references since the field name was changed
Refactor / rewrite so that corpses are dropped from `BaseCombatEntity` instead of `StorageEntity`
- rename methods like `DropCorpse()` -> `DropDeployableCorpse()`
- keep it seperate from normal animal & player corpse code
Add support for sleeping bags corpses to be destroyed after a player spawns on them
merge from tc_changes -> softcore_update
Save the codelock & keylock on deployable corpses
- respawn codelock / keylock when the deployable is repaired