MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / setEffectData

Function setEffectData

TheForceEngine/TFE_DarkForces/hitEffect.cpp:82–94  ·  view source on GitHub ↗

TFE: Set up effect from external data.

Source from the content-addressed store, hash-verified

80
81 // TFE: Set up effect from external data.
82 EffectData setEffectData(HitEffectID type, TFE_ExternalData::ExternalEffect* extEffects)
83 {
84 return
85 {
86 type, // type
87 TFE_Sprite_Jedi::getWax(extEffects[type].wax, POOL_GAME), // spriteData
88 FIXED(extEffects[type].force), // force
89 FIXED(extEffects[type].damage), // damage
90 FIXED(extEffects[type].explosiveRange), // explosiveRange
91 FIXED(extEffects[type].wakeupRange), // wakeupRange
92 sound_load(extEffects[type].soundEffect, SoundPriority(extEffects[type].soundPriority)), // soundEffect & priority
93 };
94 }
95
96 void spawnHitEffect(HitEffectID hitEffectId, RSector* sector, vec3_fixed pos, SecObject* excludeObj)
97 {

Callers 1

hitEffect_startupFunction · 0.85

Calls 3

getWaxFunction · 0.85
sound_loadFunction · 0.85
SoundPriorityEnum · 0.85

Tested by

no test coverage detected