Skip to content

Posts from Wand with a spell and the hero's line of sight.

No ratings yet — be the first to rate!
User Avatar
#1
Auto-translated

I have a question regarding two situations:

1) I need to edit a wand so that it always grants a specific spell, in my case, Earthquake. Despite searching through the game files, I haven't found where the information about its special properties is stored. I only found the bonuses to the main characteristics.

2) Is it possible to reduce the hero's vision range? If so, how?

Thank you for your help.

User Avatar
#2
Auto-translated
Regarding the second option, you can use DefaultStats for spellcasting, or you can disable automatic fog of war and use a conditional loop to constantly reveal the fog of war in a specific radius around the hero. If it's for a mod, the first option is better (although I had some issues with it), but if it's for a map, I recommend the second option.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
User Avatar
#3
Auto-translated

}{0TT@6bI4
Regarding the second option, you can use DefaultStats, or you can remove the automatic fog of war reveal and, in a conditional loop, constantly reveal it point by point around the hero, with a specified radius. If it's for a mod, the first option is better (although I had some issues with it working), but if it's for a map, I recommend the second option.

Could you elaborate on the option with automatic fog of war reveal? I don't quite understand how to implement it.

User Avatar
#4
Auto-translated
SetWarfogBehaviour(0,0)

function SetHeroLookRange(hero, range)
print(Range)

while 1 do
local x,y,fl= GetObjectPosition(hero)
OpenCircleFog(x,y,fl,Range, GetObjectOwner(hero))
sleep(0.1)
end;
end;

startThread(SetHeroLookRange, "Hunter", 6);

As many heroes as there are, so many such loops... Or you can run everything in one loop!
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
User Avatar
#5
Auto-translated
* range - the radius of vision in **cells**.
С уважением, }{0TT@6bI4
_________________
Группа картостроителей
Там ответы на вопросы, руководства, гайды и прочее
Discord-сервер "Герои 5: S.T.A.L.K.E.R"
Сервер по модификации "Герои 5: S.T.A.L.K.E.R"
_________________
In reply to }{0TT@6bI4
User Avatar
#6
Auto-translated
Thank you!

Statistics

Welcome our newest member: Emil