I pulled this from effects/effect_base:
And this from scripting all docs:
They don't match up and it leaves me confused as to properly register an effect. What exactly does registereffect do? What of those vars do I need, and what are the options/what do they do for the script?
I'm not using the effect base 'cuz pretty much all functions I don't need.
Code:
{ [server] game_precache
local reg.effect.name EFFECT_ID
local reg.effect.flags EFFECT_ACTIONTYPE
local reg.effect.script EFFECT_SCRIPT
setvard game.effect.removeondeath EFFECT_REMOVE_ON_DEATH
registereffect
setvard game.effect.id EFFECT_ID
setvard game.effect.displayname EFFECT_NAME
setvard game.effect.flags EFFECT_ACTIONTYPE
}
Code:
registereffect
Registers a scripted effect. An effect is meant to temporarily modify an entity's behavior.
This command accepts parameters from the following variables values:
EFFECT.NAME - Name
EFFECT.TYPE - normal: Effect is applied from the applyeffect command
player_action: Effect is automatically applied to players on their initial spawn
EFFECT.SCRIPT - The effect's scriptfile
I'm not using the effect base 'cuz pretty much all functions I don't need.