cloaking device? Created 18 years ago2005-06-20 19:12:17 UTC by Ichthyosaur Ichthyosaur

Created 18 years ago2005-06-20 19:12:17 UTC by Ichthyosaur Ichthyosaur

Posted 18 years ago2005-06-20 19:12:17 UTC Post #115768
Well after a rather steep learning curve I managed to learn how to make my own custom textures thanks to the tutorials that were provided in the other thread. (thanks a lot!) But again I have a question regarding textures. Here is what I have been trying to do:

Recently I have learned how to make my own brush based vehicle. I work fine yet there was one feature I wanted to add: A working cloaking device. I figured this would be simple; all I would do was use the env_texturetoggle and switch the textures between the metal one that?s on the ship to the nodraw texture. However I have recently learned that the env_texturetoggle is only used for animating textures that have more than one frame.

I thought of changing the $alpha of the texture but I can?t find a way of triggering it in game, (by a button or the like). I have tried setting the textures $alpha on a sine curve but that just made it look like it was constantly phasing in and out of cloak. Again I couldn?t find a way to trigger it.

What I would like to have ideally is a ship that could, at the press of a button, fade out to an $alpha of 0, (so you couldn?t see it), then, pressing the button again, the ship would fade back to an $alpha of 1.

At this point I could Settle for a button that could just change the frame of an animating texture, one frame being a metal surface and one being a completely translucent material. Any one have any idea how I could work something like this? Thanks a lot.
Posted 18 years ago2005-06-20 21:51:43 UTC Post #115781
The SDKdocs have more information on making framed textures - Make one with a visible frame and a NODRAW frame or whatever.

Button Output - OnPressed - Env_TextureToggle - Should be an advance or toggle frame output.
RabidMonkey RabidMonkeymapmapmapfapmap
Posted 18 years ago2005-06-20 22:55:38 UTC Post #115785
if i were you i would use the invisible texture because nodraw will fu*k it all up!
You must be logged in to post a response.