Jump to content
Sign in to follow this  
Pfev

knife + right click ?

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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 by Pfev

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.