Garry's Mod

Garry's Mod

Ikke nok vurderinger
ttt barnacle EPIC version
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun
Filstørrelse:
Offentliggjort:
Opdateret:
11.352 KB
5. apr. 2024 kl. 0:19
28. apr. 2024 kl. 14:16
5 ændringsbemærkninger ( vis )

Abonner for at downloade
ttt barnacle EPIC version

I 2 samlinger af Cpt.Haxray
Vanilla + TTT collection
24 genstande
GMod CR for TTT Anarchy Collection
92 genstande
Beskrivelse
- 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 kommentarer
wget  [ophavsmand] 21. sep. 2024 kl. 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. sep. 2024 kl. 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. sep. 2024 kl. 18:15 
I added ttt_tweaks_barnacles_ignore_jesters 1 to my tweaks and fixes mod:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3101810034

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