View Full Version : Scripted textures
24th Oct 2001, 03:54 PM
I don't if this is the right place to post this (maybe a more modeling-oriented forum would yield better answers...) but I'm trying (or rather, will soon be trying) to do some interesting things with scripted textures, and have pretty much no idea how to go about doing it. If you don't know what I mean by scripted textures, the best example is the ammo indicators on the UT weapons (you know, the red text...). The scrolling marque in some UT levels is also a scripted texture, but I'm interested only in scripted textures as skins. What I need to know is:
A. How can I make an actor have a scripted texture on it.
B. Is it possible for a single actor to have more than one scripted texture on it.
If anyone could help me out, I would appreciate it very much... I think I may have seen a tutorial on this somewhere a year or so ago, but I have unfortunately lost the URL if I ever had it.
24th Oct 2001, 07:01 PM
WoD have an excellant tute on scripted textures:
24th Oct 2001, 10:00 PM
Well, thanks for the link... It will really help me get thruogh the first part, but that still only explains how to implement it in a map... Oh well, I'll figure it out myself I guess. Thanks for that link.
25th Oct 2001, 05:17 AM
For Point A:
Take a close look at a Weapons PostRenderFunction especially the ones that have scriptet Textures like Eightball, Flak. Schould be really selfexplenatory to a point.
For Point b:
Dont know, but probably yes , you have to figure that out yourself ....
25th Oct 2001, 03:32 PM
Well, I'm pretty sure that the "scripted skin" calls a RenderTexture(ScriptedTexture Tex) function (or something like that) every Tick... But that's the reason I asked about point B - if you have more than one scripted texture on one actor, there is no way to tell which texture "Tex" is, or is there?
25th Oct 2001, 06:49 PM
If (MultiSkin = Tex)
i think that will tell you wich texture you got
after all scripted texture is a subclass of texture
26th Oct 2001, 03:39 PM
But isn't MultiSkin used for something else? I know that some functions in the TournamentPlayer class deal with mulitple skins (when assigning the face and body skins), so I guess I could look into that... And I'll check on the MultiSkin thing again, although I doubt that's it. Thanks for the help anyway.
26th Oct 2001, 07:48 PM
multiskins is just an array of texture
and scriptedtexture is a subclass of texture. it got all the stuff the texture got, and a little more
27th Oct 2001, 03:50 PM
Well yeah, I realize all that, but what exactly is the MultiSkin array used for?
27th Oct 2001, 04:01 PM
multiple skins on 1 actor (instead of 1 per actor)
27th Oct 2001, 10:09 PM
You're sure about that? Well, OK, I'll experiment with it a little bit when I get to it. Thanks for the help.
vBulletin® v3.8.7, Copyright ©2000-2014, vBulletin Solutions, Inc.