Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller support #416

Draft
wants to merge 56 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
f34a14b
feat: joystick aim and movement
Arman-AIi Nov 15, 2024
29c3904
refactor: removed unnecessary activePlayer const
Arman-AIi Nov 15, 2024
78dabad
refactor: named axe variables + one less indent
Arman-AIi Nov 15, 2024
dfd54b8
feat: added joystick sensitivity slider for people with stick drift
Arman-AIi Nov 16, 2024
0effb6d
fix: hide controller tab content by default
Arman-AIi Nov 16, 2024
78cc4f5
feat: allow players to switch joystick functions
Arman-AIi Nov 16, 2024
748da8a
feat: hide controller tab when controller isn't detected
Arman-AIi Nov 16, 2024
f3bc168
feat: separate sliders for left and right joystick sensitivity
Arman-AIi Nov 16, 2024
6206403
fix: only start ticker if controller connects, and kill ticker if it …
Arman-AIi Nov 16, 2024
70b757e
slightly adjust mp40 loot+kf
ei-pi Nov 14, 2024
f10a3fc
fix: glitched river generation
hsanger Nov 15, 2024
6b04ff8
feat: update outdated airdrop winter reskins
1092384 Nov 15, 2024
696f78f
feat: update airdrop winter reskin particles
1092384 Nov 15, 2024
30f4e99
feat: oak tree + box 3 updated winter reskins
1092384 Nov 15, 2024
c135992
feat: new emote
1092384 Nov 15, 2024
56ac855
fix: c4 exploding when destroyed
pap-24 Nov 15, 2024
001b79b
perf/refactor: combine ceilingHitbox + scopeHitbox
pap-24 Nov 15, 2024
b518ba0
feat: winter reskins for flint, aegis, normal crates and oil tank
1092384 Nov 16, 2024
b9914b3
feat: sandbags winter reskin
1092384 Nov 16, 2024
12e50c2
feat: refinery ceiling winter reskin
1092384 Nov 16, 2024
a2af537
feat: cooler winter reskin
1092384 Nov 16, 2024
0ffd77c
fix: throwable collisions not having layer checks 💀
pap-24 Nov 16, 2024
03137c5
enhance: dont stop piano hit sounds
pap-24 Nov 16, 2024
b0ccbdb
refactor/perf/fix: metal detector walls
pap-24 Nov 16, 2024
fd2cc74
wip: initial work on improving teammate indicators + colored/tinted c4s
pap-24 Nov 16, 2024
b6e0f25
fix: remove useless element attribute
pap-24 Nov 16, 2024
82dfef6
feat: colored teammate c4s
pap-24 Nov 16, 2024
b6778db
fix: cleanup code with a new method/function ig
pap-24 Nov 16, 2024
03487ae
fix: handle solo case where there are no colors
pap-24 Nov 16, 2024
3551e18
feat: strict checks for color indexing on teams
pap-24 Nov 16, 2024
f91d79f
fix: remove testing stuff
pap-24 Nov 16, 2024
6ef7f6d
fix: only tint c4s and not other throwables
pap-24 Nov 16, 2024
76135f5
enhance: Updated names of VSS Vintorez and PP-19 Vityaz
SolsticeUnlimitd Nov 16, 2024
d8032c5
wip: snow variant generating function
1092384 Nov 16, 2024
6885cea
fix: some template type issues + winter variation
ei-pi Nov 16, 2024
6d768a6
fix: server crash + add winter variants code
1092384 Nov 17, 2024
6b8b15d
feat: barrel, super barrel, grenade crate, flint stone winter reskins
1092384 Nov 17, 2024
fe8d3c8
fix: average 109 fuckup
1092384 Nov 17, 2024
40f01e4
feat: grenade crate, tear gas crate, grenade box winter variations
1092384 Nov 17, 2024
c072ba8
enhance: border standardization for winter variants
1092384 Nov 17, 2024
4215c58
feat: birch tree, dumpster, trash bag winter variants
1092384 Nov 17, 2024
8b62d3b
fix: remove c4 synced particle (lmao)
pap-24 Nov 17, 2024
a2b1f7d
chore: lint + dv
pap-24 Nov 17, 2024
a135d94
perf: minor optimizations
hsanger Nov 17, 2024
c9bfde5
chore: bump deps
hsanger Nov 17, 2024
3a1754a
fix: downgrade eslint to 9.14.0
hsanger Nov 17, 2024
ff4057b
fix: better fix for river gen glitch
hsanger Nov 17, 2024
2d706a4
feat: update changelog
hsanger Nov 17, 2024
15e9c52
chore: bump versions
hsanger Nov 17, 2024
60cf8cd
feat: vibration and a few buttons
Arman-AIi Nov 17, 2024
5433661
feat: added info for current joystick functions
Arman-AIi Nov 19, 2024
f381a85
feat: selecting controllers
Arman-AIi Nov 25, 2024
341ac6d
feat: vibrate selected controller (I love vibrations!)
Arman-AIi Nov 25, 2024
0c76016
fix: don't vibrate controller if it's already selected
Arman-AIi Nov 26, 2024
d1f8545
enhance: hide buttons that don't have a corresponding controller conn…
Arman-AIi Nov 26, 2024
6bbad7d
feat: name of the controller is now taken from controller.id, and use…
Arman-AIi Nov 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions client/changelog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@
<pre>
# Changelog

v0.21.7 - [11/17/2024]
- Fixed glitched river generation.
- Teammates' C4 is now colored.
- Fixed C4 exploding after destroyed.
- Added an emote.
- Minor optimizations.
- Adjusted MP40 loot and killfeed sprites.

v0.21.6 - [11/13/2024]
- Fixed 2x scopes not dropping.
- Fixed badges having the wrong file path.
Expand Down
52 changes: 52 additions & 0 deletions client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ <h3 translation="settings"></h3>
<div class="tab-bar" id="settings-tab-bar">
<button class="tab active" id="tab-volume"><i class="fa-solid fa-volume-high"></i><span translation="settings_volume"></span></button>
<button class="tab" id="tab-keybinds"><i class="fa-solid fa-keyboard"></i><span translation="settings_keybinds"></span></button>
<button class="tab" id="tab-controller" style="display: none"><i class="fa-solid fa-gamepad" ></i><span>Controller</span ></button>
<button class="tab" id="tab-graphics"><i class="fa-solid fa-display"></i><span translation="settings_graphics"></span></button>
<button class="tab" id="tab-interface"><i class="fa-solid fa-list"></i><span translation="settings_interface"></span></button>
<button class="tab" id="tab-import-export"><i class="fa-solid fa-file-export"></i><span translation="settings_save_load"></span></button>
Expand Down Expand Up @@ -725,6 +726,57 @@ <h3 translation="settings"></h3>
</div>
<div class="tab-content" id="tab-keybinds-content" style="display: none">
</div>
<div class="tab-content" id="tab-controller-content" style="display: none">
<div class="controller-select-container" id="controller-select-container">
<div class="controller-select selected" id="controller-select-0" style="display: block; align-items: center;">
<center class="setting-title">Controller 1</center>
<span class="controller-select-text" id="controller-id-0"></span>
<img class="controller-select-img" src="./img/misc/other_controller.svg" width="60" id="controller-img-0">
</div>
<div class="controller-select" id="controller-select-1">
<center class="setting-title">Controller 2</center>
<span class="controller-select-text" style="margin-left: 5px" id="controller-id-1"></span>
<img class="controller-select-img" src="./img/misc/other_controller.svg" width="60" id="controller-img-1">
</div>
<div class="controller-select" id="controller-select-2">
<center class="setting-title">Controller 3</center>
<span class="controller-select-text" id="controller-id-2"></span>
<img class="controller-select-img" src="./img/misc/other_controller.svg" width="60" id="controller-img-2">
</div>
<div class="controller-select" id="controller-select-3">
<center class="setting-title">Controller 4</center>
<span class="controller-select-text" style="margin-left: 5px" id="controller-id-3"></span>
<img class="controller-select-img" src="./img/misc/other_controller.svg" width="60" id="controller-img-3">
</div>
</div>
<div class="modal-item">
<label>
<span class="setting-title">Left joystick sensitivity</span>
<span class="range-input-value"></span>
<input type="range" max="0.9" min="0" id="slider-left-joystick-sensitivity" step="0.01" value="0">
</label>
</div>
<div class="modal-item">
<label>
<span class="setting-title">Right joystick sensitivity</span>
<span class="range-input-value"></span>
<input type="range" max="0.9" min="0" id="slider-right-joystick-sensitivity" step="0.01" value="0">
</label>
</div>
<div class="modal-item checkbox-setting">
<label>
<span class="setting-title"><span>Switch controller joysticks</span></span>
<input type="checkbox" id="switch-controller-joysticks">
</label>
</div>
<p style="color: red;" id="controller-joystick-info"><i>Left joystick moves, Right joystick aims</i></p>
<div class="modal-item checkbox-setting">
<label>
<span class="setting-title"><span>Vibration</span><i></i></span>
<input type="checkbox" id="controller-vibration">
</label>
</div>
</div>
<div class="tab-content" id="tab-graphics-content" style="display: none">
<div class="modal-item select-setting">
<label>
Expand Down
Loading