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
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2921981763
search for Axe or ChopTree on notepad and modify this lines as you want
ConditionLowerChanceOneIn = xx,
ConditionMax = xx,
TreeDamage = xx,
The pseudo code is as follows:
-- java ConnectSwing
-- twoHand = handWeapon.isTwoHandWeapon() and ((handWeapon.getWeight() / 1.5f) / 10.0f) or 0
-- ((handWeapon.getWeight() * 0.18f * handWeapon.getFatigueMod(isoGameCharacter) * isoGameCharacter.getFatigueMod() * handWeapon.getEnduranceMod() * 0.3f) + twoHand) * 0.04f
-- 0.00216 * f + 0.0027 * weight
-- lua choptree
-- use = self.axe:getWeight() * self.axe:getFatigueMod(self.character) * self.character:getFatigueMod() * self.axe:getEnduranceMod() * 0.1 * 0.041
-- if isTwoHandWeapon() then use = use + self.axe:getWeight() / 1.5 / 10 / 20
-- 0.0041 * f + 0.0033 * weight
My advice is don not use the "Cut Down Tree", just swing your weapon manually.
Yes it does! :) Noticed the difference right away. Added it yesterday on dedicated server mid save.
Thanks
This would include you extending your creative license to us, allowing our mod team to add/edit/use your mod to suit our server. As such we would not publish our edits to the workshop. We will include credit to you as the original creator of the mod, of course.
If this is agreeable to you or would like to discuss this further, please let us know. Thank you for all your effort.
Kai, Day’s End Mod Team
@Vanaukas: Thank you for the kind words!
Inside your game files in "media\lua," you can find files like ISInventoryPaneContextMenu.lua, ISContextMenu.lua, ISWorldObjectContextMenu.lua, etc, and this is where the game handles context menus.
There's also events that the game emits when the user is accessing context menus. In the link below, do a search for "context." Note that there's a new function parameter that was included in some (if not all) these events and it's the first parameter. This new parameter isn't shown in the wiki. When you add the parameter, you can name it "guid."
https://pzwiki.net/wiki/Modding:Lua_Events
With that said, I highly recommend that you find a mod that offers similar functionality of what you're trying to accomplish and look at the code to see how that modder did it.
Also, head over to the game's official Discord server and ask in the modding section.
A extra reward for you also