Jump to content

Neutral Grenade Throw Radius Bubble Issue


zionmoose

Recommended Posts

Hello. I am currently working on a mod that includes grenade overhauls as part of it.
I've come across a problem though. And this seems like a vanilla bug as well, so I don't believe this is anything cause by myself.
When playing in tactical mode, neutral grenades like smoke and smoke bomb are having an issue where the area of effect radius bubble disappears.
Most of the times, I encounter this when I click the throw smoke grenade ability, cancel it, switch to another character with a smoke grenade, and click the throw smoke grenade ability again. Basically after I do that, the radius bubble no longer appears and just the floor tiles are highlighted.
I tested this quite extensively and even did so with damage type grenades. The issue does not happen for grenades that do damage, just ones that are neutral.
The actual redscreen error I get is:
fullyloading in dynamicloadobject("UI_Range.Particles.BlastRadius_Shpere_Neutral")
This is the code that control whether the neutral bubble or hostile bubble gets drawn. I dont see anything wrong with it. Any ideas on what could be causing this issue? Yes its really just cosmetic, but it bugs the heck out of me.
In "X2TargetingMethod_Grenade.uc"
if (!AbilityTemplate.SkipRenderOfTargetingTemplate)
{
// setup the blast emitter
ExplosionEmitter = `BATTLE.spawn(class'XComEmitter');
if(AbilityIsOffensive)
{
   ExplosionEmitter.SetTemplate(ParticleSystem(DynamicLoadObject("UI_Range.Particles.BlastRadius_Shpere", class'ParticleSystem')));
}
else
{
   ExplosionEmitter.SetTemplate(ParticleSystem(DynamicLoadObject("UI_Range.Particles.BlastRadius_Shpere_Neutral", class'ParticleSystem')));
}

ExplosionEmitter.LifeSpan = 60 * 60 * 24 * 7; // never die (or at least take a week to do so)
}

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...