Posted by: Ail-Shan - Friday, January 4, 2013 4:46:59 PM
Starting with the Code:
[code]Object SupW_FocusLaserOuter
KindOf = IMMOBILE NO_COLLIDE UNATTACKABLE
EditorSorting = SYSTEM
Draw = W3DModelDraw ModuleTag_01
ParticlesAttachedToAnimatedBones = Yes
ConditionState = None
Model = EXSMB2
Animation = EXSMB2.EXSMB2
AnimationMode = LOOP
End
End
;---End mobility code---
Behavior = EMPUpdate ModuleTag_02
DisabledDuration = 1
EffectRadius = 0.000001
Lifetime = 4500
StartFadeTime = 9000
StartScale = 0.10
TargetScaleMin = 0.3
TargetScaleMax = 0.3
StartColor = R:174 G:190 B:230
EndColor = R:174 G:190 B:230
DoesNotAffect = ALLIES ENEMIES NEUTRALS SELF
End
Behavior = OCLUpdate ModuleTag_FocusStrike
MinDelay = 3000
MaxDelay = 3000
OCL = FocusLaserStrike
End
Behavior = InstantDeathBehavior ModuleTag_Shrink
DeathTypes = ALL
OCL = INITIAL FocusLaserShrink
End
; *** AUDIO Parameters ***
SoundAmbient = MicrowaveBeamSound
Geometry = SPHERE
GeometryMajorRadius = 30.0
GeometryIsSmall = No
End
Object SupW_FocusLaserShrink
KindOf = IMMOBILE NO_COLLIDE UNATTACKABLE
EditorSorting = SYSTEM
Draw = W3DModelDraw ModuleTag_01
ParticlesAttachedToAnimatedBones = Yes
ConditionState = None
Model = EXSMB2
Animation = EXSMB2.EXSMB2
AnimationMode = LOOP
End
End
;---End mobility code---
Behavior = EMPUpdate ModuleTag_02
DisabledDuration = 1
EffectRadius = 0.000001
Lifetime = 2000
StartFadeTime = 9000
StartScale = 0.3
TargetScaleMin = 0.1
TargetScaleMax = 0.1
StartColor = R:174 G:190 B:230
EndColor = R:174 G:190 B:230
DoesNotAffect = ALLIES ENEMIES NEUTRALS SELF
End
; *** AUDIO Parameters ***
SoundAmbient = MicrowaveBeamSound
Geometry = SPHERE
GeometryMajorRadius = 30.0
GeometryIsSmall = No
End[/code]
The OCLs are all nice and pretty, and the problem is only intermittent. Basically the SupW_FocusLaserShrink doesn't always draw. And the "doesn't always" is why this is annoying. It will draw most of the time, but occasionally it won't. I'm pretty sure it still exists because the MicrowaveBeamSound is still going on (and technically the SupW_FocusLaserOuter should be dead, and so not making any sound). I think that most the time it doesn't draw is when I fire the weapon on or near an object, but it was hard to be sure. Would it be some kind of collision issue (with a NO_COLLIDE KindOf no less)? Ideas?
Posted by: CommieDog - Friday, January 4, 2013 5:52:20 PM
You could always give it the draw module of a more typical unit (such as a Crusader) and see if it still has problems drawing.
Posted by: Ail-Shan - Saturday, January 5, 2013 3:29:23 PM
That's...a good idea. I'll try it out in a bit and see what happens (still expecting it won't draw half the time, but it's not too high on my priority list right now).
Edit: Okay I set it to draw the crusader, and am still getting the same error. I still can't see any consistency between each occurrence (near an object, far away from any objects), it just happens. I tried looking around the map too to see if it was just drawing somewhere else for some reason, but didn't see anything.
So, any other ideas?