CDOTABaseGameMode extends CBaseEntity
s
c
#
AddRealTimeCombatAnalyzerQuery(queryTablehandle, playerCDOTAPlayer, queryNamestring): CombatAnalyzerQueryID
s
c
#

Begin tracking a sequence of events using the real time combat analyzer.
AreWeatherEffectsDisabled(): bool
s
c
#

Get if weather effects are disabled on the client.
ClearBountyRunePickupFilter(): nil
s
c
#

Clear the script filter that controls bounty rune pickup behavior.
ClearDamageFilter(): nil
s
c
#

Clear the script filter that controls how a unit takes damage.
ClearExecuteOrderFilter(): nil
s
c
#

Clear the script filter that controls when a unit picks up an item.
ClearHealingFilter(): nil
s
c
#

Clear the script filter that controls how a unit heals.
ClearItemAddedToInventoryFilter(): nil
s
c
#

Clear the script filter that controls the item added to inventory filter.
ClearModifierGainedFilter(): nil
s
c
#

Clear the script filter that controls the modifier filter.
ClearModifyExperienceFilter(): nil
s
c
#

Clear the script filter that controls how hero experience is modified.
ClearModifyGoldFilter(): nil
s
c
#

Clear the script filter that controls how hero gold is modified.
ClearRuneSpawnFilter(): nil
s
c
#

Clear the script filter that controls what rune spawns.
ClearTrackingProjectileFilter(): nil
s
c
#

Clear the script filter that controls when tracking projectiles are launched.
DisableHudFlip(disablebool): nil
s
c
#

Use to disable hud flip for this mod.
GetAlwaysShowPlayerInventory(): bool
s
c
#

Show the player hero's inventory in the HUD, regardless of what unit is selected.
GetAlwaysShowPlayerNames(): bool
s
c
#

Get whether player names are always shown, regardless of client setting.
GetAnnouncerDisabled(): bool
s
c
#

Are in-game announcers disabled?
GetCameraDistanceOverride(): float
s
c
#

Set a different camera distance; dota default is 1134.
GetCustomAttributeDerivedStatValue(derivedStatTypeAttributeDerivedStats, heroCDOTA_BaseNPC_Hero | nil): float
s
c
#

Get current derived stat value constant.
GetCustomBackpackCooldownPercent(): float
s
c
#

Get the current rate cooldown ticks down for items in the backpack.
GetCustomBackpackSwapCooldown(): float
s
c
#

Get the current custom backpack swap cooldown.
GetCustomBuybackCooldownEnabled(): bool
s
c
#

Turns on capability to define custom buyback cooldowns.
GetCustomBuybackCostEnabled(): bool
s
c
#

Turns on capability to define custom buyback costs.
GetCustomGlyphCooldown(): float
s
c
#

Get the current custom glyph cooldown.
GetCustomHeroMaxLevel(): int
s
c
#

Allows definition of the max level heroes can achieve (default is 25).
GetCustomScanCooldown(): float
s
c
#

Get the current custom scan cooldown.
GetFixedRespawnTime(): float
s
c
#

Gets the fixed respawn time.
GetFogOfWarDisabled(): bool
s
c
#

Turn the fog of war on or off.
GetGoldSoundDisabled(): bool
s
c
#

Turn the sound when gold is acquired off/on.
GetHUDVisible(elementint): bool
s
c
#

Returns the HUD element visibility.
GetMaximumAttackSpeed(): int
s
c
#

Get the maximum attack speed for units.
GetMinimumAttackSpeed(): int
s
c
#

Get the minimum attack speed for units.
GetRecommendedItemsDisabled(): bool
s
c
#

Turn the panel for showing recommended items at the shop off/on.
GetRespawnTimeScale(): float
s
c
#

Returns the scale applied to non-fixed respawn times.
GetStashPurchasingDisabled(): bool
s
c
#

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.
GetStickyItemDisabled(): bool
s
c
#

Hide the sticky item in the quickbuy.
GetTopBarTeamValuesOverride(): bool
s
c
#

Override the values of the team values on the top game bar.
GetTopBarTeamValuesVisible(): bool
s
c
#

Turning on/off the team values on the top game bar.
GetTowerBackdoorProtectionEnabled(): bool
s
c
#

Gets whether tower backdoor protection is enabled or not.
GetUseCustomHeroLevels(): bool
s
c
#

Are custom-defined XP values for hero level ups in use?
IsBuybackEnabled(): bool
s
c
#

Enables or disables buyback completely.
IsDaynightCycleDisabled(): bool
s
c
#

Is the day/night cycle disabled?
ListenForQueryFailed(function(resultCombatAnalyzerQueryResult) nil, contexttable): nil
s
c
#
CombatAnalyzerQueryResult
query_id: CombatAnalyzerQueryID

Set function and context for real time combat analyzer query failed.
ListenForQueryProgressChanged(function(resultCombatAnalyzerQueryResult) nil, contexttable): nil
s
c
#
CombatAnalyzerQueryResult
query_id: CombatAnalyzerQueryID

Set function and context for real time combat analyzer query progress changed.
ListenForQuerySucceeded(function(resultCombatAnalyzerQueryResult) nil, contexttable): nil
s
c
#
CombatAnalyzerQueryResult
query_id: CombatAnalyzerQueryID

Set function and context for real time combat analyzer query succeeded.
RemoveRealTimeCombatAnalyzerQuery(queryIdCombatAnalyzerQueryID): nil
s
c
#

Stop tracking a combat analyzer query.
SetAbilityTuningValueFilter(filterFunc(eventAbilityTuningValueFilterEvent) bool, contexttable): nil
s
c
#
AbilityTuningValueFilterEvent
entindex_caster_const: EntityIndex
entindex_ability_const: EntityIndex
value_name_const: string
value: int

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).
SetAlwaysShowPlayerInventory(alwaysShowbool): nil
s
c
#

Show the player hero's inventory in the HUD, regardless of what unit is selected.
SetAlwaysShowPlayerNames(enabledbool): nil
s
c
#

Set whether player names are always shown, regardless of client setting.
SetAnnouncerDisabled(disabledbool): nil
s
c
#

Mutes the in-game announcer.
SetBotsAlwaysPushWithHuman(alwaysPushbool): nil
s
c
#

Set if the bots should try their best to push with a human player.
SetBotsInLateGame(lateGamebool): nil
s
c
#

Set if bots should enable their late game behavior.
SetBotsMaxPushTier(maxTierint): nil
s
c
#

Set the max tier of tower that bots want to push. (-1 to disable).
SetBotThinkingEnabled(enabledbool): nil
s
c
#

Enables/Disables bots in custom games. Note: this will only work with default heroes in the dota map.
SetBountyRunePickupFilter(filterFunc(eventBountyRunePickupFilterEvent) bool, contexttable): nil
s
c
#
BountyRunePickupFilterEvent
player_id_const: PlayerID
xp_bounty: int
gold_bounty: int

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).
SetBountyRuneSpawnInterval(intervalfloat): nil
s
c
#

Set bounty rune spawn rate.
SetBuybackEnabled(enabledbool): nil
s
c
#

Enables or disables buyback completely.
SetCameraDistanceOverride(cameraDistanceOverridefloat): nil
s
c
#

Set a different camera distance; dota default is 1134.
SetCameraSmoothCountOverride(smoothCountint): nil
s
c
#

Set a different camera smooth count; dota default is 8.
SetCustomAttributeDerivedStatValue(statTypeAttributeDerivedStats, newValuefloat): nil
s
c
#

Modify derived stat value constants.
SetCustomBackpackCooldownPercent(percentfloat): nil
s
c
#

Set the rate cooldown ticks down for items in the backpack.
SetCustomBackpackSwapCooldown(cooldownfloat): nil
s
c
#

Set a custom cooldown for swapping items into the backpack.
SetCustomBuybackCooldownEnabled(enabledbool): nil
s
c
#

Turns on capability to define custom buyback cooldowns.
SetCustomBuybackCostEnabled(enabledbool): nil
s
c
#

Turns on capability to define custom buyback costs.
SetCustomGameForceHero(heroNamestring): nil
s
c
#

Force all players to use the specified hero and disable the normal hero selection process. Must be used before hero selection.
SetCustomGlyphCooldown(cooldownfloat): nil
s
c
#

Set a custom cooldown for team Glyph ability.
SetCustomHeroMaxLevel(maxLevelint): nil
s
c
#

Allows definition of the max level heroes can achieve (default is 25).
SetCustomScanCooldown(cooldownfloat): nil
s
c
#

Set a custom cooldown for team Scan ability.
SetCustomTerrainWeatherEffect(effectNamestring): nil
s
c
#

Set the effect used as a custom weather effect, when units are on non-default terrain, in this mode.
SetCustomXPRequiredToReachNextLevel(tableRecord<number, number>): nil
s
c
#

Allows definition of a table of hero XP values. Requires `SetUseCustomHeroLevels` to be enabled.
SetDamageFilter(filterFunc(eventDamageFilterEvent) bool, contexttable): nil
s
c
#
DamageFilterEvent
entindex_attacker_const: EntityIndex
entindex_victim_const: EntityIndex
damagetype_const: DAMAGE_TYPES
damage: float

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).
SetDaynightCycleDisabled(disablebool): nil
s
c
#

Enable or disable the day/night cycle.
SetDeathOverlayDisabled(disabledbool): nil
s
c
#

Specify whether the full screen death overlay effect plays when the selected hero dies.
SetDraftingBanningTimeOverride(valuefloat): nil
s
c
#

Set drafting hero banning time.
SetDraftingHeroPickSelectTimeOverride(valuefloat): nil
s
c
#

Set drafting hero pick time.
SetExecuteOrderFilter(filterFunc(eventExecuteOrderFilterEvent) bool, contexttable): nil
s
c
#
ExecuteOrderFilterEvent
units: Record<string, EntityIndex>
entindex_target: EntityIndex
entindex_ability: EntityIndex
issuer_player_id_const: PlayerID
sequence_number_const: uint
queue: 0 | 1
order_type: dotaunitorder_t
position_x: float
position_y: float
position_z: float

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).
SetFixedRespawnTime(fixedRespawnTimefloat): nil
s
c
#

Set a fixed delay for all players to respawn after.
SetFogOfWarDisabled(disabledbool): nil
s
c
#

Turn the fog of war on or off.
SetFountainConstantManaRegen(constantManaRegenfloat): nil
s
c
#

Set the constant rate that the fountain will regen mana. (-1 for default).
SetFountainPercentageHealthRegen(percentageHealthRegenfloat): nil
s
c
#

Set the percentage rate that the fountain will regen health. (-1 for default).
SetFountainPercentageManaRegen(percentageManaRegenfloat): nil
s
c
#

Set the percentage rate that the fountain will regen mana. (-1 for default).
SetFreeCourierModeEnabled(enabledbool): nil
s
c
#

If set to true, enable 7.23 free courier mode.
SetFriendlyBuildingMoveToEnabled(enabledbool): nil
s
c
#

Allows clicks on friendly buildings to be handled normally.
SetGoldSoundDisabled(disabledbool): nil
s
c
#

Turn the sound when gold is acquired off/on.
SetHealingFilter(filterFunc(eventHealingFilterEvent) bool, contexttable): nil
s
c
#
HealingFilterEvent
entindex_target_const: EntityIndex
heal: int

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).
SetHudCombatEventsDisabled(disabledbool): nil
s
c
#

Specify whether the default combat events will show in the HUD.
SetHUDVisible(hudElementDOTAHUDVisibility_t, visiblebool): nil
s
c
#

Set the HUD element visibility.
SetItemAddedToInventoryFilter(filterFunc(eventItemAddedToInventoryFilterEvent) bool, contexttable): nil
s
c
#
ItemAddedToInventoryFilterEvent
inventory_parent_entindex_const: EntityIndex
item_parent_entindex_const: EntityIndex
item_entindex_const: EntityIndex
suggested_slot: -1 | DOTAScriptInventorySlot_t

Set a filter function to control what happens to items that are added to an inventory, return false to cancel the event.
SetKillableTombstones(enabledbool): nil
s
c
#

Set whether tombstones can be channeled to be removed by enemy heroes.
SetKillingSpreeAnnouncerDisabled(disabledbool): nil
s
c
#

Mutes the in-game killing spree announcer.
SetLoseGoldOnDeath(enabledbool): nil
s
c
#

Use to disable gold loss on death.
SetMaximumAttackSpeed(maxSpeedint): nil
s
c
#

Set the maximum attack speed for units.
SetMinimumAttackSpeed(minSpeedint): nil
s
c
#

Set the minimum attack speed for units.
SetModifierGainedFilter(filterFunc(eventModifierGainedFilterEvent) bool, contexttable): nil
s
c
#
ModifierGainedFilterEvent
entindex_caster_const: EntityIndex
entindex_parent_const: EntityIndex
entindex_ability_const: EntityIndex
name_const: string
duration: int

Set a filter function to control modifiers that are gained, return false to destroy modifier.
SetModifyExperienceFilter(filterFunc(eventModifyExperienceFilterEvent) bool, contexttable): nil
s
c
#
ModifyExperienceFilterEvent
hero_entindex_const: EntityIndex
player_id_const: PlayerID
reason_const: EDOTA_ModifyXP_Reason
experience: int

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).
SetModifyGoldFilter(filterFunc(eventModifyGoldFilterEvent) bool, contexttable): nil
s
c
#
ModifyGoldFilterEvent
player_id_const: PlayerID
reliable: 0 | 1
gold: uint

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).
SetOverrideSelectionEntity(overrideEntityCDOTA_BaseNPC | nil): nil
s
c
#

Set an override for the default selection entity, instead of each player's hero.
SetPauseEnabled(enabledbool): nil
s
c
#

Set pausing enabled/disabled.
SetPowerRuneSpawnInterval(intervalfloat): nil
s
c
#

Set power rune spawn rate.
SetRecommendedItemsDisabled(disabledbool): nil
s
c
#

Turn the panel for showing recommended items at the shop off/on.
SetRemoveIllusionsOnDeath(removebool): nil
s
c
#

Make it so illusions are immediately removed upon death, rather than sticking around for a few seconds.
SetRespawnTimeScale(valuefloat): nil
s
c
#

Sets the scale applied to non-fixed respawn times. 1 = default DOTA respawn calculations.
SetRuneEnabled(runeDOTA_RUNES, enabledbool): nil
s
c
#

Set if a given type of rune is enabled.
SetRuneSpawnFilter(filterFunc(eventRuneSpawnFilterEvent) bool, contexttable): nil
s
c
#
RuneSpawnFilterEvent
spawner_entindex_const: EntityIndex
rune_type: DOTA_RUNES

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).
SetSelectionGoldPenaltyEnabled(enabledbool): nil
s
c
#

Enable/disable gold penalty for late picking.
SetStashPurchasingDisabled(disabledbool): nil
s
c
#

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.
SetStickyItemDisabled(disabledbool): nil
s
c
#

Hide the sticky item in the quickbuy.
SetTopBarTeamValue(teamDOTATeam_t, valueint): nil
s
c
#

Set the team values on the top game bar.
SetTopBarTeamValuesOverride(overridebool): nil
s
c
#

Override the values of the team values on the top game bar.
SetTopBarTeamValuesVisible(visiblebool): nil
s
c
#

Turning on/off the team values on the top game bar.
SetTowerBackdoorProtectionEnabled(enabledbool): nil
s
c
#

Enables/Disables tower backdoor protection.
SetTrackingProjectileFilter(filterFunc(eventTrackingProjectileFilterEvent) bool, contexttable): nil
s
c
#
TrackingProjectileFilterEvent
entindex_source_const: EntityIndex
entindex_target_const: EntityIndex
entindex_ability_const: EntityIndex
is_attack: 0 | 1
dodgeable: 0 | 1
max_impact_time: int
move_speed: int
expire_time: int

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).
SetUnseenFogOfWarEnabled(enabledbool): nil
s
c
#

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.
SetUseCustomHeroLevels(enabledbool): nil
s
c
#

Turn on custom-defined XP values for hero level ups. The table should be defined before switching this on.
SetUseDefaultDOTARuneSpawnLogic(enabledbool): nil
s
c
#

If set to true, use current rune spawn rules. Either setting respects custom spawn intervals.
SetWeatherEffectsDisabled(disablebool): nil
s
c
#

Set if weather effects are disabled.