function GameMode:InitGameMode()
ListenToGameEvent('npc_spawned',Dynamic_Wrap(GameMode,'OnNPCSpawned'),self )
end
function GameMode:OnNPCSpawned(event)
local spawnedUnit = EntIndexToHScript(event.entindex)
if spawnedUnit:IsRealHero() then
OnHeroSpawn(spawnedUnit)
end
end
function OnHeroSpawn(spawned_hero)
local hero = spawned_hero
local children = hero:GetChildren()
if children then
for k,child in pairs(children) do
if child:GetClassname() == "dota_item_wearable" then
UTIL_Remove(child)
end
end
end
end