You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.5 KiB
43 lines
1.5 KiB
5 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
//=============================================================================//
|
||
|
|
||
|
#include "cbase.h"
|
||
|
#include "usermessages.h"
|
||
|
#include "shake.h"
|
||
|
#include "voice_gamemgr.h"
|
||
|
|
||
|
void RegisterUserMessages( void )
|
||
|
{
|
||
|
usermessages->Register( "Geiger", 1 );
|
||
|
usermessages->Register( "Train", 1 );
|
||
|
usermessages->Register( "HudText", -1 );
|
||
|
usermessages->Register( "SayText", -1 );
|
||
|
usermessages->Register( "TextMsg", -1 );
|
||
|
usermessages->Register( "HudMsg", -1 );
|
||
|
usermessages->Register( "ResetHUD", 1 ); // called every respawn
|
||
|
usermessages->Register( "GameTitle", 0 );
|
||
|
usermessages->Register( "ItemPickup", -1 );
|
||
|
usermessages->Register( "ShowMenu", -1 );
|
||
|
usermessages->Register( "Shake", 13 );
|
||
|
usermessages->Register( "Fade", 10 );
|
||
|
usermessages->Register( "VGUIMenu", -1 ); // Show VGUI menu
|
||
|
|
||
|
usermessages->Register( "VoiceMask", VOICE_MAX_PLAYERS_DW*4 * 2 + 1 );
|
||
|
usermessages->Register( "RequestState", 0 );
|
||
|
usermessages->Register( "CloseCaption", -1 ); // Show a caption (by string id number)(duration in 10th of a second)
|
||
|
usermessages->Register( "HintText", -1 );
|
||
|
usermessages->Register( "AmmoDenied", 2 );
|
||
|
|
||
|
// TF User messages
|
||
|
usermessages->Register( "Damage", 13 );
|
||
|
usermessages->Register( "Accuracy", 2 );
|
||
|
usermessages->Register( "ZoneState", 1 );
|
||
|
usermessages->Register( "Technology", -1 );
|
||
|
usermessages->Register( "ActBegin", -1 );
|
||
|
usermessages->Register( "ActEnd", -1 );
|
||
|
usermessages->Register( "MinimapPulse", -1 );
|
||
|
usermessages->Register( "PickupRes", 1 );
|
||
|
}
|