Raised This Month: $32 Target: $400
 8% 

Game events not raised


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maitredede
Senior Member
Join Date: May 2005
Old 04-13-2015 , 09:11   Game events not raised
Reply With Quote #1

Hi,

Coding a MMS CSGO plugin.

I have built a char* of all game events (from wiki CSGO, Server, generic).

I handle all them with a singleton, but some of theme does not seams to be raised (like round_start, round_end)...
Event listener registration is done when plugin Load and removed when plugin Unload.
Code:
gameevents->AddListener(this, g_CSGO_EventNames[i], true);
Is there something I have missed ? Is there a limit to number of events that can be handled ? Thanks

Can this be related to the fact that I only have bots on the server ?
__________________
make brain && make install

Last edited by maitredede; 04-13-2015 at 10:02. Reason: One message
maitredede is offline
maitredede
Senior Member
Join Date: May 2005
Old 04-14-2015 , 09:45   Re: Game events not raised
Reply With Quote #2

Tested : with only bots, there is no "gameplay" events (round_*, bomb_*...) just like if the bots were playing a simple deathmatch without rules.

Since I connected to the server and joined a team, game runs with almost all events (not seen some yet)...

__________________
make brain && make install
maitredede is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 04-14-2015 , 13:18   Re: Game events not raised
Reply With Quote #3

The reason is that the server is going to hibernate mode. This happens when no players are connected. The GameFrame function won't be called either.
Chrisber is offline
maitredede
Senior Member
Join Date: May 2005
Old 04-14-2015 , 13:24   Re: Game events not raised
Reply With Quote #4

On commandline, I set :
Code:
+sv_hibernate_when_empty 0
so bots "play" the game. But they don't play seriously... I have events like "player_spawn", "weapon_fire", "player_hurt", "player_footstep"... But no "round_start", "round_end"... Even the bomb is not given to bots...
__________________
make brain && make install
maitredede 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 01:53.


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