Pulling my hair out("setFOV" issue: plugin rejects zooming)[SOLVED]
1 Attachment(s)
I just love how I keep ending up with the problems that nobody has ever gotten before. or at least, nobody has ever asked about before.
Below is a plugin(for WeaponMod, of course) that features a zooming feature. The problem is that if this plugin is installed, it rejects the use of zooming on any regular weapon. Please help me, I don't understand why it is doing this at all. I would say that the code I used for zooming is identical to the bullseye plugin, but its obviously not, I just can't see the difference. PS: The "explode" and "attack1" are unimportant, so you can skip them if it makes your life easier. |
Re: Pulling my hair out("setFOV" issue: plugin rejects zooming)
Never got "setFOV" to work, i just used the fakemeta way.
Code:
|
Re: Pulling my hair out("setFOV" issue: plugin rejects zooming)
Simple and easy to use, I like it.
I'll give that a shot, thanks. Edit: I guess keeping it simple is too much for Counter Strike. Pev_fov doesn't work. Edit: I'm not sure why this worked, but removing the task of reseting the player's FOV when changing weapons fixed the problem. Apparently CS does that for you, and maybe setting a player's FOV through a plugin when switching weapons "locked" it in place, so that it could not change. Its strange that nobody has ever pointed that out before, though, and even stranger that the bullseye plugin does just that and doesn't get this problem. Thanks for trying to help, SixTwin. Even though it didn't work, your input is greatly appreciated. Edit[again]: It turns out that the problem hasn't been fixed. I forgot to disable the bullseye plugin, and that was the "fix" that i thought I had. The problem is still there. Last edit: By literally copying and pasting the code from the bullseye "changeweapon" function, I was able to fix the problem. I still don't understand exactly why, because ultimately it reset your FOV first thing in both cases, but I don't even care at this point. The problem is solved, and should the error rear its head again during an update I'm just going to resort to installing the bullseye plugin and using that as a base for switching weapons. |
| All times are GMT -4. The time now is 21:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.