UpdateSpellEffectObject
function · objectlayer · primitive
- Address
0x620be0· 1269 bytes, up to0x6210d4- Meaning
- Sets up an effect once its model loads: placement, attachment, scale, camera shake and sound
- Confidence
- verified, proof one
- Finding
- objectlayer/effects#setting-up-once-loaded
- Test
objectlayer::f2_effect_anchor_add_difftest,objectlayer::f2_vec3_half_scale_be0_difftest,objectlayer::f2_attach_scale_div_difftest
Finding: Setting up once loaded in objectlayer: effects
An effect with a model is set up once, on the first frame its model is loaded. A planted effect gets a world object at its point, turned by its owner's facing and scaled by its owner's scale, and shows from its start time. An attached one must find its attachment on its target's model; flag 0x200 would scale it to the target's size over its own, but no creator sets it. Then the kit's camera shake plays at the effect, and the kit's sound plays once at the effect or, with flag 0x1, loops on the object.
The derivation is in the doc.
Callers 1
- CEffect::Update objectlayer
Callees 26
- SplatVector3 loadingscreen
- OsGetAsyncTimeMs core
- DebugPrintStub unassigned
- SetVector3 spline
- PlaySoundAtArgs sound
- PlaySoundLoop3D sound
- ClntObjMgrObjectPtr objectlayer
- BuildPlantedEffectMatrix objectlayer
- CWorld::CreateLightObjectA terrain
- SyncLightNode terrain
- PlaySpellEffectCameraShakes spell
- CM2Model::IsLoaded models
- CM2Model::GetBaseTransform models
- CM2Model::SetBaseTransform models
- CM2Model::SetAnimated models
- CM2Model::SetVisible models
- CM2Model::GetModelName models
- CM2Model::HasAnimation models
- CM2Model::GetSequenceInfo models
- CM2Model::HasAttachment models
- CM2Model::GetAttachmentPosition models
- CM2Model::Attach models
- CM2Model::GetBoundingBox models
- CM2Model::GetBoundingSphere models
- Sound::Set3DUpdateHandle sound
- ScaleMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.