branchrust_reboot/main/primitive_gmcancel
152 Commits over 123 Days - 0.05cph!
Whoops: supposed to KEEP the RHIB in primitive
Set convar in primitive gamemode so rowboat spawns rear of cargo instead of rhib (since RHIB is supposed to be disabled)
Add convar `cargo_escape_boat_rhib` to control whether a rowboat or rhib will spawn on the back of cargoship
Ensure missions can't give out items that are blocked by an era
- ideally missions rewards are changed if they aren't allowed in an era but this is a failsafe
Ensure vending machines don't sell restricted items
- block orders with restricted items from being networked
- also block it from being bought if the sell order somehow goes through
Show a red background around restricted items in the F1 menu
Add primitive version of T1 tech tree, except satchel is missing (as an example)
Mark existing tech trees as the unknown era
Add support for a different tech tree for primitive gamemode
Modify era editor window so you can select an era and see what items are blocked
- default is "none", will show orange for unassigned items
- selecting "primitive" will show red for blocked items
Fix compile error from using statement creeping in
Ensure primitive gamemode sets the era convar to "primitive" (which is what applies the item restrictions)
Fix items being blocked when server has unassigned era
Only following weapons enabled in primitive
- melee
- bow, crossbow, compound bow
- nailgun
- water pipe
- double barrel
- revolver
Unassign all item's eras to start from scratch
merge from main -> primitive_gm
Items not assigned to an era will be available to all eras
Disable saving item after changing an item's era because it actually lag spikes the editor
Double the amount of horses spawned in the wild in primitive gamemode from 2 -> 4 per km^2
When trying to change replicated convars from the F1 menu on the client / from the editor, send the replicated convar to the server (as if you prefixed it with `sv`) instead of telling the client it can't change replicated convars locally
Add convars for boat purchases as well
- `vendor_sub_solo_enabled`
- `vendor_sub_duo_enabled`
- `vendor_rowboat_enabled`
- `vendor_rhib_enabled`
Add primitive gamemode to manifest so it can be loaded
Now that we have convars, apply default settings to primitive gamemode
- block metal & hqm upgrade tiers
- disable patrol heli event
- disable purchase of minicopter, scrap heli & attack heli from airwolf vendor (he only sells hot air balloon now)
Added replicated convars to control vehicle purchases
`vendor_minicopter_enabled`
`vendor_hab_enabled`
`vendor_attack_heli_enabled`
`vendor_scrap_heli_enabled`
Will modify the conversation options of the NPCs so you don't see blocked vehicles available for purchase & block the purchase of the vehicle itself
Fixed server events being removed from list of events when disabled
Fixed toggling server event not being printed to server console
Add convars to modify server events
`print_server_events` will list all events & their settings
`set_event_enabled <event> <true|false>` will enable/disable events
`set_event_min_delay <event> <delay>` will set in-game hour minimum delay
`set_event_max_delay <event> <delay>` will set in-game hour maximum delay
Create primitive gamemode prefab
Also expose ability to modify a weapon's workbench level via an override
Add ability to override crafting cost & crafting time of items based on the era
Save item to disk immediately when modifying era of item via era editor window
Add convars to control what building grades are allowed
- `upgrade_{grade}_enabled` will remove upgrade tiers
- `upgrade_{grade}_cost_multiplier` will increase or decrease the cost
- `build_twig_cost_multiplier` is used for twig
- replicated so applied to both the clientside UI & server resources taken
merge from main -> primitive_gm
Apply era restrictions to recycler output so you can't recycle items to get blocked items
Enforce era restrictions onto loot tables
- likely will have custom loot tables but this prevents any items squeaking through
- caches valid items for each era in loot tables, resets when era is modified
Cherrypick era convar after merge
merge from main -> primitive_gm
Add refresh button to the top of the era editor to refresh all items
- used if you change prefabs without using GUI
Don't show redirect items in era editor window
When checking if a redirect's era, use the redirects era
Set 600/1000 items to a sensible default era
Fix assets not being marked as dirty and not saving after being assigned an era (ask me how I know)
Finished era editor window
- tons of fixes to make it actually work
- show orange as background when item is unassigned to an era
Add era convar
Restrict items showing up in crafting menu depending on era
Work on era editor window to change item era easily (WIP because implemented on laptop)
Add tags to a bunch of items & assign era to a bunch of obvious items
Tags applied to items prefabs
Switch default era from None -> Unknown and add new "Any" era so we know what items are explicitly allowed in any era vs unassigned
Add tags for era to item assets
Every item reserialized after adding era field & updating asset tags