PDA

View Full Version : cant hook SetFOV thru register_event?


diamond-optic
08-29-2006, 10:11 PM
im not able to get this to work at all...

trying to catch the SetFOV msg with the register_event but its not getting anything..

any ideas? lol

..I also tried register_message but thats not working for me either

Wilson [29th ID]
08-30-2006, 02:02 AM
show the register_event code. might not have the params right

Hell Phoenix
08-30-2006, 01:35 PM
Heres what I did in my chicken plugin:

in the plugin init:
get_user_msgid("SetFOV")

In the function:
message_begin(MSG_ONE, gmsgSetFOV, {0,0,0}, id)
write_byte(90) // default_fov = 90
message_end()

Wilson [29th ID]
08-30-2006, 01:40 PM
Yeah, he wants to hook it though. Perhaps to prevent it from happening or make every "zoom" do it half as much or twice as much.

diamond-optic
08-31-2006, 11:46 AM
ya well i wanna catch it for a few diff things.. but ill post what ive got in my code when i get home from work...

Hell Phoenix
08-31-2006, 11:50 AM
lol...sorry...didnt read well enough. My bad ;)

Zor
08-31-2006, 04:46 PM
Ummm...Firestorm has a plugin that catches this. The Zoom I mean. Have to see if I can find it...I think its one of the sniper ones.

Cheers!