Garry's Mod

Garry's Mod

112 个评价
PDMG2: Prop Damage Mk. 2
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 特效
插件标签: 建筑, 快乐
文件大小
发表于
更新日期
16.558 KB
2013 年 9 月 2 日 上午 9:26
2018 年 1 月 19 日 上午 11:32
9 项改动说明 ( 查看 )

订阅以下载
PDMG2: Prop Damage Mk. 2

在 TOASTEngineer 的 1 个合集中
server collection
88 件物品
描述
PDMG is originally by Fantym. He has given me permission to maintain it and upload it to the workshop.

PDMG is an addon that allows all props to be damaged as if they were NPCs or wooden props. Anything that damages wooden props should damage any others with this installed! Wiremod Expression2 chips can read the prop's health as if it were an NPC as well, by using e:health().

PDMG should be compatible with any and every SWEP and prop pack. If you have any problems with it, let me know!

HOW TO USE:

PDMG will work right out of the box- just install it, and props will begin breaking when you shoot them. There are configuration options in the Options tab of your Q-Menu.

SERVER CONFIGURATION:

Since the config menu doesn't work for dedicated servers, here's a run-down of the basics:

find pdmg_ : Gives a listing of all PDMG convars and a short description.

pdmg_enabled : Turns PDMG on and off.
pdmg_props_only : Excludes anything that is not prop_physics from damage. Recommended if PDMG causes framerate issues for you.
pdmg_Ex_* : Exclusion rules. With these you can make certain large groups of entities invulnerable.
pdmg_exclude [things_to_exclude] : This concommand wil let you add individual classnames to the exclusion list at runtime. For example, "pdmg_exclude func_door gm_balloon" will tell PDMG to ignore doors and balloons. This doesn't persist accross map reloads or restarts; add it to your server config if you want something to be excluded all the time.
pdmg_use_threshold : Controls the "damage threshold" calculation, which makes it so that you can't destroy a tank with a crowbar no matter how many times you hit it. There's also a concommand that controls what percentage of the prop's HP the threshold is set to.
pdmg_ex_cutoff : Props with less than this much HP will be ignored by PDMG. This protects detail props and such from being destroyed while still allowing a contraption's frame to be broken by damage.

There's many others, but those are the ones you'll need to know the most. You really ought to reload the map after changing anything except the exclusion rules, props_only, use_threshold, or pdmg_enabled.

Current known bugs:

* Map-spawned doors are immune to explosive damage. Also, maps aren't really built to have their doors removed;
you may run in to stuff looking weird through the doorway or the doorway still being blocked after the door is gone. I'm working on a highly experimental solution to this but no promises.
* The Q-menu tab does not work in multiplayer (use pdmg_enabled 1/0 to turn it on/off on a server).

ATTN SERVER OWNERS:
There _used_ to be a crash bug where if a sawblade breaks while it's being embedded in to a wall it crashes the server - that's fixed now! If you added the sawblade to your exclusion list, you can take it out now.
187 条留言
Argon_Ironhammer 2022 年 9 月 8 日 下午 12:20 
Is it possible to make a setting that will combine the health of items soldered together? That would be amazing!
Voxvelt 2022 年 1 月 29 日 上午 6:24 
how i dissable npc hud
SpartaGuy 2021 年 11 月 30 日 下午 7:10 
I dont want props disappearing I want them to still be there when I completely destroy them
The Big Jewbowski 2021 年 8 月 1 日 上午 8:23 
Hey, does this come with an unbreakable tool? Or is there one that is compatible.
TOASTEngineer  [作者] 2020 年 3 月 26 日 下午 9:34 
Ah, thanks. I'll fix that, uhh, eventually.
Revenant Moon sups.gg 2020 年 3 月 24 日 下午 5:55 
concommand.Add("some_name",function(ply,cmd,args,argstring)
end)
ply is points to the player that ran the command or a NULL entity if ran from the console of a dedicated server.
uacnix 2020 年 3 月 23 日 下午 6:06 
I kinda feel the pain cause i set up a server because of all this #StayAtHome :D:
TOASTEngineer  [作者] 2020 年 3 月 23 日 下午 3:20 
Sounds like Garry's Mod broke it or something... Normally I'd say I don't support this thing anymore, but since it's illegal to go outside anyway I guess I'll have a look sometimes soonish.
uacnix 2020 年 3 月 23 日 上午 5:50 
and "Console" is apparently not an admin :c
uacnix 2020 年 3 月 22 日 下午 7:48 
If I do pdmg_exclude someshit in server's console, it stops on IsAdmin (nil value) :c
I can't do it as admin, cause its serverside...