Is it possible to make entities able to climb through windows in hl1? Created 10 months ago2023-06-27 17:11:53 UTC by Sadr4 Sadr4

Created 10 months ago2023-06-27 17:11:53 UTC by Sadr4 Sadr4

Posted 10 months ago2023-06-27 17:11:53 UTC Post #347657
I just want to know this because a mod I am working on requires it however I do not know if it is even possible in gldsource.
Posted 10 months ago2023-06-27 22:36:50 UTC Post #347659
You can do this with scripted sequences, assuming the model you are using has a suitable animation. Scientists for example have windive and crawlwindow animations. It would just be a case of setting up a sequence near the window and then triggering it to execute when the scientist gets within range. If you wanted other NPCs like Barney or the grunts to do it, they would need new animations.

If you wanted it to be dynamic, that might be a little more complicated and would definitely require coding. However given how the node graph works for AI in Goldsource, I suspect this would be quite tricky.
monster_urby monster_urbyGoldsourcerer
Posted 10 months ago2023-06-28 09:18:52 UTC Post #347661
Yeah, scripted_sequence would definitely be the way to go.
Since it's a mod you're working on, you can perfectly use a modified version of stock NPC models (such as scientists and barneys) that are given window climbing sequences if the default sequences don't work for you.

Here's a simple example I made you could take a look at.
You must be logged in to post a response.