Добавлен Mentilar
Кто подскажет как убрать, чтобы ИИ при подготовке к атаке не ставил отметку на мини-карте?
Принятый ответ
нет. это я не знаю. то, что вы предлагаете
может это поможет?
jass
SetAllyColorFilterState( 0 )
native PingMinimap takes real x, real y, real duration returns nothing
native PingMinimapEx takes real x, real y, real duration, integer red, integer green, integer blue, boolean extraEffects returns nothing
function PingMinimapForForce takes force whichForce, real x, real y, real duration returns nothing
if (IsPlayerInForce(GetLocalPlayer(), whichForce)) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call PingMinimap(x, y, duration)
//call StartSound(bj_pingMinimapSound)
endif
endfunction
function PingMinimapForForceEx takes force whichForce, real x, real y, real duration, integer style, real red, real green, real blue returns nothing
local integer red255 = PercentTo255(red)
local integer green255 = PercentTo255(green)
local integer blue255 = PercentTo255(blue)
if (IsPlayerInForce(GetLocalPlayer(), whichForce)) then
// Use only local code (no net traffic) within this block to avoid desyncs.
// Prevent 100% red simple and flashy pings, as they become "attack" pings.
if (red255 == 255) and (green255 == 0) and (blue255 == 0) then
set red255 = 254
endif
if (style == bj_MINIMAPPINGSTYLE_SIMPLE) then
call PingMinimapEx(x, y, duration, red255, green255, blue255, false)
elseif (style == bj_MINIMAPPINGSTYLE_FLASHY) then
call PingMinimapEx(x, y, duration, red255, green255, blue255, true)
elseif (style == bj_MINIMAPPINGSTYLE_ATTACK) then
call PingMinimapEx(x, y, duration, 255, 0, 0, false)
else
// Unrecognized ping style - ignore the request.
endif
//call StartSound(bj_pingMinimapSound)
endif
endfunction
function PingMinimapForPlayer takes player whichPlayer, real x, real y, real duration returns nothing
if (GetLocalPlayer() == whichPlayer) then
// Use only local code (no net traffic) within this block to avoid desyncs.
call PingMinimap(x, y, duration)
//call StartSound(bj_pingMinimapSound)
endif
endfunction
как отдельно какой-нибудь спрайт отключить, я не знаю. но вот поэтому и предложил заменить модель спрайта на пустышку. тут надо глубже копнуть в тему ИИ, чтобы понимать. мб есть какое то решение.
Загруженные файлы
`
ОЖИДАНИЕ РЕКЛАМЫ...
Чтобы оставить комментарий, пожалуйста, войдите на сайт.
Ред. MpW