#define I_SENDCOMMANDCONST_H	aaa
//----------------------------------------------------------------------------
//  @brief
//        file with constants for use in SendCommand(..) function

//  @ingroup
    
//  2004Aug09 created. Zmanovsky Peter.
//  (C) 2004    Sigma-Team
//-----------------------------------------------------------------------------

//---------------------------------------------------------------------------------------
#define	MES_NONE						0
#define	MES_CANTBUY						1
#define	MES_INVNOTENOUGHSPACE			2
#define	MES_NOTENOUGHMONEY				3
#define	MES_AUTOTAKE_NOTENOUGHSPACE		4
#define	MES_LOGADD						5
//очищаем сообщение
#define	MES_CLEAR						6


//---------------------------------------------------------------------------------------
//константы для Hall of fame
#define	REC_VAR_1			0
#define	REC_VAR_2			1
#define	REC_VAR_3			2
#define	REC_HASH_NUM		3

#define	REC_VARS_CNT		4

#define	REC_VAR_NAME		5
#define	REC_VAR_DATE		6
#define	REC_VAR_CHEATER		7

#define	REC_VAR_WPN_CNT		8

#define	REC_VAR_WPN_DATA	9


//---------------------------------------------------------------------------------------
#define EXT_PROC_SHOWINVENTORY  0       // var1=1 - показать, var1=0 - спрятать.
#define EXT_GETARMORDIR         9       //
#define EXT_GETDIRTYSTATE       8       //if return != 0, then recalc gamebar
#define EXT_GETWEAPONVID        7       //
#define EXT_GETWEAPONDIR        6       //
#define EXT_GETHEROFACEDIR      5       //
#define EXT_GETITEMVID          4       //var1- номер инвентаря (см. INV_XXX)
#define EXT_GETITEMDIR          3       //var1- номер инвентаря (см. INV_XXX)
#define EXT_GETITEMS_CNT        2       //var1- номер инвентаря (см. INV_XXX)
#define EXT_GETSKILL            1       //var1 - id объекта, var2 - SkillNum
#define EXT_GETSKILLBASE        14      //var1 - id объекта, var2 - SkillNum
#define EXT_GETHEROID           13      //
#define EXT_GETARMORID          12      //
#define EXT_GETWEAPONID         11      //
#define EXT_GETITEMDIRTY        10      //изменено ли состояние предмета var2 у героя var1
//данные константы нужны для того, чтобы не завязываться на имена предметов
				#define ITM_NONE           0
                #define ITM_FLASH          1
                #define ITM_DRONE          2
                #define ITM_DRONE2         3
                #define ITM_NVISN          4
                #define ITM_INVULN         5
                #define ITM_GRENADE        6
                #define ITM_RADAR          7
                #define ITM_TANKSHELL      8
                #define ITM_MEDKIT         9
                #define ITM_DYNAMITE       10
                #define ITM_BACKPACK       11
                #define ITM_DOCS_06        12
                #define ITM_DETAL_06       13
                #define ITM_DETAL_07       14



                #define DS_NONE             0
                #define DS_CHANGESTATE      1
                #define DS_CHANGED          2
               	#define DS_REMOVED          3


#define EXT_IFHASITEM           15      //есть ли предмет var1 в активном инвентаре героя

#define EXT_SETINVULNERABLE         16  //var1 - hero's id, var2 - invulnarability-flag
#define EXT_SETGAMMAITEMDISABLED    17  //гамма предметам, кот. нельзя
                                        //установить герою, var1 = red,
                                        //var2 = green, var3 = blue
#define EXT_GETITEMDISABLED         18  //var1- номер инвентаря (см. INV_XXX)
//увеличить скилл var1 героя на var2, if( var3 ) - output message if needed
#define EXT_ADDSKILL                21
#define EXT_INVENTORYSETACTIVE      20  // var1=1 - сделать активным, var1=0 - неактивным
#define EXT_GETRELOADBARDIR         19  //
#define EXT_GETCURAMMOBARDIR        22  //var1=1 - пересчитать полоску
#define EXT_GETCURCADR              23  //получить текущий кадр спрайта. var1-спрайт.
#define EXT_GETPERKSKILL            24  //получить текущий перк
#define EXT_GETCHARSKILL			25  //получить форматированный в текст скилл var2 объекта var1
//#define EXT_GETPERKICONDIR          26  //получить направление иконки текущего перка

//SURVIVE MODE functions:

//get number of monster types to born in current period.
//var1 - time from the beginning of the game.
#define EXT_GETMONSTERTYPESCNT		30

//get count of monsters to born in current period. var1 - time from the beginning of the game
//var2 - number of monster's type
#define EXT_GETMONSTERCOUNT			29

//get vid of monsters to born in current period. var1 - time from the beginning of the game
//var2 - number of monster's type
#define EXT_GETMONSTERVID			28

//get length of current period in seconds. var1 - time from the beginning of the game
#define EXT_GETPERIODLENGTH			27

//get boss to create in current period. var1 - time from the beginning of the game
//#define EXT_BOSSTOCREATE			31

//get boss-bonuses count. var1 - time from the beginning of the game
//#define EXT_GETBOSSBONUSESCNT		32

//get boss-bonuses ids. var1 - time from the beginning of the game. var2 - number of bonus
//#define EXT_GETBOSSBONUSID			33

//
#define EXT_GetBossSize				31

//
#define EXT_GetBossHpCoeff			32


//var1 - time from the beginning of the game
#define EXT_IsBossPeriod			33

//get bonus ids to create. var1 - time from the beginning of the game
#define EXT_GETBONUSID				34

//get ground vid of the object with id == var1, .. <var2> is also used
#define EXT_GETITEMVIDBYID         	35  //

//tell hero to select best weapon
#define EXT_SELECTBESTWEAPON		36

//sprite's rotate tact. var1 - sprite, var2 - delta angle, var3 - delta time.
#define EXT_ROTATETACT				37

//add item to hero. var1 - base id of the item
#define EXT_ADDITEMBYBASEID			40

//set reduce scale for vid. var1 - vid number. var2 - scale in percents
#define EXT_SETVIDREDUCESCALE		41

//get reduce scale for vid. var1 - vid number.
#define EXT_GETVIDREDUCESCALE		42

//get radius and angle. from x and y coordinate. var1 - x. var2 - y.
//var3 == 1 - get angle; var3 == 2 - get radius;
#define EXT_CONVERFROMCARTESIAN		46

//get dirty state of current quests. no variables needed.
#define EXT_GETQUESTSDIRTYSTATE		44

//get number of quests. no variables needed.
#define EXT_GETQUESTSNUM			43

//get number of subquests for quest var1
#define EXT_GETSUBQUESTSNUM			45

//get state of subquest var2 of the quest var1.
//if var2 == 0 - then state of the whole quest returned
#define EXT_GETQUESTSSTATE			48

//return name of subquest var2 of the quest var1.
//if var2 == 0 - then state of the whole quest returned
#define EXT_GETQUESTNAME			49

//kill all objects with name "h"+[var1]
#define EXT_KILLOBJECTS				47

//set level name for QuestServer
//#define EXT_SETLEVELNAME			50

//return 1 if sprite <var1> has name
#define EXT_SPRITEHASNAME			51

//get name of sprite <var1>
#define EXT_GETSPRITENAME			52

//getinventory number by sprite name <var1>
#define EXT_GETINVBYNAME			53

//get height of text <var1> (as SPRITE)
#define EXT_GETTEXTHEIGHT			54

//get SizeX of inventory number <var1>
#define EXT_GETINVSIZEX				55

//get SizeY of inventory number <var1>
#define EXT_GETINVSIZEY				56

//remember user's name <var1> for some purposes
#define EXT_SETUSERNAME				57

//set diastanse for autotaking
#define EXT_AUTOTAKINGDIST			58

//return true if skill is increased by implantants
//var1 - id объекта, var2 - SkillNum
#define EXT_IFINCREASEDBYIMPLANT	59

//get if of item from inventory <var2> of hero <var1>. return 0 if no item.
#define EXT_GETITEMID				60

//disable(if <var1>) or enable flagman control processing
#define EXT_DISABLEFLAGMANCONTROL	61

//get number of items in shop list
#define EXT_GETSHOPITEMSNUM			62

//get number of displayed items in shop list
#define EXT_GETSHOWNSHOPITEMSNUM	63

//get number of fist displayed item in shop's list
#define EXT_GETFIRSTSHOWNITEM		64

//
#define EXT_SHOPLISTPAGEUP			65

//
#define EXT_SHOPLISTPAGEDOWN		66

//
//#define EXT_SHOPINFOPAGEUP			67

//
//#define EXT_SHOPINFOPAGEDOWN		68

//
//#define EXT_GETSHOPLISTPAGE			69

//
//#define EXT_GETSHOPLISTPAGESNUM		70

//
#define EXT_REMOVEFLAGMANDIALOG		72

//
#define EXT_GETMESSAGEDIRTY			71

//
#define EXT_GETMESSAGE				73

//
#define EXT_GETCARSPEED				74

//
#define EXT_PREVHERO				75

//
#define EXT_NEXTHERO				76

//
#define EXT_CHANGESEX				77

//
#define EXT_PREVCOLOR				78

//
#define EXT_NEXTCOLOR				79

//
#define EXT_GETCOLORLINEDIR			80

//add skill in paramDialog. var1 - skill num, var2 - abstract value.
#define EXT_PDADDSKILL				81

//var1 - skillnum
#define EXT_PDCANINCSKILL			82

//var1 - skillnum
#define EXT_PDCANDECSKILL			83

//var1 - vid num, var2 - direction
#define EXT_GETABSDIR				84

//
#define EXT_PDASSIGNSKILLS			85

//
#define EXT_PDREMOVESKILLINCREASE	86

//
#define EXT_GETRADIOMSGDIRTY		88

//
#define EXT_GETRADIOMSG				89

//
#define EXT_GETRADIOICONVID			90

//
#define EXT_GETRADIOICONDIR			91

//
#define EXT_GETRADIOFONTVID			92

//var1 - monster vid
#define EXT_GETRANDBONUSID			93

//var1 - level num
#define EXT_SETSHOPLEVELNUM			94

//
#define EXT_RESETQUESTSYSTEM		95

//var1 - questnum, var2 - subquestnum, var3 - state
#define EXT_SETQUESTSTATE			96

//
#define EXT_LEVELMONEY				97

//
#define EXT_GET_MONST_GENERATORS_CNT		98

//
#define EXT_SETHERODAMAGECOEFF				99

//var1 - sprite
#define EXT_FIND_ID_FOR_SPRITE				100

//var1 - item (see ITEM_TANKSHELL-like constants)
#define EXT_REMOVEITEMIFHAS					101

//
#define EXT_FIRSTHERO						102

//
#define EXT_SETALLQUESTSUNACTUAL			103

//
#define EXT_RESETHEROHP						104

//var1- vid, var2 - direction
#define EXT_GETINFOTEXT						105

//
#define EXT_GETBRIEFINGTEXT					106

//var1 - name of survive object
//#define EXT_SETSURVIVEMODE					107

//
#define EXT_GETSURVIVEMODE						108

//
#define EXT_FORDEBUG						109


//#define EXT_COPYCLONETOHERO					87
//#define EXT_SAVEHEROONLEVELWIN				111
//#define EXT_LOADHEROONLEVELINIT				112

#define EXT_OnLevelWin						112

//
#define EXT_GETFLYITEMVID					113

//
#define EXT_GETFLYITEMDIR					114

//
#define EXT_GETFLYITEMCNT					115

//
#define EXT_GETFLYITEMX						116

//
#define EXT_GETFLYITEMY						117

//
#define EXT_GETFLYITEMZ						118

//for debug purposes! - only for hero
//zm2005Oct28 - да не чувак, уже не только для дебага. обнуление некот. параметров при пом. ее делаю
#define EXT_SETSKILL						119

//
#define EXT_GetIdByName						120

//var1 - name of campaign object
//#define EXT_SETCAMPAIGN						121

//var1 - current time from begin of the survive map
//#define EXT_SURVIVEMAPFINISH				122

//
//#define EXT_ONBEGINNEWLEVEL					123

//
#define EXT_GETINVNAME						124

//
#define EXT_GETDRAWSHADOW					125

//var1 - 
#define EXT_SETDRAWSHADOW					126

//
#define EXT_GETINPUTACTION					127

//var1, var2
#define EXT_GETHOTKEY						128

//var1
#define EXT_SETKEYWAITMODE					129

//
#define EXT_GETKEYWAITMODE					130

//
#define EXT_RK_SAVE							131

//
#define EXT_RK_CANCEL						132

//
#define EXT_RK_DEFAULT						133

//
#define EXT_RK_INIT							134

//
#define EXT_SET_TEXT_DELAY					135

//var1 == 0 - GetVidData( 1402, VID_DAMAGE_MIN );
//var1 == 1 - GetVidData( 1402, VID_DAMAGE_MAX );
#define EXT_GETREALVAL						136

//
#define EXT_REPAIRARMOR						137

//var1 - percent 0-1000
#define EXT_SHOPSCROLL						138

//
//#define EXT_ProfListToReg					139
#define EXT_SaveOptToFile					140
//
#define EXT_DELETEPROFILE					141
//
#define EXT_SetCtrlWheelsCar				142

//
//var1 - current time from begin of the survive map
//возвращается номер теукщего периода в интервале. -1, если карта кончилась.
#define EXT_GetPeriodNum					143

//
#define EXT_bShowInvGrnd					144

//
#define EXT_GetAddWpnCnt					145

//
#define EXT_GetAddWpnId						146

//
#define EXT_ResetAllQuests					147

//
#define EXT_GetLogFaceDir					148

//
#define EXT_GetLogText						149

//
#define EXT_GetLogsNum						150

//
#define EXT_RefreshShop						151

//
#define EXT_ADDHYPNMONSTER					152

//
#define EXT_PlaceTip						153

//
#define EXT_CopyVid							154

//
#define EXT_GetProgVer						155

//
#define EXT_GetSurvInt						156

//
#define EXT_ReloadDB						157

//
#define EXT_SetPlayerMenuType				158

//
#define EXT_GetQuestAccomplished			159

//
#define EXT_ShowItemInfoById				160

//
#define Ext_Monst2Create					161

//
#define Ext_ToggleLogCons					162

//
#define EXT_GetNamedMonst					163

//
#define EXT_GetSQuestData					164

//
#define EXT_SetCurProf						165

//
#define EXT_GetCurProf						166

//
#define EXT_GetMaxLevNum					167

//
#define EXT_GetMenuUnderCursor				168

//
#define EXT_GetBlinkStatebar				170

//
#define EXT_SET_TEXT_DELAY_STRS13			171

//
#define EXT_SET_TEXT_DELAY_STRS45			172

//
#define EXT_GetCurDroneId					173

//
#define EXT_SetPrevDroneHp					174

//
#define EXT_SetCurDroneHp					175

//var1 - номер армии. var2 - значение, var3 - _bForceSet
#define EXT_SetHeroPDId						176

//var1 - номер армии
#define EXT_GetHeroPDId						177

//var1 - номер армии. var2 - значение
#define EXT_SetHeroPDClr					178

//var1 - номер армии
#define EXT_GetHeroPDClr					179

/*	пример:
		int buf = SendCommand(EXT_GetHeroPDId, 0);
		SendCommand(EXT_SetHeroPDId, 0, buf);
		int buf = SendCommand(EXT_GetHeroPDClr, 0);
		SendCommand(EXT_SetHeroPDClr, 0, buf);
*/


//
#define EXT_SetMainMenu						180

//
#define Ext_SetFulldamagedArmorCost			181

//
#define Ext_SwitchToStandFirm				182

//
#define Ext_GetGamObjType					183

//
#define Ext_GetObjectId						184

//
#define EXT_SetNetRespItem					185

//
#define EXT_GetNetRespItem					186

//
//#define EXT_SetDeathMatchMode				187

//
#define EXT_SwitchHeroCS					188

//
#define EXT_AddItemsToBackPack				189

//
#define EXT_SetSurvNetCoeff					190
	#define SNC_MONSTCNT	0
	#define SNC_BONUSCNT	1

//
#define EXT_GetHallRecCnt					191

//
#define EXT_GetHallData						192

//
#define EXT_AddHallData						193

//
#define EXT_ClearHallData					194

//
#define EXT_PopPushLifeTIme					195

//
#define EXT_GetBossColor					196

//
#define EXT_GetScoresCoeff					197

//
#define EXT_IsDebugMode						198

//
#define EXT_SETPERKSKILL					199

//
#define Ext_ShowDialogsSub					200

//
#define EXT_CheatHappen						201

//
#define EXT_RandomNetDbg					202		//for net debug

//
#define EXT_GetNameById						203

//
#define EXT_GetStrVal						204

//
#define EXT_GetInvAmmoVid					205

//
#define EXT_SetArgValI						206

//
#define EXT_GetArgValI						207

//
#define EXT_SetArgValS						208

//
#define EXT_GetArgValS						209

//
#define EXT_PushStrVar1						210

//
#define EXT_PushStrVar2						211

//
#define EXT_SetUserName						212

//
#define EXT_GetUserName						213

//
#define EXT_SetQuestLevNum					214

//
#define EXT_GetSpriteByName					215

//
#define EXT_ClearSpriteName					216

//
#define EXT_CarUtils						217

//
#define EXT_PushInt							218

//
#define EXT_AddCommandEx					219

//
#define EXT_GetCarUtilsState				220

//
#define EXT_AddBonuses						221

//
#define EXT_AS21ShopProc					222
	#define SP_GetClickedInv			1
	#define SP_ResetClickedInv			2
	#define SP_TryToBuyItemByBaseId		3
	#define SP_GetClickedInvMBL			4
	#define SP_TryToSellItemByBaseId	5
	#define SP_ShowInfoByBaseId1		6
	#define SP_ShowInfoByBaseId2		7
	#define SP_GetMouseOverInv			8
	#define SP_ResetHeroInv				9
	#define SP_GetSynById				10
	#define SP_GetCostById				11

#define EXT_ResetMaxLevelForNewGame		223
//
//
#define EXT_SomethingStrange				500


//for scripts
static int UnneededVariable4dfgf534554ytygfg;
