So, I’ve started my project based around using Jinto’s render clipping module to create a more true-to-the-show effect. I’ve got the clipping and touch hooks for when it is completely inside or completely removed working flawlessly!
Problem: I am making the objects that make contact with the event horizon into the collisiongroup WORLD so they gain the ability to actually go through anything else (which is good in most cases). Thing is, if I applyed it to the stargate mod made by aVoN then an object could touch the EH then slip out of the gate boundaries.
Any idea on how I could contain them? Is there any way to add a hook to an entity that isn’t the one you are coding in? I am avoiding using any think hooks in the event horizon itself, but I may have to add one for this.
I tried creating a dummy scripted entity that would take the exact position and model of the original and it would detect and prevent gatemodel collisions. Needless to say the model never took the exact positon of the original and it would flip out.
The event horizon model is from the Stargate Addon, whenever I tried to make my own it would have the wrong dimensions.
Jinto made the clipping module that makes this possible.
What I have so far:
Comments? Critique? Suggestions?
Alright, I’ve got it able to recalculate the clipping planes if it’s position changes AND only for things it is touching, so no think event added! Yay!
Problem that arose because of this is apparently it doesn’t detect when it hits a static prop, the prop itself has to move.
I might have to change the way the horizon handles hit detection.
Can I completely override physics actions by adding a StartTouch hook instead of it just being a regular function?
I give up, no one was really of any help and I don’t play gmod very often anymore.
Here’s the SVN link:
I don’t know about the username/password, probably anon or anonsvn… whatever google code uses as its default.
Things you will need, Jinto’s Render Library (yes there are working links in the thread):
Things you might want, the guardian module for touch hook awesomeness (buggy, also there are working links in the thread):
There are some config option at the top of the entity’s init.lua file. Feel free to mess with them… if you want to.
The .bak and .txt files are there because I did make some crappy backups and I wrote down some idea tests… I don’t really care if you all see them anyways.
So yeah, modify it all you want, I don’t care to further this project anymore.
If you want to ever release it or use it in a video I’d appreciate some credit for it.
It’s only really useful for videos and pictures as it is now because if just deletes/kills entities.