TFE: Set up effect from external data.
| 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 | { |
no test coverage detected