Garry's Mod

Garry's Mod

46 个评价
Dual-Acting Physgun
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 漫画, 写实
文件大小
发表于
更新日期
17.732 KB
2022 年 8 月 2 日 上午 2:24
2022 年 8 月 26 日 下午 11:35
2 项改动说明 ( 查看 )

订阅以下载
Dual-Acting Physgun

描述
This addon has largely been inspired by Fasteroid's[github.com] original Wiremod E2 code.
You should check out Fasteroid's take[github.com], as it contains features that this addon lacks, such as grabbing the world to move yourself and generally having better prop movement.
You need PlyCore installed and PropCore enabled for the original E2 code to work, not this addon.

No noclip was used in the video above!
This addon allows you to use the physgun to reel yourself into props, prop-push yourself off the ground and even prop-fling yourself to great heights.
I've designed Mark I and Mark II versions of the system, with both using different techniques for applying forces.

You can view the source code of the addon here.[github.com]

Dual-Acting Physgun Mark I
This system simply uses Lua hooks to apply forces without interfering with the physgun's normal operations. This allows you to use the physgun normally, but changing the physgun beam length is likely to cause infinite pushing / pulling as the methods for retrieving the physgun beam length are inaccessible from Lua.
This is the version that I had teased over at the Knockout forums.

Dual-Acting Physgun Mark II
This system follows the original E2 code more closely. This system creates a ghost prop in front of the object you're actually manipulating, and adds forces to the real prop to follow the ghost, applying the opposite forces to the player.
This system allows the physgun beam length to be changed without issue, but it causes the physgun grab halo to be drawn incorrectly and certain props may spazz out when using this system. You can turn off the physgun grab halo in the context menu, under Drawing Options.

By default, the Mark II system is enabled and the Mark I system is disabled. You can turn Mark II off by typing "dual_acting_physgun_mk2_mul 0" in the console, and "dual_acting_physgun_mk1_mul 1" to turn Mark I on. Try not to have both Mark I and Mark II affect the same prop.
There are also other ConVars that start with "dual_acting_physgun_" that change how the systems behave.

I'm releasing this addon in the state it is now because I've lost my passion to develop this system anymore, so don't expect future updates. I want to go back and resume development of the other addons that I've made.



If you like my work, you have the option to donate on Ko-fi[ko-fi.com]
so that I can keep working on addons for another day. Every little bit helps!
8 条留言
GLaDOS 9 月 24 日 上午 5:55 
Is the Newtonian Physgun mod just nervously smoking? Why doesn't it work with NoClip? I really wish it worked with NoClip. I'm unsubscribing because I don't want to disable NoClip.
kuzukuzu26 2022 年 12 月 7 日 上午 10:35 
GBBGGFBFGB
Fasteroid 2022 年 8 月 10 日 下午 12:50 
godsend
adrianna 2022 年 8 月 8 日 下午 2:11 
I see
idioticEd 2022 年 8 月 7 日 下午 8:59 
Getting over it in gmod
Piengineer12  [作者] 2022 年 8 月 6 日 下午 10:51 
For it to be a separate weapon, I'd have to reimplement the whole Physgun completely in Lua, since its inner workings can't be accessed. At that point it would be worthy of being a separate addon.
adrianna 2022 年 8 月 6 日 下午 5:04 
Why is it not a seperate weapon
FreakMasterGrimm 2022 年 8 月 5 日 上午 5:19 
finally now i can play getting over it