Garry's Mod

Garry's Mod

26 个评价
Cap's Shield
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐
文件大小
发表于
更新日期
1.257 MB
2024 年 8 月 5 日 上午 5:54
2024 年 8 月 14 日 上午 6:41
7 项改动说明 ( 查看 )

订阅以下载
Cap's Shield

在 Sloonum 的 1 个合集中
Gmod Guesdays
300 件物品
描述
A functional SWEP of Cap's big frisbee, for TTT and Sandbox.

Credits

Original shield model I think comes from here

Code for the thrown shield comes from here. I just made a few amendments.

Models and animations for the arms come from here (also code for punching)

Code for the blocking originally came from here. (though I did end up rewriting it somewhat)


How it works

It's a shield!
You can punch people, block bullets (specifically bullets) and throw it.
Note that you can still be shot in the back, sides and legs

Can be purchased from the Detective's shop in TTT.

Primary fire = Punch
Secondary fire (hold) = Block
Reload = Throw

When thrown, the shield will bounce around like an angry frisbee.
It'll damage any player or NPC it hits, except for the person that threw it (it'll return to the throwing player's hands on contact).

While blocking, you may notice that even when the incoming damage is fully blocked, blood still comes out!
I doubt I'll ever fix that!


CONVARS

ttt_capshield_damagefactor (default: 0) => How much to scale the damage by when the attacker shoots the shield while the defender is blocking ('0' means all damage is blocked).

ttt_capshield_protectangle (default: 60) => Effective angle of the shield. Increase this to allow for wider blocking area ('360' would, in theory, mean the shield blocks damage from every direction).



Words to help those searching for things like this:
Captain America
Captain America's Shield
Marvel
11 条留言
An AMX-40 Duck 9 月 1 日 上午 10:52 
I appreciate it but frankly idk if I want to bother. If you want, the most I could do for you is show you the error that comes up in the console but I've since just unsubbed since the addon wasn't quite what I was looking for (no offense).
Sloonum  [作者] 8 月 31 日 下午 11:49 
@An AMX-40 Duck

I had a poke at trying to recreate the issue you described but I can't get it to reproduce on either TTT or Sandbox. Without seeing the error message (or being able to recreate it myself) there's not much I can do.

If I had to guess I'd say that it's some conflict being created between this item and some other workshop item that I don't have. You could try disabling all other workshop items (other than this one) and see if the problem still happens. Though it's not a real solution it could help determine what's causing the problem
An AMX-40 Duck 8 月 28 日 上午 10:55 
also i get that this isn't meant to be an accurate representation but it just feels weird for a shield belonging to Cap to only block bullets but can't block a mere sword.
An AMX-40 Duck 8 月 28 日 上午 10:54 
So when it's picked back up after being tossed, every button basically becomes throw (aka attack & block now toss the shield again) and an error gets spammed in the console.
Sloonum  [作者] 8 月 28 日 上午 12:26 
@jacetheface62
I don't didn't make it return for gameplay balancing reasons (it would be too OP for TTT), though the original thrower will get it back if it comes into contact with them.
If I update this item again I'll add a flag to optionally allow direct shield return.
Sloonum  [作者] 8 月 28 日 上午 12:22 
I did state in the description it only blocks bullets.
I wasn't aware it bugs out when thrown, what happens specifically?
An AMX-40 Duck 8 月 26 日 下午 8:03 
pretty good but the 2 main problems with this is that
1. blocking only blocks one type of damage, being bullets. Melee or other projectile types seem out of the question
2. Tossing the shield ones causes it to bug out when picked back up.
jacetheface62 8 月 5 日 下午 4:27 
make it where you can call the shield back yourself please.
itsElub 2024 年 8 月 6 日 上午 7:29 
ill be trying this out later today, tysm :luv:
Sloonum  [作者] 2024 年 8 月 6 日 上午 3:40 
@itsElub
I can - this item should now have both TTT and Sandbox versions