Nice!!
I specially liked your idea of a material changing force field, very well thought!
Thanks!
Hey guys,
I've made an addon which you may find useful. Basically it sets an entity to no collide based on a wire input. It also saves the material and colour used in each state, so you can make a force field type thing which goes invisible or changes colour when deactivated.
~ wire_no_collide ~
[UPDATE]
New in version 2:- You can select multiple entities to no collide
- Code has been cleaned up a bit (no more commented old code BlackPhoenix :P)
- A couple of bug fixes
To install:
- Extract the zip file contents into %steam directory%\steamapps\%email%\garrysmod\garrysmod\a ddonsTo use:
- Select the 'No Collide' tool under the 'Wire - Physics' section of the wiremod tab(Optional)
- Left click on the entities you want to no collide
- Right click where you want to weld the controller
- Wire the 'Activated' input to whatever you want!- Set the No Collide Controller to deactivatedInputs:
- Change the material and colour for entities in their normal state using the normal material and colour tools
- Set the No Collide Controller to activated
- Set the material and colour for entities when they are no collided--> The material and colours will be saved when the no collide state is changed, allowing a force field like effect when turned on and off
Activate :0 - Entities have normal collisions
>0 - Entities will not collide with other players or props
If anyone wants to include this in a bundle addon (or even in the wiremod svn) then feel free. Give me an email if you do.
Hope you find this useful!
- Mat
Last edited by splat2010; 06-03-2008 at 09:24 AM. Reason: Forgot to upload the zip duh!
Nice!!
I specially liked your idea of a material changing force field, very well thought!
Thanks!
Love it!
Been waiting for something like this for ages, great for base doors.
Great stuff![]()
i would have called it configurable door.
AH finally! There were so many posts regarding the creation of a no-collide latch, tell me is it possible to create one similar to a weld latch? For instance click on two props that you can toggle the no collide on and off? Great work!
I think this should be put into svn as it has got a lot of uses i like the idea of been able to colour the prop when in no-collide. So if it is ok with splat i think it would be a very good addition to the wire mod addon.
Thanks for the positive feedback
drpepper: That is certainly something that I could add in. Where would you use it though?
My next idea was to make it so that you can left click multiple entities to no collide (with all other ents), and right click to place the controller instead of just being limited to one no collide per controller. Having this and being able to no collide two specific entities could be a little tricky though - i wouldn't be sure how the controls would work...
As for adding this to the svn, I would be happy with that. Would be nice to use this on some of the servers. Does anyone know how to go about it? I'm assuming we have to ask one of the devs nicely!
Mat
Geh, clean your code from old commented code before releasing :P
Bookmarks