CScriptbind_Entity::OnSpawn: Get the class from the IEntity pointer, can't rely on SEntitySpawnParams::pClass being correct.