������ 14/16/20/40/44: vehicle, ����, ����������, damage floaters, ��������� #20

Merged
min merged 30 commits from feat/vehicle-task14 into main 2026-06-07 14:09:59 +00:00
Showing only changes of commit 3eee24ff48 - Show all commits

View File

@ -2305,6 +2305,10 @@ const game = {
opts = opts && typeof opts === 'object' ? opts : {}; opts = opts && typeof opts === 'object' ? opts : {};
this._opts = opts; this._opts = opts;
this._active = true; this._active = true;
// Колбэки можно передавать прямо в опциях show({ onPlay, onShow, onHide }).
if (typeof opts.onPlay === 'function') this._onPlay.push(opts.onPlay);
if (typeof opts.onShow === 'function') this._onShow.push(opts.onShow);
if (typeof opts.onHide === 'function') this._onHide.push(opts.onHide);
_send('player.setInputBlocked', { blocked: true }); _send('player.setInputBlocked', { blocked: true });
game.hud.setVisible(false); game.hud.setVisible(false);
this._camCfg = opts.camera || { mode: 'orbit', center: { x: 0, y: 1, z: 0 }, radius: 6, height: 2, duration: 12 }; this._camCfg = opts.camera || { mode: 'orbit', center: { x: 0, y: 1, z: 0 }, radius: 6, height: 2, duration: 12 };