Raised This Month: $51 Target: $400
 12% 

player_spawn event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
za_bullet
Junior Member
Join Date: Nov 2005
Old 02-09-2006 , 08:44   player_spawn event
Reply With Quote #1

Hi All,

Fooling around with using MM:S on HL2MP. By default the ::FireEvent_Handler(IGameEvent *event, bool bDontBroadcast) receives messages like "player_active", "player_connect" etc. But doesn't get "player_spawn".

If I then implement IGameEventListener2 and call the IGameEventManager2::AddListener method with "player_spawn" as the event to listen for, it starts to come through, but obviously now I'm getting the method on both the ::FireEvent_Handler and the IGameEventListener2::FireGameEvent( IGameEvent *event ) methods.

My question is

1. Why does MM:S get some events and not others by default?
2. How do I, through the MM:S interfaces, subscribe to the event?

Many Thanks

D.
za_bullet is offline
Send a message via AIM to za_bullet
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 02-09-2006 , 10:08  
Reply With Quote #2

Hooking FireEvent misses some events. Some events that it catches on Windows aren't caught on Linux.

I've removed the FireEvent hook in my plugins and inherited IGameEventListener2 just as you did.
L. Duke is offline
Reply



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 12:55.


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