Garry's Mod

Garry's Mod

26 ratings
Cap's Shield
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun
File Size
Posted
Updated
1.257 MB
5 Aug, 2024 @ 5:54am
14 Aug, 2024 @ 6:41am
7 Change Notes ( view )

Subscribe to download
Cap's Shield

In 1 collection by Sloonum
Gmod Guesdays
300 items
Description
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 Comments
An AMX-40 Duck 1 Sep @ 10:52am 
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  [author] 31 Aug @ 11:49pm 
@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 28 Aug @ 10:55am 
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 28 Aug @ 10:54am 
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  [author] 28 Aug @ 12:26am 
@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  [author] 28 Aug @ 12:22am 
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 26 Aug @ 8:03pm 
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 5 Aug @ 4:27pm 
make it where you can call the shield back yourself please.
itsElub 6 Aug, 2024 @ 7:29am 
ill be trying this out later today, tysm :luv:
Sloonum  [author] 6 Aug, 2024 @ 3:40am 
@itsElub
I can - this item should now have both TTT and Sandbox versions