Jump to content

Recommended Posts

As a first time modder, I've been having a hard time combing through the game's scripts to find relevant code I can reference from.  Specifically, I'm trying to make a character with leaping movement mechanics, including the ability to leap large set-distances horizontally, as well as the ability to leap more variable distances in a high vertical arc. With that in mind, what places in the scripts should I be looking to reference from?  I've tried to find scripts referring to mechanics like Wigfrid's Charged Elding Spear without much success so far, and would appreciate a helping hand speeding that step along before I burn myself out hunting through thousands of lines of code.

try looking at the lavaarena stuff, i think her lunge is pulled from one of the forge spears?

this mod also might have something similar to what youre looking for if it still works: https://steamcommunity.com/sharedfiles/filedetails/?id=2249540093

Edited by crushcircuit

There's a lavaarena weapon called the gungnir spear which has some potential, but there's some lack of knowledge about how DST's code is organized that I'm still bashing my head into unfortunately.  I'm accruing a general understanding of DST's organization thus far: the relationship between Prefabs as entity builders, and Components as - I believe - function repositories for relevant mechanics; but something I'm particularly struggling to find is anything related to player-input.  Nary a function related to "press x to do y" have I found in any of my searching thus far, and I'm struggling to wrap my head around where to look.

 

As far as mods that have some relevant mechanics, I have found that Uncompromising Mode's Wathom has a leaping attack that would be very useful to reference... but I've been thoroughly struggling to parse it's code, or even where the code for the leaping mechanic really is.  The struggle is real.  In the meantime, I'm gonna comb as many tutorials I can about DST modding and hope that somewhere along the lines I'll find the insight I need xwx

  • Health 1

Good news! I'm still a long way from coding for real, but I've finally found where some code relevant to things like leaping attacks is stored: the "SGswilson.lua" stategraph file of the Uncompromising Mode mod! It includes a unique "leap_attack" state that I've been looking for, and I'm very excited to find that it includes code explicitly related to throwing the player around that I've been hoping to find.

 

Pro tip to anyone who's also been struggling with finding where specific mechanics are stored in code: using Notepad++'s Find in Files function was very helpful in this regard.

 

I likely also should've looked into the component "locomotor" before now, as it's referenced heavily in this code, but oh well!

  • GL Happy 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...