mirror of
https://github.com/solcloud/Counter-Strike.git
synced 2025-02-21 09:42:51 +01:00
Weapon in right hand setting
This commit is contained in:
parent
a4434633db
commit
e20fd70bf8
@ -21,6 +21,7 @@ export class Setting {
|
||||
preferPerformance: false,
|
||||
showFps: true,
|
||||
matchServerFps: false,
|
||||
weaponInRightHand: true,
|
||||
anisotropic: 16,
|
||||
exposure: 0.8,
|
||||
},
|
||||
@ -137,6 +138,10 @@ export class Setting {
|
||||
return this.#setting.base.matchServerFps ?? false
|
||||
}
|
||||
|
||||
hasWeaponInRightHand() {
|
||||
return this.#setting.base.weaponInRightHand ?? true
|
||||
}
|
||||
|
||||
getSensitivity() {
|
||||
return this.#setting.base.sensitivity ?? 1.0
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ export class World {
|
||||
const povItem = new THREE.Group()
|
||||
povItem.name = 'pov-item'
|
||||
povItem.scale.setScalar(.7)
|
||||
povItem.position.x = 8
|
||||
povItem.position.x = (setting.hasWeaponInRightHand() ? 8 : -8)
|
||||
povItem.position.z = -12
|
||||
povItem.position.y = -14
|
||||
camera.add(listener, povItem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user