PlaceholderGames / 2022-yr1-team-nudibranch

Second CS1S464
2 stars 0 forks source link

Vision Sphere blocking other vision spheres #8

Closed Kurtis12321 closed 2 years ago

Kurtis12321 commented 2 years ago

The vision sphere that spawns at the muzzle of the gun appears to temporarily block your vision of other vision spheres. Not sure if this happens in other branches but it's visible in the FPSLogic branch.

Hopefully, it's visible below, as the vision sphere at the muzzle spawns it blocks your vision for a few seconds and then it looks like as it gets smaller it stops blocking your vision.

MatB30043856 commented 2 years ago

I think this may be an issue with the plane that provides the outside ring not scaling correctly with the sphere. I'll take a look at it now.

MatB30043856 commented 2 years ago

Successfully replicated on VisionSystem branch. Possible fix could be spawning the sphere in front of the player rather than on them. Trying it now.

MatB30043856 commented 2 years ago

Moved the spawning location to the muzzle and made it smaller. The way I did it feels a bit hacky but I can't find a way to make AiStimulus return the volume of the sound played, so it's based on the tag of the sound for now. VisionSystem2

MatB30043856 commented 2 years ago

The above fix is in 508da3e. Let me know if it's good or if I should try something else. There's a purple close button that I'm desperately trying not to press.