Garry's Mod

Garry's Mod

[SEF] Status Effect Framework
100 Comments
Aceratia May 24 @ 8:53pm 
How would one remove the HUD, visual effects, and sounds? (cinematic purposes)
Groncho Huevoncho May 15 @ 11:39am 
You should put the answer in a FAQ on the Description isntead of your Discord Server, just sayin' :TheRooster:
Sims May 8 @ 10:38pm 
It seems like this mod removes the ear-ringing sound effect that plays when taking explosive damage
🕊 Peace&Death ⚰ Apr 7 @ 3:00am 
HOW TO REMOVE FCKNG VISUAL EFFECTS?
🕊 Peace&Death ⚰ Apr 7 @ 3:00am 
Визуальные эффекты всё портят
StarSpangledSenpai Mar 10 @ 3:24am 
how do I when it comes to effect like have when ever I'm shot cause bleeding?
Hellas Mar 9 @ 10:41am 
hello, can I remove visual effects on player when healing or do smth else?
literally BEANS Feb 28 @ 12:12pm 
huh
Aaron  [author] Feb 26 @ 6:03am 
use SEF_StatusEffectX and SEF_StatusEffectY
literally BEANS Feb 26 @ 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] Feb 26 @ 1:00am 
What's broken for you
literally BEANS Feb 25 @ 10:06pm 
i dont have discord but want to tell you that its kinda broken for me
Aaron  [author] Dec 23, 2024 @ 10:29pm 
Please use discord for this.
Saetia_Drip Dec 23, 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 Dec 23, 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 Dec 1, 2024 @ 12:39pm 
wish this mod got more addons that used it, it's so peak :steamhappy:
Aaron  [author] Nov 27, 2024 @ 9:50am 
No.
Jduke Nov 27, 2024 @ 7:28am 
Does this mod mess with the tinntius effect when taking explosion damage?
ᴘᴏʀɴᴏɢʀᴀᴘʜʏ Nov 24, 2024 @ 1:59pm 
Add heart attack
Aaron  [author] Nov 24, 2024 @ 3:57am 
Yep, stunned is working on my side, so 100% addon conflict.
Leon Nov 24, 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] Nov 20, 2024 @ 12:34pm 
@TRY TO AIM Read Description.

@Малыш Камыш Fixed.
Малыш Камыш Nov 20, 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 Nov 20, 2024 @ 12:37am 
This is great
TRY TO AIM Nov 19, 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] Nov 19, 2024 @ 8:25pm 
Gonna fix it when i get home
MixedUpManiac Nov 19, 2024 @ 6:10pm 
tenacity spams this error
MixedUpManiac Nov 19, 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] Nov 19, 2024 @ 1:18pm 
You can change style to your liking
SWalk42 Nov 19, 2024 @ 1:16pm 
They arent circles anymore
Aaron  [author] Nov 19, 2024 @ 1:12pm 
What do you mean
SWalk42 Nov 19, 2024 @ 12:08pm 
did the hud update?
Wallace Nov 18, 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] Nov 18, 2024 @ 2:35pm 
Well, you can
Wallace Nov 18, 2024 @ 1:54pm 
if you want
Wallace Nov 18, 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] Nov 18, 2024 @ 1:47pm 
Scans, yes, but after creating table does nothing more.
Wallace Nov 18, 2024 @ 1:35pm 
nope, its scan players every frame
Aaron  [author] Nov 18, 2024 @ 1:32pm 
This hook creates stats only once and if it passes IsPlayer/IsNPC/IsNextBot check. Otherwise it does nothing.
Wallace Nov 18, 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 Nov 18, 2024 @ 12:51pm 
okay
Aaron  [author] Nov 18, 2024 @ 12:31pm 
However i'm open for suggestions how to improve code on Github
Aaron  [author] Nov 18, 2024 @ 12:19pm 
Think hooks does nothing if table is empty.
Wallace Nov 18, 2024 @ 12:07pm 
think hooks implementation causes terrible impact on performance
Vauk Nov 17, 2024 @ 10:10pm 
@Aya the bleeding effect exists as like a "template" its never applied because its a framework
Aaron  [author] Nov 17, 2024 @ 8:10pm 
Which mods are causing this?
screwdriver lobotomy Nov 17, 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 Nov 17, 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 Nov 17, 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