Garry's Mod

Garry's Mod

356 个评价
TTT - Portal Gun for Traitor/Detective
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐, 写实
文件大小
发表于
更新日期
28.497 MB
2020 年 12 月 10 日 下午 2:08
2024 年 4 月 29 日 下午 12:09
10 项改动说明 ( 查看 )

订阅以下载
TTT - Portal Gun for Traitor/Detective

描述
This is an improved version of the TTT Portal Gun Addon originally made by ώħèâţļèŷ and Keigun ( https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=494644385 ).

Here's what I fixed:
- Removed cooldown on the first portal, allowing the endless portal fall
- Made players keep their local angle when teleporting
- Made players keep their local velocity when teleporting
- Optimized teleported player position in various cases
- Introduced minimum output speed when both portals are on ground
- Introduced maximum downward velocity to avoid dying in the endless portal fall
- Removed rotation of portal "camera" (it just didn't look good)
- Stretched portal texture to look more realistic
- Changed portal camera FOV based on distance from portal to look more realistic
- Adapted sound volume to dampen with the player's increasing speed
- Fixed portals spawning inside each other

Open source code can be found here: https://github.com/doodlezucc/ttt_portal_gun
热门讨论 查看全部(1)
6
2023 年 1 月 11 日 下午 11:47
let me help u
doodlezucc
23 条留言
epicgamerdude54 2024 年 8 月 25 日 上午 4:31 
The error/issue where the use key doesn't pick up entities and breaks the other modes if you're hosting locally and have to disable the addon.
doodlezucc  [作者] 2024 年 4 月 29 日 下午 12:11 
The error previously mentioned by mexikoedi should now be fixed :)
mexikoedi 2024 年 4 月 7 日 上午 11:18 
Hi, just wanted to notify you that I created a new issue on GitHub.
Would be nice if you could look into it when you have time.
Xopez 2024 年 1 月 29 日 上午 10:58 
Thanks for the fix :)
doodlezucc  [作者] 2024 年 1 月 28 日 上午 9:09 
Hi everyone, the error described in the previous two comments should be handled correctly now in the latest update (I wasn't able to reproduce the issue, but this should fix it). Thanks for the reports :)
Xopez 2024 年 1 月 15 日 上午 8:42 
I have got the same error:
[TTT - Portal Gun for Traitor/Detective] lua/entities/portalgun_portal.lua:105: Tried to use a NULL entity!
1. GetNWEntity - [C]:-1
2. GetLinkedPortal - lua/entities/portalgun_portal.lua:105
3. SimulatePortal - lua/entities/portalgun_portal.lua:161
4. fn - lua/autorun/client/cl_portals.lua:12
5. unknown - lua/ulib/shared/hook.lua:109
imendezr 2024 年 1 月 7 日 下午 4:48 
[ulib] lua/entities/portalgun_portal.lua:105: Tried to use a NULL entity!
1. GetNWEntity - [C]:-1
2. GetLinkedPortal - lua/entities/portalgun_portal.lua:105
3. SimulatePortal - lua/entities/portalgun_portal.lua:161
4. fn - lua/autorun/client/cl_portals.lua:12
5. unknown - addons/ulib/lua/ulib/shared/hook.lua:109
doodlezucc  [作者] 2023 年 10 月 16 日 上午 10:21 
@mexikoedi yeah for sure, I'll look into it! Nice to know you're still using the portal gun addon.
mexikoedi 2023 年 10 月 15 日 下午 12:20 
Spectators can enter a portal and also cause the "portal sound".
Could this be fixed?
doodlezucc  [作者] 2023 年 9 月 6 日 下午 1:45 
Thanks to EntranceJew's edits, a convar is now available that controls the hitbox mask when shooting portals :)