# CDOTABaseGameMode
extends CBaseEntity
| Function | Description | Client |
|---|---|---|
| int AddRealTimeCombatAnalyzerQuery(hQueryTable, hPlayer, pszQueryName) | Begin tracking a sequence of events using the real time combat analyzer. | ❌ |
| bool AreWeatherEffectsDisabled() | Get if weather effects are disabled on the client. | ❌ |
| void ClearBountyRunePickupFilter() | Clear the script filter that controls bounty rune pickup behavior. | ❌ |
| void ClearDamageFilter() | Clear the script filter that controls how a unit takes damage. | ❌ |
| void ClearExecuteOrderFilter() | Clear the script filter that controls when a unit picks up an item. | ❌ |
| void ClearHealingFilter() | Clear the script filter that controls how a unit heals. | ❌ |
| void ClearItemAddedToInventoryFilter() | Clear the script filter that controls the item added to inventory filter. | ❌ |
| void ClearModifierGainedFilter() | Clear the script filter that controls the modifier filter. | ❌ |
| void ClearModifyExperienceFilter() | Clear the script filter that controls how hero experience is modified. | ❌ |
| void ClearModifyGoldFilter() | Clear the script filter that controls how hero gold is modified. | ❌ |
| void ClearRuneSpawnFilter() | Clear the script filter that controls what rune spawns. | ❌ |
| void ClearTrackingProjectileFilter() | Clear the script filter that controls when tracking projectiles are launched. | ❌ |
| void DisableHudFlip(bDisable) | Use to disable hud flip for this mod | ❌ |
| bool GetAlwaysShowPlayerInventory() | Show the player hero's inventory in the HUD, regardless of what unit is selected. | ❌ |
| bool GetAlwaysShowPlayerNames() | Get whether player names are always shown, regardless of client setting. | ❌ |
| bool GetAnnouncerDisabled() | Are in-game announcers disabled? | ❌ |
| float GetCameraDistanceOverride() | Set a different camera distance; dota default is 1134. | ❌ |
| float GetCustomAttributeDerivedStatValue(nDerivedStatType, hHero) | Get current derived stat value constant. | ❌ |
| float GetCustomBackpackCooldownPercent() | Get the current rate cooldown ticks down for items in the backpack. | ❌ |
| float GetCustomBackpackSwapCooldown() | Get the current custom backpack swap cooldown. | ❌ |
| bool GetCustomBuybackCooldownEnabled() | Turns on capability to define custom buyback cooldowns. | ❌ |
| bool GetCustomBuybackCostEnabled() | Turns on capability to define custom buyback costs. | ❌ |
| float GetCustomGlyphCooldown() | Get the current custom glyph cooldown. | ❌ |
| int GetCustomHeroMaxLevel() | Allows definition of the max level heroes can achieve (default is 25). | ❌ |
| float GetCustomScanCooldown() | Get the current custom scan cooldown. | ❌ |
| float GetFixedRespawnTime() | Gets the fixed respawn time. | ❌ |
| bool GetFogOfWarDisabled() | Turn the fog of war on or off. | ❌ |
| bool GetGoldSoundDisabled() | Turn the sound when gold is acquired off/on. | ❌ |
| bool GetHUDVisible(iElement) | Returns the HUD element visibility. | ❌ |
| int GetMaximumAttackSpeed() | Get the maximum attack speed for units. | ❌ |
| int GetMinimumAttackSpeed() | Get the minimum attack speed for units. | ❌ |
| bool GetRecommendedItemsDisabled() | Turn the panel for showing recommended items at the shop off/on. | ❌ |
| float GetRespawnTimeScale() | Returns the scale applied to non-fixed respawn times. | ❌ |
| bool GetStashPurchasingDisabled() | Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items. | ❌ |
| bool GetStickyItemDisabled() | Hide the sticky item in the quickbuy. | ❌ |
| bool GetTopBarTeamValuesOverride() | Override the values of the team values on the top game bar. | ❌ |
| bool GetTopBarTeamValuesVisible() | Turning on/off the team values on the top game bar. | ❌ |
| bool GetTowerBackdoorProtectionEnabled() | Gets whether tower backdoor protection is enabled or not. | ❌ |
| bool GetUseCustomHeroLevels() | Are custom-defined XP values for hero level ups in use? | ❌ |
| bool IsBuybackEnabled() | Enables or disables buyback completely. | ❌ |
| bool IsDaynightCycleDisabled() | Is the day/night cycle disabled? | ❌ |
| void ListenForQueryFailed(hFunction, hContext) | Set function and context for real time combat analyzer query failed. | ❌ |
| void ListenForQueryProgressChanged(hFunction, hContext) | Set function and context for real time combat analyzer query progress changed. | ❌ |
| void ListenForQuerySucceeded(hFunction, hContext) | Set function and context for real time combat analyzer query succeeded. | ❌ |
| void RemoveRealTimeCombatAnalyzerQuery(nQueryID) | Stop tracking a combat analyzer query. | ❌ |
| void SetAbilityTuningValueFilter(hFunction, hContext) | Set a filter function to control the tuning values that abilities use. (Modify the table and Return true to use new values, return false to use the old values) | ❌ |
| void SetAlwaysShowPlayerInventory(bAlwaysShow) | Show the player hero's inventory in the HUD, regardless of what unit is selected. | ❌ |
| void SetAlwaysShowPlayerNames(bEnabled) | Set whether player names are always shown, regardless of client setting. | ❌ |
| void SetAnnouncerDisabled(bDisabled) | Mutes the in-game announcer. | ❌ |
| void SetBotThinkingEnabled(bEnabled) | Enables/Disables bots in custom games. Note: this will only work with default heroes in the dota map. | ❌ |
| void SetBotsAlwaysPushWithHuman(bAlwaysPush) | Set if the bots should try their best to push with a human player. | ❌ |
| void SetBotsInLateGame(bLateGame) | Set if bots should enable their late game behavior. | ❌ |
| void SetBotsMaxPushTier(nMaxTier) | Set the max tier of tower that bots want to push. (-1 to disable) | ❌ |
| void SetBountyRunePickupFilter(hFunction, hContext) | Set a filter function to control the behavior when a bounty rune is picked up. (Modify the table and Return true to use new values, return false to cancel the event) | ❌ |
| void SetBountyRuneSpawnInterval(flInterval) | Set bounty rune spawn rate | ❌ |
| void SetBuybackEnabled(bEnabled) | Enables or disables buyback completely. | ❌ |
| void SetCameraDistanceOverride(flCameraDistanceOverride) | Set a different camera distance; dota default is 1134. | ❌ |
| void SetCameraSmoothCountOverride(nSmoothCount) | Set a different camera smooth count; dota default is 8. | ❌ |
| void SetCustomAttributeDerivedStatValue(nStatType, flNewValue) | Modify derived stat value constants. ( AttributeDerivedStat eStatType, float flNewValue. | ❌ |
| void SetCustomBackpackCooldownPercent(flPercent) | Set the rate cooldown ticks down for items in the backpack. | ❌ |
| void SetCustomBackpackSwapCooldown(flCooldown) | Set a custom cooldown for swapping items into the backpack. | ❌ |
| void SetCustomBuybackCooldownEnabled(bEnabled) | Turns on capability to define custom buyback cooldowns. | ❌ |
| void SetCustomBuybackCostEnabled(bEnabled) | Turns on capability to define custom buyback costs. | ❌ |
| void SetCustomGameForceHero(pHeroName) | Force all players to use the specified hero and disable the normal hero selection process. Must be used before hero selection. | ❌ |
| void SetCustomGlyphCooldown(flCooldown) | Set a custom cooldown for team Glyph ability. | ❌ |
| void SetCustomHeroMaxLevel(int_1) | Allows definition of the max level heroes can achieve (default is 25). | ❌ |
| void SetCustomScanCooldown(flCooldown) | Set a custom cooldown for team Scan ability. | ❌ |
| void SetCustomTerrainWeatherEffect(pszEffectName) | Set the effect used as a custom weather effect, when units are on non-default terrain, in this mode. | ❌ |
| void SetCustomXPRequiredToReachNextLevel(hTable) | Allows definition of a table of hero XP values. | ❌ |
| void SetDamageFilter(hFunction, hContext) | Set a filter function to control the behavior when a unit takes damage. (Modify the table and Return true to use new values, return false to cancel the event) | ❌ |
| void SetDaynightCycleDisabled(bDisable) | Enable or disable the day/night cycle. | ❌ |
| void SetDeathOverlayDisabled(bDisabled) | Specify whether the full screen death overlay effect plays when the selected hero dies. | ❌ |
| void SetDraftingBanningTimeOverride(flValue) | Set drafting hero banning time | ❌ |
| void SetDraftingHeroPickSelectTimeOverride(flValue) | Set drafting hero pick time | ❌ |
| void SetExecuteOrderFilter(hFunction, hContext) | Set a filter function to control the behavior when a unit picks up an item. (Modify the table and Return true to use new values, return false to cancel the event) | ❌ |
| void SetFixedRespawnTime(flFixedRespawnTime) | Set a fixed delay for all players to respawn after. | ❌ |
| void SetFogOfWarDisabled(bDisabled) | Turn the fog of war on or off. | ❌ |
| void SetFountainConstantManaRegen(flConstantManaRegen) | Set the constant rate that the fountain will regen mana. (-1 for default) | ❌ |
| void SetFountainPercentageHealthRegen(flPercentageHealthRegen) | Set the percentage rate that the fountain will regen health. (-1 for default) | ❌ |
| void SetFountainPercentageManaRegen(flPercentageManaRegen) | Set the percentage rate that the fountain will regen mana. (-1 for default) | ❌ |
| void SetFreeCourierModeEnabled(bEnabled) | If set to true, enable 7.23 free courier mode. | ❌ |
| void SetFriendlyBuildingMoveToEnabled(bEnabled) | Allows clicks on friendly buildings to be handled normally. | ❌ |
| void SetGoldSoundDisabled(bDisabled) | Turn the sound when gold is acquired off/on. | ❌ |
| void SetHUDVisible(iHUDElement, bVisible) | Set the HUD element visibility. | ❌ |
| void SetHealingFilter(hFunction, hContext) | Set a filter function to control the behavior when a unit heals. (Modify the table and Return true to use new values, return false to cancel the event) | ❌ |
| void SetHudCombatEventsDisabled(bDisabled) | Specify whether the default combat events will show in the HUD. | ❌ |
| void SetItemAddedToInventoryFilter(hFunction, hContext) | Set a filter function to control what happens to items that are added to an inventory, return false to cancel the event | ❌ |
| void SetKillableTombstones(bEnabled) | Set whether tombstones can be channeled to be removed by enemy heroes. | ❌ |
| void SetKillingSpreeAnnouncerDisabled(bDisabled) | Mutes the in-game killing spree announcer. | ❌ |
| void SetLoseGoldOnDeath(bEnabled) | Use to disable gold loss on death. | ❌ |
| void SetMaximumAttackSpeed(nMaxSpeed) | Set the maximum attack speed for units. | ❌ |
| void SetMinimumAttackSpeed(nMinSpeed) | Set the minimum attack speed for units. | ❌ |
| void SetModifierGainedFilter(hFunction, hContext) | Set a filter function to control modifiers that are gained, return false to destroy modifier. | ❌ |
| void SetModifyExperienceFilter(hFunction, hContext) | Set a filter function to control the behavior when a hero's experience is modified. (Modify the table and Return true to use new values, return false to cancel the event) | ❌ |
| void SetModifyGoldFilter(hFunction, hContext) | Set a filter function to control the behavior when a hero's gold is modified. (Modify the table and Return true to use new values, return false to cancel the event) | ❌ |
| void SetOverrideSelectionEntity(hOverrideEntity) | Set an override for the default selection entity, instead of each player's hero. | ❌ |
| void SetPauseEnabled(bEnabled) | Set pausing enabled/disabled | ❌ |
| void SetPowerRuneSpawnInterval(flInterval) | Set power rune spawn rate | ❌ |
| void SetRecommendedItemsDisabled(bDisabled) | Turn the panel for showing recommended items at the shop off/on. | ❌ |
| void SetRemoveIllusionsOnDeath(bRemove) | Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds. | ❌ |
| void SetRespawnTimeScale(flValue) | Sets the scale applied to non-fixed respawn times. 1 = default DOTA respawn calculations. | ❌ |
| void SetRuneEnabled(nRune, bEnabled) | Set if a given type of rune is enabled. | ❌ |
| void SetRuneSpawnFilter(hFunction, hContext) | Set a filter function to control what rune spawns. (Modify the table and Return true to use new values, return false to cancel the event) | ❌ |
| void SetSelectionGoldPenaltyEnabled(bEnabled) | Enable/disable gold penalty for late picking. | ❌ |
| void SetStashPurchasingDisabled(bDisabled) | Turn purchasing items to the stash off/on. If purchasing to the stash is off the player must be at a shop to purchase items. | ❌ |
| void SetStickyItemDisabled(bDisabled) | Hide the sticky item in the quickbuy. | ❌ |
| void SetTopBarTeamValue(iTeam, nValue) | Set the team values on the top game bar. | ❌ |
| void SetTopBarTeamValuesOverride(bOverride) | Override the values of the team values on the top game bar. | ❌ |
| void SetTopBarTeamValuesVisible(bVisible) | Turning on/off the team values on the top game bar. | ❌ |
| void SetTowerBackdoorProtectionEnabled(bEnabled) | Enables/Disables tower backdoor protection. | ❌ |
| void SetTrackingProjectileFilter(hFunction, hContext) | Set a filter function to control when tracking projectiles are launched. (Modify the table and Return true to use new values, return false to cancel the event) | ❌ |
| void SetUnseenFogOfWarEnabled(bEnabled) | Enable or disable unseen fog of war. When enabled parts of the map the player has never seen will be completely hidden by fog of war. | ❌ |
| void SetUseCustomHeroLevels(bEnabled) | Turn on custom-defined XP values for hero level ups. The table should be defined before switching this on. | ❌ |
| void SetUseDefaultDOTARuneSpawnLogic(bEnabled) | If set to true, use current rune spawn rules. Either setting respects custom spawn intervals. | ❌ |
| void SetWeatherEffectsDisabled(bDisable) | Set if weather effects are disabled. | ❌ |