Garry's Mod

Garry's Mod

572 个评价
Sandbox Shields
2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 服务器内容
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
41.558 KB
2022 年 5 月 16 日 上午 6:38
2024 年 8 月 13 日 上午 9:07
4 项改动说明 ( 查看 )

订阅以下载
Sandbox Shields

描述
"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://steamcommunity.yuanyoumao.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.
153 条留言
Vuthakral  [作者] 11 月 2 日 上午 9:18 
It should take effect whenever you respawn
Farrynhite 11 月 1 日 下午 2:37 
I tried updating the shield regeneration values via the convar commands, but it only seems to take effect after I restart the server. Is this intentional or no?
Vuthakral  [作者] 9 月 9 日 下午 6:27 
These shields are just applied to all players in this addon, the shield code is from the Draconic Base. You could set up shield definitions for some kind of serverside code, maybe pick-up entities or something, that apply them to players. Draconic's wiki details how the shield system works.
Reaps 9 月 9 日 上午 11:11 
Is there a way to make it so each player could toggle on if they have a shield? I've been wanting to have some people on my server have shields and some not and these shields are rad
Vuthakral  [作者] 8 月 15 日 下午 11:22 
(also I've literally used that addon in tandem with mine in the recent past without issue)
Vuthakral  [作者] 8 月 15 日 下午 11:20 
I highly doubt Draconic is the source of your issue as this sounds like something is breaking the input system, which Draconic does not mess with, that said I'll still look into it to be sure.
Jdramirez165 8 月 15 日 下午 6:09 
It even broke some other stuff, like im trying to use the flashlight, but it doesn't work. I tried reloading guns, but doesn't work. I have no idea why is this conflicting with the other addon...
Jdramirez165 8 月 15 日 下午 6:06 
This addon is conflicting with the BO3 Exosuit Movement addon, which causes the latter addon to spew out console errors.

[BO3 Exosuit Movement] lua/autorun/server/sv_aewallrun.lua:133: attempt to compare nil with number
1. v - lua/autorun/server/sv_aewallrun.lua:133
2. unknown - lua/includes/modules/hook.lua:102
Vuthakral  [作者] 7 月 16 日 下午 3:10 
I'll look into it
Lynx Void 7 月 16 日 下午 2:07 
could there be an option for the shield to only activate when you also have suit charge only?