I"m in the process of making a reflective weapons mutator, that is that some weapons will have beams and projectiles that can reflect off walls, like a laser does to a mirror.
So far the shock beam and shock projectile are done, Rocket launcher is done, and lightning gun is buggy in 3rd person view.
There is a script called SniperAttachment, that I think is the culprit to my problem, but first, take alook at my problem:
Here is the Reflective Lightning gun working correctly in first person view mode.
Http://www.freewebs.com/bluecorona/LookAtThis1.JPG
and here is the Reflective lightning gun displaying the lightning incorrectly in 3rd person view mode. This also applies to bots and other players.
Http://www.freewebs.com/bluecorona/LookAtThis2.JPG
Notice how the reflection points are shown correctly, but the lightning is being drawn from the gun to each point of reflection instead of from the gun to the first point of reflection to the next point to the next point, etc.
I've been looking at the the 3rdPersonEffects function of the SniperAttachment class. And i think i know a way to solve the problem, However, In order for it to work, I would need access to the variables in my ReflectiveSniperFire class.
I also have a similar variable access problem with my Mutator settings, I want to create a configureable boolean variable that appears in the mutator settings window, which can be accessed in my weapons fire classes.
Can anyone help me with either of these problems?
So far the shock beam and shock projectile are done, Rocket launcher is done, and lightning gun is buggy in 3rd person view.
There is a script called SniperAttachment, that I think is the culprit to my problem, but first, take alook at my problem:
Here is the Reflective Lightning gun working correctly in first person view mode.
Http://www.freewebs.com/bluecorona/LookAtThis1.JPG
and here is the Reflective lightning gun displaying the lightning incorrectly in 3rd person view mode. This also applies to bots and other players.
Http://www.freewebs.com/bluecorona/LookAtThis2.JPG
Notice how the reflection points are shown correctly, but the lightning is being drawn from the gun to each point of reflection instead of from the gun to the first point of reflection to the next point to the next point, etc.
I've been looking at the the 3rdPersonEffects function of the SniperAttachment class. And i think i know a way to solve the problem, However, In order for it to work, I would need access to the variables in my ReflectiveSniperFire class.
I also have a similar variable access problem with my Mutator settings, I want to create a configureable boolean variable that appears in the mutator settings window, which can be accessed in my weapons fire classes.
Can anyone help me with either of these problems?
Comment