Garry's Mod

Garry's Mod

评价数不足
ttt barnacle EPIC version
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐
文件大小
发表于
更新日期
11.352 KB
2024 年 4 月 5 日 上午 12:19
2024 年 4 月 28 日 下午 2:16
5 项改动说明 ( 查看 )

订阅以下载
ttt barnacle EPIC version

在 Cpt.Haxray 的 2 个合集中
Vanilla + TTT collection
24 件物品
GMod CR for TTT Anarchy Collection
92 件物品
描述
- complete rewrite from scratch
- new cvars for you to tweak if you want (listed below)
- transparent preview that shows where the barnacle will be placed
- barnacle itself is now visible but its tongue is invisible
- properly prevents victims from switching weapons
- barnacle and any other npcs will always ignore each other
- kill icon of barnacle on corpse search ui
- placing a barnacle is logged in damagelogs
- compatible with custom roles and ttt2
- various bug fixes (like the barnacle warning for other traitors not showing if a non-vanilla traitor places it)
- etc

server cvars:
ttt_barnacle_amount 2 : Number of barnacles received per purchase

ttt_barnacle_distance_x 96 : Maximum horizontal distance that players can place barnacles from

ttt_barnacle_distance_y 256 : Maximum vertical distance that players can place barnacles from

ttt_barnacle_health 35 : Amount of health that placed barnacles will spawn with

ttt_barnacle_damage 5 : Damage that placed barnacles will deal per bite

ttt_barnacle_ignore_owner 0 : Barnacles will not attack the player who placed them

more info:
tell me in the comments below if you encounter some issue or if you want to suggest some feature

anyone is free to edit and share edited versions of this addon's code
(just make it clear what you changed)

my addons:
my maps:
13 条留言
wget  [作者] 2024 年 9 月 21 日 上午 7:33 
@The Stig
what would the false positives be? "don't take dmg if attacker is player and inflictor is npc" seems like it'd just do exactly what you want and will catch any future cases

also it's not that the original barnacle addon made sure not to deal damage to the jester, it's that the jester role made sure the original barnacle addon didnt deal damage to the jester

if the jester role only checked for the crush dmg, then it was checking for crush damage, not barnacle damage, because if you wanted to explicitly check for barnacle damage then you'd check if the inflictor's class is the barnacle class

it's been a while so i don't remember exactly why i changed the barnacle dmg type from slash+crush to only slash, but iirc it's because the double dmg type was making it calculate the final damage amount in a strange inconsistent way, like it would usually deal 10% or 25% or whatever of the intended damage
Malivil 2024 年 9 月 15 日 下午 6:27 
It would work the same as other barnacles (e.g. pick up, but not damage jesters) if it didn't explicitly remove crushing damage. Out of curiosity, what's the reasoning for that?
The Stig 2024 年 9 月 15 日 下午 6:15 
I added ttt_tweaks_barnacles_ignore_jesters 1 to my tweaks and fixes mod:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3101810034

If you install that mod, barnacles won't pick up jesters at all
The Stig 2024 年 9 月 14 日 下午 4:27 
Yeah looks like your suggestion is not happening, Nick replied with “There would be a lot of false positives”
The Stig 2024 年 9 月 14 日 上午 2:12 
Honestly the barnacle should ideally just not pick up anyone on the jester team at all
The Stig 2024 年 9 月 14 日 上午 2:05 
I guess even if your suggestion was done stuff like the shark trap still wouldn’t work because it isn’t an NPC
The Stig 2024 年 9 月 14 日 上午 2:03 
Seems like Mal wants the onus to be on weapons to make sure one’s like the barnacle deal damage the jester is immune to, the original barnacle did this
wget  [作者] 2024 年 9 月 13 日 下午 2:08 
i will argue it's a fault with the jester role rather than with this addon

jester should simply check if the attacker is a player + if the inflictor is an npc
Anthony Fuller 2024 年 9 月 12 日 下午 10:33 
Anyway to mitigate that right now?
The Stig 2024 年 9 月 12 日 下午 10:12 
This version can kill jesters and causes them to win