whismerhill Posted October 12, 2016 Share Posted October 12, 2016 hi, I wanted to take a look at how wilbur is done programmatically for his special ability to run, I suppose there is no other choice than to buy shipwrecked ? Link to comment Share on other sites More sharing options...
CarlZalph Posted October 12, 2016 Share Posted October 12, 2016 Essentially it's handled in SGwilson in the 'run' state. They have in the onupdate portion of the state to check if the inst.components.locomotor.timemoving is bigger than the threshold to start running and that the character is wilbur (by checking if it has the 'monkey' tag). This switches the stategraph to state 'run_monkey_start' via the stategraph's GoToState for animation handling, and then goes to .'run_monkey' wherein the locomotor component is modified with this DLC's custom AddSpeedModifier_Additive. Which is a bonus to speed but instead of being multiplicative it's additive. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.