Raised This Month: $ Target: $400
 0% 

Pulling my hair out("setFOV" issue: plugin rejects zooming)[SOLVED]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
World Crafter
Junior Member
Join Date: Jul 2006
Old 06-23-2007 , 00:32   Pulling my hair out("setFOV" issue: plugin rejects zooming)[SOLVED]
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (wpn_particle.sma - 597 views - 8.8 KB)
__________________

Last edited by World Crafter; 06-24-2007 at 01:18.
World Crafter is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 06-23-2007 , 23:10   Re: Pulling my hair out("setFOV" issue: plugin rejects zooming)
Reply With Quote #2

Never got "setFOV" to work, i just used the fakemeta way.
Code:
 set_pev(id,pev_fov,30.0);
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
World Crafter
Junior Member
Join Date: Jul 2006
Old 06-23-2007 , 23:42   Re: Pulling my hair out("setFOV" issue: plugin rejects zooming)
Reply With Quote #3

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.
__________________

Last edited by World Crafter; 06-24-2007 at 01:20.
World Crafter is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode