Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TCMusic.oldISRadioWindow_activate = ISRadioWindow.activate
- function ISRadioWindow.activate( _player, _item, bol)
- if _player == getPlayer() then
- if instanceof(_item, "Radio") then
- if TCMusic.ItemMusicPlayer[_item:getFullType()] then
- if _player:getSecondaryHandItem() == _item then
- ISTCBoomboxWindow.activate( _player, _item );
- end
- elseif TCMusic.WorldMusicPlayer[_item:getFullType()] then
- else
- TCMusic.oldISRadioWindow_activate( _player, _item, bol );
- end
- elseif instanceof(_item, "IsoWaveSignal") then
- --my change start
- local asdasd = _item:getDeviceData();
- local dataqweqweqwe = _item:getDeviceData();
- local deviceName = _item:getDeviceData():getDeviceName();
- -- or "Vinyl player 'Elektronika S1-01'"
- if (deviceName == "Boombox 'Kazakhstan-102-stereo'" or deviceName == "Vinyl player 'Elektronika S1-01'") then
- --my change end
- ISTCBoomboxWindow.activate( _player, _item);
- else
- -- we need to execute the original ISRadioWindow.activate method
- TCMusic.oldISRadioWindow_activate( _player, _item, bol );
- end
- else
- TCMusic.oldISRadioWindow_activate( _player, _item, bol );
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment