AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block Game-Commencing! (https://forums.alliedmods.net/showthread.php?t=189617)

NiHiLaNTh 07-09-2012 07:08

Block Game-Commencing!
 
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.

http://www.digitalscrapbookingshop.c...al-whyyyyy.png

Arkshine 07-09-2012 07:56

Re: Block Game-Commencing!
 
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.

NiHiLaNTh 07-09-2012 08:52

Re: Block Game-Commencing!
 
oh great, thanks. :)


All times are GMT -4. The time now is 15:15.

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