Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I just uploaded it there .
Still gg for doing it on your side.
shows only while aiming.
shows bare hand attack distance.
if TchernoLib is active, shows a thick circle.
Change the code in the file "ShowAttackDistance.lua" as follows (commented out part is the original...):
function ShowAttackDistance.useValidWeapon(playerObj)
local weaponType = WeaponType.getWeaponType(playerObj)
-- if weaponType == WeaponType.barehand or weaponType == WeaponType.handgun or weaponType == WeaponType.firearm -- this is one line
if weaponType == WeaponType.handgun or weaponType == WeaponType.firearm
function ShowAttackDistance:render()
if ShowAttackDistance.isShowAttackDistance(self.playerObj) and ShowAttackDistance.useValidWeapon(self.playerObj) then -- this is one line
local weaponItem = self.playerObj:getPrimaryHandItem();
-- Insert the following lines of code:
if not weaponItem or weaponType == WeaponType.barehand then
weaponItem = InventoryItemFactory.CreateItem("Base.BareHands")
end
It can be done simply by adding one function call in the file "ShowAttackDistance.lua":
In the function "function ShowAttackDistance:render()"
Change the first line
"if ShowAttackDistance.isShowAttackDistance(self.playerObj) and ShowAttackDistance.useValidWeapon(self.playerObj) then"...
as follows:
"if self.playerObj:isAiming() and ShowAttackDistance.isShowAttackDistance(self.playerObj) and ShowAttackDistance.useValidWeapon(self.playerObj) then"...
This is simple insertion of self.playerObj:isAiming() in the if-statement.
saves the visibility with player mod data.
adds Mod Manager icon.
not worth investing., unless... you pair it with: say, while aiming the sound radius shrinks, then you can see the circle shrinking, then that would be useful..
not that im hinting on anything.. :P
[code]
local soundRay;
if weaponItem.isRanged and weaponItem:isRanged() then
soundRay = weaponItem:getSoundRadius()
local sR,sG,sB,sA = 0.8,0.4,0.4,1
self:renderIsoCircle(self.playerNum, posX, posY, posZ, soundRay, sR,sG,sB,sA)
end
[/code]
Can be deactivated from right click at the feet of the character. (untick the contextual menu dedicated button to hide)
OPTIONS >> DISPLAY >> Cursor >> Aim outline (set AnyWeapon)
OPTIONS >> DISPLAY >> Cursor >> Iso cursor visibility (set it at 100% then decrease it as long at you can see it)
If you continue to loose it I do not know what can be done that would be better.
@trashcanhands good idea