Garry's Mod

Garry's Mod

[SEF] Status Effect Framework
107 Comments
Aaron  [author] Aug 19 @ 9:57pm 
Create a disucssion and post it there
C1TY Aug 19 @ 9:54pm 
whatever i equip the MW2019 weapons i dont see the viewmodel, on ARC9 and other weapons base i can see the viewmodel. on draconic base whatever i start the game i somehow get new errors that i dont know what it causes but i have the error log of it
Aaron  [author] Aug 18 @ 9:03pm 
What exactly has been broken in those two addons?
C1TY Aug 18 @ 4:15pm 
for some reason this addon somehow broke two addons, one is MWBase and the other is Draconic Base
RiceIsNice Jul 29 @ 5:30pm 
HOOK: Think - InitBaseStatsSEF ~ 20ms
Aaron  [author] Jul 25 @ 4:33pm 
What is not optimized?
RiceIsNice Jul 25 @ 4:23pm 
not really optimized but good :steamthumbsup:
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?
Morning Star Mar 9 @ 10:41am 
hello, can I remove visual effects on player when healing or do smth else?
jim Feb 28 @ 12:12pm 
huh
Aaron  [author] Feb 26 @ 6:03am 
use SEF_StatusEffectX and SEF_StatusEffectY
jim 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
jim 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?
1984 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
1984 Nov 18, 2024 @ 1:54pm 
if you want
1984 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.
1984 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.
1984 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
1984 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