Garry's Mod

Garry's Mod

547 ratings
Sandbox Shields
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Build, Fun
File Size
Posted
Updated
41.558 KB
16 May, 2022 @ 6:38am
13 Aug, 2024 @ 9:07am
4 Change Notes ( view )

Subscribe to download
Sandbox Shields

Description
"Sandbox Shields" is a catchy name I couldn't not use for shields that actually would work in all gamemodes.

This addon adds shields from the Draconic Base to all players when they initially spawn. The shields have 100 health, and have a five second recharge delay after taking damage. These shields are only visible when taking damage or when they recharge. In the images above where the shield is permanently on it was done through a debug command in the Draconic Base.

This addon was created merely as an example for the Draconic Base's shield functionality. If you want to know how this system works / how to use it yourself / how to make your HUD compatible with this system, then check the wiki page here for documentation: https://github.com/Vuthakral/Draconic_Base/wiki/Shield-System

This addon has the following convars:
  • sv_sandshields_enabled -- Turn the mod on/off
  • sv_sandshields_shielddelay -- How long after being hit should shields start to regenerate
  • sv_sandshields_shieldhealth -- Total HP of the shield players have
  • sv_sandshields_shieldregenamount -- Enter a number for how much health per second you want to recharge. (Default 33)

These values update for players on respawn.

If you're looking for a HUD compatible with displaying DRC Shields: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2810649799


Everything I do is free because I can find some fun in making it, or because it helps others make fun things. If you would like to help support me financially so that I may keep doing what I do, then please consider checking out my Patreon[www.patreon.com] page. It is also tied in with my server community / servers which I host. I love doing what I do and I hope to be able to keep doing it for as long as I can.

If you need immediate help with the Draconic Base (or any of my addons), or just want to know what I'm working on or etc, then consider joining my Discord[discord.gg] server.
143 Comments
Vuthakral  [author] 26 Jun @ 7:07am 
What branch of the game are you on, also what operating system?
Klonade 26 Jun @ 5:46am 
Shield is invisible except for some particle effects, but functions as expected. The only two addons enable on my singleplayer are Draconic Base and this addon. The console log is as follows (Shortened for Steam's Character Limit):

{Draconic Log}
Using map cycle file cfg/mapcycle.txt.
{Server info}
Attemped to precache unknown particle system "drc_halo_3_shield_deplete"!
Attemped to precache unknown particle system "drc_halo_3_shield_deplete_arcs"!
Attemped to precache unknown particle system "drc_halo_3_shield_impact_effect"!
Attemped to precache unknown particle system "drc_halo_3_shield_recharge"!
Clientside Lua startup!
{Draconic log}
Failed to load custom font file 's:\common\garrysmod\garrysmod\cache\workshop\resource\fonts\clearsans-medium.ttf'
Trying to create entities too early! (drc_shieldmodel)
{JoyStick info}
Redownloading all lightmaps

To me it seems like it is unable to find some particles and was unable to create the shield model. Any ideas on how I can fix this?
Asura 23 Jun @ 2:26pm 
damn. welp figured i'd ask. also i agree with yufeng, most mf's dont care about their addons well enough reply to people, good shit.
Yufeng 23 Jun @ 7:21am 
I just wanna say THANK YOU SO MUCH Vuthakral, for staying up to date on your addon's comment sections, and going the extra mile to help anyone with issues with it. So many authors would prefer to simply not do that. Thanks :)
Vuthakral  [author] 22 Jun @ 8:31pm 
That would mean that addon is circumventing EntityTakeDamage and applying damage in a way that doesn't get passed into that hook. There is nothing anyone can do about that.
Asura 22 Jun @ 6:56pm 
could there be an option for this to act like base game armor? i use R.A.P.D *basically realistic damage* and the shield doesnt protect me at all, but armor does.
Yufeng 21 Jun @ 1:42pm 
My bad, I'm dumb.
Yufeng 20 Jun @ 9:33am 
Good to know, is there a simple tutorial for using that? I might be a little on the sped side and can't find out how to turn it on... (Yes I ran sv_sandshields_enabled 1)
Vuthakral  [author] 20 Jun @ 8:27am 
Not through this specific addon, but using Draconic's shield system in general yes
Yufeng 19 Jun @ 7:51pm 
Is it possible to have only one player in a server with a shield?