Garry's Mod
Недостатньо оцінок
ttt barnacle EPIC version
   
Нагородити
До улюбленого
В улюблених
Прибрати
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun
Розмір файлу
Додано
Оновлено
11.352 KB
5 квіт. о 0:19
28 квіт. о 14:16

Підпишіться, аби завантажити
ttt barnacle EPIC version

В колекціях (1) автора Cpt.Haxray
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  [автор] 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 15 верес. о 18: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 15 верес. о 18:15 
I added ttt_tweaks_barnacles_ignore_jesters 1 to my tweaks and fixes mod:
https://steamproxy.net/sharedfiles/filedetails/?id=3101810034

If you install that mod, barnacles won't pick up jesters at all
The Stig 14 верес. о 16:27 
Yeah looks like your suggestion is not happening, Nick replied with “There would be a lot of false positives”
The Stig 14 верес. о 2:12 
Honestly the barnacle should ideally just not pick up anyone on the jester team at all
The Stig 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 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  [автор] 13 верес. о 14: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 12 верес. о 22:33 
Anyway to mitigate that right now?
The Stig 12 верес. о 22:12 
This version can kill jesters and causes them to win