Garry's Mod

Garry's Mod

10,610 个评价
Portable Force Field
2
2
4
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐, 风景
文件大小
发表于
更新日期
671.705 KB
2016 年 5 月 10 日 下午 2:20
2020 年 1 月 10 日 上午 12:36
9 项改动说明 ( 查看 )

订阅以下载
Portable Force Field

描述
A hand-held force field grenade!

2016/9/16
  • Added a version that follows the player around! Shows up as "Hex-Shield (local)". Uses the suit battery as fuel, so you need to have the suit charged.
  • Added the cvar
    cl_hexshieldcolor
    which allows you to change the color of the shield (default is "31 0 255"). Changes are applied when the weapon is switched to.
  • Made the grenade stick to dynamic objects!
  • Changes and performance improvements.
  • Many major enhancements.

Generates a force field that stops bullets and other objects and protects entities. The field lasts 32 seconds before expiring. Hold down MOUSE1 to lift, release to throw, or press MOUSE2 to cancel. The design is based off of the Bubble Shield from Halo 3, as it appeared in the Starry Night trailer.
Shows up as "Hex-Shield" and is located in the "Other" weapons.

2017/2/28
Added a mode to help figure out why some people can't get it to work correctly.
Set the console variable hexshield_diagnostic to 1, clear the console, equip the normal Hex-Shield Grenade (not the "local" version) and press the primary fire key. If it doesn't work, check the console and tell me what it says.

2017/3/1
After looking at the results people have sent me, I have figured out what's wrong.
These weapons don't use the normal SWEP.PrimaryAttack and SWEP.SecondaryAttack functions and work completely differently. They basically check the player's command input with Player.KeyPressed inside of a Tick hook instead. This was necessary because of the complicated way the weapons work.
For some reason, for some people, the KeyPressed function is returning false, even though the PrimaryAttack function is still being called. About 10% of all players are having this issue.
Coming up with a reasonable fix for this from my end would be almost impossible, and my only option might be to completely re-write the code. I will be investigating this issue and trying to find a solution.

2017/3/2
I removed the diagnostic mode and I added a hacky and messy temporary fix for the issue people were having. Test both weapons and let me know if they work!
I will still consider re-writing the addon to work like a normal SWEP, but it will be painful.

Let me know about ANY other bugs or strange behavior immediately!
If the shield does not appear EXACTLY the same as it does in the images, let me know immediately and give me details!

If you have any suggestions or concerns, ask in the comments and I will do my best to respond.
热门讨论 查看全部(3)
115
2024 年 9 月 21 日 下午 2:49
置顶: Bug Report Thread
Humu-humu-nuku-nuku-apua'a
81
2022 年 4 月 26 日 下午 9:16
置顶: Suggestions Thread
Humu-humu-nuku-nuku-apua'a
0
2018 年 9 月 2 日 下午 7:18
Make it so you can't pick it back up. One time use.
Lunar_Jiujitsu
677 条留言
catnip 2024 年 11 月 17 日 上午 12:15 
5g bio shield
ʞritzo 2024 年 3 月 14 日 下午 7:22 
looks similar to some sort of circle ball spinning game
GDSK09 2024 年 3 月 2 日 上午 9:55 
this makes players/npcs invisible to enemies
GDSK09 2024 年 3 月 1 日 下午 8:34 
@TweedleDummer look up deployable force shield
Geth, Lord of the Vault 2024 年 2 月 29 日 下午 7:57 
I would pay you to make a VMANIP quicknade addon for this
Cosmos 2024 年 1 月 13 日 下午 4:10 
wort wort wort
Retroknight 2023 年 10 月 15 日 下午 2:34 
is awesome, good job
Tex 2023 年 10 月 6 日 下午 10:33 
[Portable Force Field] lua/weapons/weapon_hexshield_local.lua:486: bad argument #1 to 'GetBoneMatrix' (number expected, got no value)
1. GetBoneMatrix - [C]:-1
2. unknown - lua/weapons/weapon_hexshield_local.lua:486
Rosie 2023 年 10 月 1 日 上午 2:01 
Considering using this as a shield for my TARDIS.
I would rather a proper one but I think this will do for now.
Anyone please let me know if you have a better idea/suggestion!
alexthedog10 2023 年 9 月 9 日 下午 12:12 
Now I can pull a Android 17 and nullify a Hellzone Grenade with a bubble force field.