Garry's Mod

Garry's Mod

评价数不足
CCTV System Offline Screen Replacement
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 角色扮演, 写实
文件大小
发表于
更新日期
245.880 KB
2017 年 6 月 4 日 上午 8:22
2017 年 10 月 4 日 下午 4:11
4 项改动说明 ( 查看 )

订阅以下载
CCTV System Offline Screen Replacement

描述
You have no need to subscribe to this, and it will not work without editing.
3 条留言
Felix  [作者] 2017 年 12 月 29 日 下午 5:35 
if Cam:GetBroken() and Cam:GetInstalled() then
surface.SetTexture(OfflineScreen)
elseif !Cam:GetInstalled() then
surface.SetTexture(NotInstalledScreen)
else
self.RTMat:SetTexture('$basetexture', self.RT)
surface.SetMaterial(self.RTMat)
end
Felix  [作者] 2017 年 12 月 29 日 下午 5:35 
The only reason this addon is public is because it wouldn't work on the server it's used on if it was friends only or private. It doesn't work without editing and you need to have CCTV System by ToBadForYou (which is on Gmodstore, and costs money, 6 dollars 99 to be precise). The addon on our server also has modified code for this to work, which I cannot release with the addon for obvious reasons. If you have the addon and you want to get it to work subscribe to this addon and decompile it with Gmad to get the textures, then place them in the addon's materials folder and delete the old CCTV offline screen, and then go to lua > entities > tbfy_cctv_screen > cl_init.lua

The code you need to replace is at line 99 (use Notepad++ or another text editor that displays line numbers to find code).
Replace the code from line 99 to line 106 with the code in the above comment (I could not fit it in this one).

January_Scripts 2017 年 12 月 29 日 下午 1:20 
Where do you find this in entitys?