void A_OverlayTranslation (int layer, name trname)
A_OverlayTranslation
Availability
ZandroX only. Does not exist in Zandronum 3.2. Behaviour follows UZDoom's
A_OverlayTranslation.Works in netgames. A player's client runs its own layers and takes each layer's jumps from the server — see Psprite layers.
Usage
Draws a layer in a colour translation named in a
TRNSLATE lump, or one of the built-in names such as "Ice".
An empty name or "None" draws it in its own colours again. A name no translation has is
ignored, and the layer keeps what it had.
PSPF_PLAYERTRANSLATED (see A_OverlayFlags) takes the player's own
colours in place of this one.
Parameters
-
int layerThe layer.
0means the layer whose state is currently executing — see OverlayID. Does nothing if the layer does not exist. -
name trnameThe translation's name.
Examples
A TRNSLATE lump:
// TRNSLATE
HotBarrel = "112:127=176:191"
A gun whose barrel layer glows red while it fires:
actor GlowingBarrelPistol : Pistol
{
States
{
Ready:
PISG A 0 A_Overlay(2, "Barrel", true)
PISG A 1 A_WeaponReady
Goto Ready+1
Fire:
PISG A 0 A_OverlayTranslation(2, "HotBarrel")
PISG B 6 A_FirePistol
PISG C 4
PISG A 0 A_OverlayTranslation(2, "")
Goto Ready+1
Barrel:
PISF A -1
Stop
}
}
See also
- A_OverlayFlags —
PSPF_PLAYERTRANSLATED - Psprite layers