Pfev Posted September 12, 2020 Report Share Posted September 12, 2020 Hi everyone. I'd like to implement a game mechanics where blocks can be transformed using a knife+right click like for animal harvesting ( for example to transform a log into a debarked variant). I'd like to reuse code if possible but i can't locate the lines for that feature. Anyone has an idea? Link to comment Share on other sites More sharing options...
Aledark Posted September 14, 2020 Report Share Posted September 14, 2020 On 9/12/2020 at 5:57 PM, Pfev said: Hi everyone. I'd like to implement a game mechanics where blocks can be transformed using a knife+right click like for animal harvesting ( for example to transform a log into a debarked variant). I'd like to reuse code if possible but i can't locate the lines for that feature. Anyone has an idea? Something like that been done in "immersion" ( different applications). Perhaps you could go look for code. + the mod had many texturing/graphic for debarked version. Link to comment Share on other sites More sharing options...
Pfev Posted September 15, 2020 Author Report Share Posted September 15, 2020 (edited) I went through files, and the harvesting is in the knife code. Even the animation seems hard coded. I simply recoded a block behaviour. Debarking was just an example, i have other things in mind :D. Edited September 15, 2020 by Pfev Link to comment Share on other sites More sharing options...
Stroam Posted September 22, 2020 Report Share Posted September 22, 2020 On 9/14/2020 at 8:20 PM, Pfev said: I went through files, and the harvesting is in the knife code. Even the animation seems hard coded. I simply recoded a block behaviour. Debarking was just an example, i have other things in mind :D. Removing things from players is a lot more difficult. Link to comment Share on other sites More sharing options...
Recommended Posts