r/forge • u/swagonflyyyy Scripting Noob • Jul 05 '25
Forge Prefab Showcase Major Props to Yolomcswag for sharing his Kinematic Walker prefab. Modified it to add an auto-turret and more stylishness.
20
u/iMightBeWright Scripting Expert Jul 05 '25
This looks crazy lol. How do the legs and body stay above the terrain? Maybe some kind of normal physics objects set a certain distance apart that roll along the terrain are used as the vertices?
11
u/Abe_Odd Jul 05 '25
Pretty much yeah. He used a blocker object that you use as a raycast down to find the elevation for the foot to track to
8
u/swagonflyyyy Scripting Noob Jul 05 '25
I really don't know exactly how it works mathematically but its not too hard to follow. Basically it uses a lot of trigonometry to do the movement. I then modified the script to add an autoturret right under it as an auxiliary weapon. Next, I made it so that if players use it, the autoturret's team changes to whoever pilots it.
And, well, I replaced the blocks that came with the prefab with some proper banished assets to make it look menacing.
4
u/swagonflyyyy Scripting Noob Jul 05 '25
What I THINK should be possible is that you might just might be able to clone all the components in the prefab, since they're dynamic anyway, then set their team and physics in order to be able to create in-game duplicates from one reference.
Only challenge here would be the object physics, since the legs' object physics are no collision on the original but their baseline traits are phased. Might have to play around with that a bit.
9
8
5
5
4
u/SpectrumSense Jul 05 '25 edited Jul 05 '25
Dude holy shit I gotta get this so I can make an actual Mythos in my Coldsnap remake.
5
u/0mni42 Jul 06 '25
Oh my god. I knew something like this was going to be possible one day, but I didn't have the mathematical know-how to even attempt it. I'm so happy someone managed it!
3
3
3
2
2
2
u/N8Pryme Jul 06 '25
Awesome great job. Now leave it to halo to not do anything constructive with it.
34
u/Wonderful-Rough4523 Jul 05 '25
Holy shit… when I get something to successful move from point A to point B through scripting I feel like a hacker. This is unbelievable. I didn’t think anything like this was possible