mirror of
https://github.com/solcloud/Counter-Strike.git
synced 2025-02-22 19:02:27 +01:00
Add player grenade models under belt
This commit is contained in:
parent
2acaa91dc0
commit
f86878f7a8
@ -30,7 +30,19 @@ export class Game {
|
||||
players = []
|
||||
playerMe = null
|
||||
playerSpectate = null
|
||||
#playerSlotsVisibleModels = [InventorySlot.SLOT_KNIFE, InventorySlot.SLOT_BOMB, InventorySlot.SLOT_PRIMARY, InventorySlot.SLOT_SECONDARY, InventorySlot.SLOT_KIT]
|
||||
#playerSlotsVisibleModels = [
|
||||
InventorySlot.SLOT_KNIFE,
|
||||
InventorySlot.SLOT_PRIMARY,
|
||||
InventorySlot.SLOT_SECONDARY,
|
||||
InventorySlot.SLOT_BOMB,
|
||||
InventorySlot.SLOT_GRENADE_DECOY,
|
||||
InventorySlot.SLOT_GRENADE_MOLOTOV,
|
||||
InventorySlot.SLOT_GRENADE_SMOKE,
|
||||
InventorySlot.SLOT_GRENADE_FLASH,
|
||||
InventorySlot.SLOT_GRENADE_HE,
|
||||
InventorySlot.SLOT_TASER,
|
||||
InventorySlot.SLOT_KIT,
|
||||
]
|
||||
|
||||
constructor(world, hud, stats) {
|
||||
this.#world = world
|
||||
|
@ -140,6 +140,32 @@ export class ModelRepository {
|
||||
knifeSlot.position.z += -3.5
|
||||
knifeSlot.rotateY(degreeToRadian(-70))
|
||||
knifeSlot.rotateX(degreeToRadian(-4))
|
||||
const belt = model.scene.getObjectByName('belt')
|
||||
const slot4 = new THREE.Object3D()
|
||||
slot4.name = 'slot-4'
|
||||
slot4.rotation.x = degreeToRadian(90)
|
||||
slot4.position.set(-13, 110, -8)
|
||||
const slot5 = new THREE.Object3D()
|
||||
slot5.name = 'slot-5'
|
||||
slot5.rotation.x = degreeToRadian(90)
|
||||
slot5.position.set(-14, 110, -5)
|
||||
const slot6 = new THREE.Object3D()
|
||||
slot6.name = 'slot-6'
|
||||
slot6.rotation.x = degreeToRadian(90)
|
||||
slot6.position.set(-15, 110, 0)
|
||||
const slot7 = new THREE.Object3D()
|
||||
slot7.name = 'slot-7'
|
||||
slot7.rotation.x = degreeToRadian(90)
|
||||
slot7.position.set(15, 110, 0)
|
||||
const slot8 = new THREE.Object3D()
|
||||
slot8.name = 'slot-8'
|
||||
slot8.rotation.x = degreeToRadian(90)
|
||||
slot8.position.set(14, 110, -5)
|
||||
const slot9 = new THREE.Object3D()
|
||||
slot9.name = 'slot-9'
|
||||
slot9.rotation.x = degreeToRadian(90)
|
||||
slot9.position.set(13, 110, -8)
|
||||
belt.add(slot4, slot5, slot6, slot7, slot8, slot9)
|
||||
|
||||
this.#models.player = model.scene.getObjectByName('player')
|
||||
this.#models.playerAnimation = model.animations
|
||||
|
Loading…
x
Reference in New Issue
Block a user