branchrust_reboot/main/CardGamescancel
464 Commits over 120 Days - 0.16cph!
Make the playing card material slightly emissive, useful for playing in relatively dark interiors
Removed CurrentBet from card game saved data (we get that from player data now)
Fix NRE when player leaves game when only 2 players are left and it's the leaving players turn
Adjusted card UI to only need one canvas
Better blending for the world-space cards
Add card deck with transparent backgrounds
Fixed card bone attachment. Cards now move correctly with the hands
Minor edit to use IsValid
Change the placeholder cards on the viewmodel to large versions
Set playing card UI shader to match the base view model
- Rewrote the card holding view model show/hide
- Refactored sending and handling the local player's cards
Add missing ViewmodelRenderer component to cards VM
Basic hack to get the card-holding view model to show up for the local player. Will redo this properly later
Terrain update for my test map
Playing cards viewmodel setup - 1st pass
Anims
Animator
Prefab
Added Matt's card model & textures
Made a material & assigned textures
Add a chance for the random move option to sometimes fold if the hand isn't good
Fixed AI's raising too much
Fixed some test window issues
Various rules updates and fixes
Merge CardGames/HandleAllIn -> CardGames
Removed bottles etc from the bandit camp poker tables. Due to a quirk in the interaction system and the proximity to the chip storage, the bottles ended up showing up with an Open interaction, which was a bit confusing.
Random moves don't go all-in unless they have to
Refactored how we handle the active player index. Handling conversion between relative numbers (player 1, player 2...) and the actual index values of the players in different seats. Handles cases like having only players 0, 1, 3, and 5 in a game.
Safety check on random moves
- Improve small blind/big blind getter
- Show dealer/big blind/small blind in the UI
- Currently bugged, but at least this shows up the bugs
Actually temp revert for a better fix
Fixed small blind/big blind index calculation
Fixed a case where the game wouldn't end correctly if one player was left after a player leaves the table
Fixed players not getting kicked out if they couldn't pay the small blind
Some general code tidy up
Add vsconfig to ignore list
- Turn timer fixes
- Free the card list in CardPlayerData properly
Some general code cleanup
Fixed some incorrect layer assignments on the different versions of the poker table
Fix deactivated card tables at bandit camp
Only show the turn timer in the UI when it's the local player's turn
▄▊▋█▍▅ ▋▍▍▋▅▊▍▆▋▅▉▄ █▊ ▍▆ ▍▆█ ▉▉▄ ▌▉▌▌▇▍▆▊▋▄▄▆▄ ▄▌▊▅▅▉▍
▇▍▉▅▄ ▉ █▌▊▉▍ █▊▋▅ █▍▆▇▄▍▄▇▉ ▍▆ ▉▍▇ ▇▅▆▄ ▉▊▌▄▊ ▋▋
▄▄▇▍ ▄▇▌▍▋▄ ▊▄▉▆▇▌▋ - ▋█▌▋▋▊▉▆▆▌▋▆ ▍▄▆ ▉▌▊▊▅▋▋▅▉█▊█▄ ▇▌▍▅▊▆▆
▇▄▊▄▄ ▌▄▇█▆▄▆▉ ▊▊▄▇ ▅▄▄▍▆ ▄▋▆ █▍▅▅▌▆ ▌▄▊▋▇▌▍▍▅ █▇▉▊▅█ ▉▅▅▍▇ ▆▉▋▌▅▄ ▍▌ ▉▌▌▅▉▍ ▅▆▍▌
▇█▆▊▅▄▅▇ ▅▉▉▊ ▅▊▆▋█ ▍▍▇-▊▋▊▄▄▅ ▆▍▊▆▉ ▇▆ ▉ ▄▇▆▉ ▊▄▌▋▇█▅▋ ▌▄▍▊▅
▆▇█▌ ▇▉ ▇▇▊▄▊▉ █▉█▆▋ █ ▌▋▅▋▄▊ ▊▊▌█▉▄, ▄▆▊'█ ▊▅▍▌ ▍▋▌▊▄▍ ▄▅'█ ▄▉▅ ▊▉▅▉ ▊▉▇▌▅▋▋▌▌ ▊▄▇▍▍▌
▋▄▌▉ ▌▋▌▌▉ ▊▍▋▋▄▋ ▊▇▌▌ ▇▍█▌▆/▉▍▍▌/▆▆▊▄▆ █▇▄▄▅▋ ▅▄ ▇▉▌█▇▅/▄█▄▉▄/█▇█▆▅ ▉▄▍▋▄▊
▅▋▅▇ █▌ █▇█▆▅▄ ▄▉▄▄▍▆▌▍▌ ▆▊▍█▇▄▆. ▍█▆▋▌█ ▍▄ ▆▉▊▊▆ ▅▍▋▍█▋▍ ▇▌█▊ ▋▅▆▍▄▅▍▅▋ ▆▇▄▄█▆▊.
Remove extra check on SendAllCards since it's redundant: !HasRoundInProgress already covers the extra state.
▆▉▆▊▋▆ ▅▅▇▇▇▉▊ ▌▄▌-▇▊ ▇▊ ▉▇▋ ▉▋▋ ▇▊▄ ▋▆▉▉▅ (▊█▉ ▍▇▌)