Raised This Month: $ Target: $400
 0% 

Block Game-Commencing!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-09-2012 , 07:08   Block Game-Commencing!
Reply With Quote #1

I know it was asked a lot of times - but all I found is how to block Game Commencing message.But I need to block this event itself.

I know its possible with Orpheu, but the problem is that I cant find the code.

__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-09-2012 , 07:56   Re: Block Game-Commencing!
Reply With Quote #2

This event is triggered from CHalfLifeMultiplay::CheckWinConditions() and it happens when the matches is not started yet (m_bMatchStarted offset) and there are spawnable CT/T (m_iNumSpawnableTerrorist/m_iNumSpawnableCT offsets).

So to block the event, you can hook this function, checking these offsets and supercede.

In InfiniteRound v2, there is a cvar which lets you to choose whether you want to block such event. You can grab the code from there.
__________________

Last edited by Arkshine; 07-09-2012 at 07:57.
Arkshine is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 07-09-2012 , 08:52   Re: Block Game-Commencing!
Reply With Quote #3

oh great, thanks.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
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 15:15.


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