Вопрос Как сделать get bomb planted в fatality

xRATx
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
23 Янв 2019
Сообщения
249
Реакции
29
пожалуйста я уже не можу, не получается у меня сделать гет бомб плентед в фатале, через пропы, ничего не произходит вообще, а если через эвент там нельзя рендерить текст
 
а если через эвент там нельзя рендерить текст
а если сохранить куда-то что пришло в эвенте и потом в рендере использовать?

1716040703691.png
 
пожалуйста я уже не можу, не получается у меня сделать гет бомб плентед в фатале, через пропы, ничего не произходит вообще, а если через эвент там нельзя рендерить текст
C++:
Expand Collapse Copy
function bomb_tweeks()
    local bomb_has_been_planted = false
    entities.for_each(function(entity)
        if entity:get_class() == 'CPlantedC4' then
            bomb_has_been_planted = true
        end
    end)
    return bomb_has_been_planted
end


function on_paint()
    local planting = bomb_tweeks()
    if planting then
        render.text(verdana, 600, 600, 'planted', render.color(255,255,255,255))
    end

end
 
C++:
Expand Collapse Copy
function bomb_tweeks()
    local bomb_has_been_planted = false
    entities.for_each(function(entity)
        if entity:get_class() == 'CPlantedC4' then
            bomb_has_been_planted = true
        end
    end)
    return bomb_has_been_planted
end


function on_paint()
    local planting = bomb_tweeks()
    if planting then
        render.text(verdana, 600, 600, 'planted', render.color(255,255,255,255))
    end

end
какой ты святой человек, век жизни твоим предкам, миллионы баксов на счете
 
C++:
Expand Collapse Copy
function bomb_tweeks()
    local bomb_has_been_planted = false
    entities.for_each(function(entity)
        if entity:get_class() == 'CPlantedC4' then
            bomb_has_been_planted = true
        end
    end)
    return bomb_has_been_planted
end


function on_paint()
    local planting = bomb_tweeks()
    if planting then
        render.text(verdana, 600, 600, 'planted', render.color(255,255,255,255))
    end

end
а это "
bomb_has_been_planted = true" для чего?
 
Назад
Сверху Снизу