| closedcant hook SetFOV thru register_event? |
| Started by diamond-optic on 08-29-2006, 09:11 PM |
Threads: 103
Joined: May 2005
im not able to get this to work at all...nntrying to catch the SetFOV msg with the register_event but its not getting anything..nnany ideas? lolnn..I also tried register_message but thats not working for me either
Threads: 57
Joined: Oct 2005
show the register_event code. might not have the params right
Threads: 17
Joined: Jan 2005
Heres what I did in my chicken plugin:n nin the plugin init:nget_user_msgid("SetFOV")n nIn the function:nmessage_begin(MSG_ONE, gmsgSetFOV, {0,0,0}, id)n write_byte(90) // default_fov = 90n message_end()
Threads: 57
Joined: Oct 2005
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.
Threads: 103
Joined: May 2005
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...
Threads: 17
Joined: Jan 2005
lol...sorry...didnt read well enough. My bad ;)
Threads: 75
Joined: Jun 2006
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.nnCheers!

