kemperrr

Moderators RU
  • Content count

    196
  • Joined

  • Last visited

  • Days Won

    43

kemperrr last won the day on July 19

kemperrr had the most liked content!

Community Reputation

112 Excellent

About kemperrr

  • Rank
    King flood
  • Birthday 04/25/98

Recent Profile Visitors

1437 profile views
  1. ONLY 0.2 let interpolatecam = null; function lerp (vector1, vector2, deltaTime) { return new mp.Vector3( vector1.x + (vector2.x - vector1.x) * deltaTime, vector1.y + (vector2.y - vector1.y) * deltaTime, vector1.z + (vector2.z - vector1.z) * deltaTime ); } function init() { mp.events.add({ 'render': () => { if(interpolatecam) { interpolatecam.currentPosition = lerp(interpolatecam.positions[0], interpolatecam.positions[1], interpolatecam.progress); interpolatecam.progress = interpolatecam.progress + interpolatecam.speed / 1000; interpolatecam.cam.setCoord(interpolatecam.currentPosition.x, interpolatecam.currentPosition.y, interpolatecam.currentPosition.z); if(interpolatecam.progress >= 1) { interpolatecam = null; } } } }); } function interpolateCam (cam, positions, speed) { return interpolatecam = { cam, positions, speed, progress: 0, currentPosition: null }; } exports.interpolateCam = interpolateCam; exports.init = init; Using const {init, interpolateCam} = require('./interpolateCam'); init(); mp.events.add({ 'createCam': () { const cam = mp.cameras.new('default', new mp.Vector3(0, 0, 75), new mp.Vector3(), 90.0); cam.setActive(true); interpolateCam(cam, [new mp.Vector3(0, 0, 75), new mp.Vector3(1337, 1448, 228), 1]) } })
  2. ONLY 0.2 let interpolatecam = null; function lerp (vector1, vector2, deltaTime) { return new mp.Vector3( vector1.x + (vector2.x - vector1.x) * deltaTime, vector1.y + (vector2.y - vector1.y) * deltaTime, vector1.z + (vector2.z - vector1.z) * deltaTime ); } function init() { mp.events.add({ 'render': () => { if(interpolatecam) { interpolatecam.currentPosition = lerp(interpolatecam.positions[0], interpolatecam.positions[1], interpolatecam.progress); interpolatecam.progress = interpolatecam.progress + interpolatecam.speed / 1000; interpolatecam.cam.setCoord(interpolatecam.currentPosition.x, interpolatecam.currentPosition.y, interpolatecam.currentPosition.z); if(interpolatecam.progress >= 1) { interpolatecam = null; } } } }); } function interpolateCam (cam, positions, speed) { return interpolatecam = { cam, positions, speed, progress: 0, currentPosition: null }; } exports.interpolateCam = interpolateCam; exports.init = init; Использование const {init, interpolateCam} = require('./interpolateCam'); init(); mp.events.add({ 'createCam': () { const cam = mp.cameras.new('default', new mp.Vector3(0, 0, 75), new mp.Vector3(), 90.0); cam.setActive(true); interpolateCam(cam, [new mp.Vector3(0, 0, 75), new mp.Vector3(1337, 1448, 228), 1]) } })
  3. ВНИМАНИЕ !!! ТОЛЬКО ДЛЯ 0.2 Недавно понадобился getData для игроков, сделал на скорую руку простую реализацию. CLIENT
  4. @MaybeYouLove А моды какие установлены?
  5. @MaybeYouLove Какая у вас версия игры? Установлен ли VC Redist x64 2015?
  6. JavaScript на платформе node.js. Реально
  7. roleplay

    Прости, но я занят другими делами.
  8. roleplay

    Увы, нет.
  9. roleplay

    Мы ее в текущей версии и не добавляли ;c
  10. roleplay

    Сменил bmx на zentorno
  11. roleplay

    Увы, даже примерная дата еще не известна
  12. roleplay

    Это старая версия мода поддерживающая 0.1. Делать там нечего. Лучше подождите выхода 0.2 и тогда мы выкатим мод с геймплеем
  13. I find it easier to look at a file
  14. This can be done in 0.1 process.stdout.wr = process.stdout.write; process.stdout.er = process.stderr.write; process.stdout.write = (mes, c) => { fs.appendFile('log.log', mes, (err) => { if (err) throw err; }); process.stdout.wr(mes, c) }; process.stderr.write = (mes, c) => { fs.appendFile('log.log', mes , (err) => { if (err) throw err; }); process.stdout.er(mes, c) };