Garry's Mod

Garry's Mod

[SEF] Status Effect Framework
100 Comments
Aceratia 24 May @ 8:53pm 
How would one remove the HUD, visual effects, and sounds? (cinematic purposes)
Groncho Huevoncho 15 May @ 11:39am 
You should put the answer in a FAQ on the Description isntead of your Discord Server, just sayin' :TheRooster:
Sims 8 May @ 10:38pm 
It seems like this mod removes the ear-ringing sound effect that plays when taking explosive damage
🕊 Peace&Death ⚰ 7 Apr @ 3:00am 
HOW TO REMOVE FCKNG VISUAL EFFECTS?
🕊 Peace&Death ⚰ 7 Apr @ 3:00am 
Визуальные эффекты всё портят
StarSpangledSenpai 10 Mar @ 3:24am 
how do I when it comes to effect like have when ever I'm shot cause bleeding?
Hellas 9 Mar @ 10:41am 
hello, can I remove visual effects on player when healing or do smth else?
bob 28 Feb @ 12:12pm 
huh
Aaron  [author] 26 Feb @ 6:03am 
use SEF_StatusEffectX and SEF_StatusEffectY
bob 26 Feb @ 4:18am 
i cant really see all status effects because theyre are kinda too far on the bottom of the screen and unlike in the picture squares i dont want to sound stupid and if its actually a feature and please dont judge me but uhh yeah
Aaron  [author] 26 Feb @ 1:00am 
What's broken for you
bob 25 Feb @ 10:06pm 
i dont have discord but want to tell you that its kinda broken for me
Aaron  [author] 23 Dec, 2024 @ 10:29pm 
Please use discord for this.
Saetia_Drip 23 Dec, 2024 @ 9:03pm 
well i disable all addons and only this one enable but this still causing errors and spam it,take a look
Saetia_Drip 23 Dec, 2024 @ 9:02pm 
[[SEF] Status Effect Framework] lua/sef/sef_functions.lua:63: bad argument #2 to 'Desc' (number expected, got nil)
1. Desc - [C]:-1
2. ApplyEffect - lua/sef/sef_functions.lua:63
3. unknown - lua/sef/sef_functions.lua:607
4. unknown - lua/includes/modules/concommand.lua:54
[[SEF] Status Effect Framework] lua/sef/sef_effectlist.lua:562: bad argument #1 to 'TakeDamage' (number expected, got nil)
1. TakeDamage - [C]:-1
2. Function - lua/sef/sef_effectlist.lua:562
3. v - lua/sef/sef_hooks.lua:19
4. unknown - lua/includes/modules/hook.lua:102
jaborbis 1 Dec, 2024 @ 12:39pm 
wish this mod got more addons that used it, it's so peak :steamhappy:
Aaron  [author] 27 Nov, 2024 @ 9:50am 
No.
Jduke 27 Nov, 2024 @ 7:28am 
Does this mod mess with the tinntius effect when taking explosion damage?
ᴘᴏʀɴᴏɢʀᴀᴘʜʏ 24 Nov, 2024 @ 1:59pm 
Add heart attack
Aaron  [author] 24 Nov, 2024 @ 3:57am 
Yep, stunned is working on my side, so 100% addon conflict.
Leon 24 Nov, 2024 @ 2:49am 
I type one of the commands the give effect
and I gave myself stunned but it didn't stop me from moving
do I have something that's conflicting it?
Aaron  [author] 20 Nov, 2024 @ 12:34pm 
@TRY TO AIM Read Description.

@Малыш Камыш Fixed.
Малыш Камыш 20 Nov, 2024 @ 6:24am 
[[SEF] Status Effect Framework] lua/sef/sef_effectlist.lua:1041: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. Function - lua/sef/sef_effectlist.lua:1041
3. hookfunc - lua/sef/sef_hooks.lua:19
4. fn - lua/perfopus/sh_time_hook.lua:36
5. unknown - lua/ulib/shared/hook.lua:109
Rammel 20 Nov, 2024 @ 12:37am 
This is great
TRY TO AIM 19 Nov, 2024 @ 10:00pm 
I didn't have bleeding effect when I got shot. Or I misunderstanding something?
can someone told me plz? I'm dumb
Aaron  [author] 19 Nov, 2024 @ 8:25pm 
Gonna fix it when i get home
MixedUpManiac 19 Nov, 2024 @ 6:10pm 
tenacity spams this error
MixedUpManiac 19 Nov, 2024 @ 6:09pm 
[[SEF] Status Effect Framework] lua/sef/sef_effectlist.lua:613: bad argument #1 to 'pairs' (table expected, got nil)
1. pairs - [C]:-1
2. Function - lua/sef/sef_effectlist.lua:613
3. v - lua/sef/sef_hooks.lua:19
4. unknown - lua/includes/modules/hook.lua:96 (x363)
Aaron  [author] 19 Nov, 2024 @ 1:18pm 
You can change style to your liking
SWalk42 19 Nov, 2024 @ 1:16pm 
They arent circles anymore
Aaron  [author] 19 Nov, 2024 @ 1:12pm 
What do you mean
SWalk42 19 Nov, 2024 @ 12:08pm 
did the hud update?
Wallace 18 Nov, 2024 @ 2:49pm 
Well
Look, you put entbasestats check, but it still runing cycle on players table and still scan for entities such as npc/player/nextbot, so you stop it only on aplying initientitybasestats if they already applied.
But cycle is still runnign and its done every frame. Aslo it don't need to be checked every frame, its simply overkill. As i said before it can be done on playerspawn or when you apply your status effect on entity.
Aaron  [author] 18 Nov, 2024 @ 2:35pm 
Well, you can
Wallace 18 Nov, 2024 @ 1:54pm 
if you want
Wallace 18 Nov, 2024 @ 1:54pm 
Okay, i don't think its suitable place for discuss such things, but i can show where it scan player/npc every frame and why your stop function does not work as you think
Aaron  [author] 18 Nov, 2024 @ 1:47pm 
Scans, yes, but after creating table does nothing more.
Wallace 18 Nov, 2024 @ 1:35pm 
nope, its scan players every frame
Aaron  [author] 18 Nov, 2024 @ 1:32pm 
This hook creates stats only once and if it passes IsPlayer/IsNPC/IsNextBot check. Otherwise it does nothing.
Wallace 18 Nov, 2024 @ 1:00pm 
SEF_functions.lua line 544
you dont need to init base stats every frame
you can do it in playerspawn hook for example
also dont run cycles (pairs) inside of think hooks its bad idea
Wallace 18 Nov, 2024 @ 12:51pm 
okay
Aaron  [author] 18 Nov, 2024 @ 12:31pm 
However i'm open for suggestions how to improve code on Github
Aaron  [author] 18 Nov, 2024 @ 12:19pm 
Think hooks does nothing if table is empty.
Wallace 18 Nov, 2024 @ 12:07pm 
think hooks implementation causes terrible impact on performance
Vauk 17 Nov, 2024 @ 10:10pm 
@Aya the bleeding effect exists as like a "template" its never applied because its a framework
Aaron  [author] 17 Nov, 2024 @ 8:10pm 
Which mods are causing this?
screwdriver lobotomy 17 Nov, 2024 @ 3:28pm 
There were MANY mods causing chunks of fps tanking.

most of them were mods I really like to use so that really sucks, but I got to a point where I get stable frames!!

Even with all this cleaning though, I still get 30+ frames less than I would with it disabled.
screwdriver lobotomy 17 Nov, 2024 @ 2:29pm 
alright I will if I even find it it could be a multi conflict and that's gonna be harder to uncover
Vauk 17 Nov, 2024 @ 2:29pm 
Do the binary method or however its called like turn on half, if its normal then turn on a quarter and if it does not work then remove the half of the half