YesNoOk
avatar

Trans (SCTRLs) 1.0 + 1.1b (Read 3909 times)

Started by Just No Point, October 02, 2015, 04:15:07 AM
Share this topic:
Trans (SCTRLs) 1.0 + 1.1b
New #1  October 02, 2015, 04:15:07 AM
  • ******
    • www.justnopoint.com/
Overrides the player's animation transparency parameters for current game tick. Useful for special effects.

Required parameters:
trans = trans_type (string)
trans_type must be one of the following:

default - does nothing
none - disables transparency
add - draws with full additive transparency
addalpha - draws with additive transparency (alpha must be specified)
add1 - draws with additive transparency, with alpha at 256,128
sub - draws with full subtractive transparency

Optional parameters:
alpha = source_alpha, dest_alpha (int, int)
These are the source and destination alpha values for the addalpha trans type. Valid values are from 0 (low) to 256 (high). If omitted, defaults to 256,0.
Example:

Code:
; Fades the character in, over 256 ticks.
type = Trans
trigger1 = time < 256
trans = addalpha
alpha = time, 256-time



1.1b Version

Overrides the player's animation transparency parameters for current game tick. Useful for special effects.

Required parameters:
trans = trans_type (string)
trans_type must be one of the following:

default - does nothing
none - disables transparency
add - draws with additive transparency (alpha defaults to 256,256)
addalpha - deprecated in 1.1; draws with additive transparency (alpha defaults to 256,0)
add1 - deprecated in 1.1; draws with additive transparency (alpha defaults to 256,128)

sub - draws with full subtractive transparency (alpha is fixed at 256,256)

Optional parameters:
alpha = source_alpha, dest_alpha (int, int)
These are the source and destination alpha values for the add trans types. Valid values are from 0 (low) to 256 (high). If omitted, default depends on trans_type.

Example:

Code:
; Fades the character in, over 256 ticks.
type = Trans
trigger1 = time < 256
trans = add
alpha = time, 256-time
Last Edit: January 03, 2016, 02:01:25 AM by Odb718
Re: Trans (SCTRLs) 1.0 + 1.1b
#2  October 23, 2015, 06:45:29 PM
  • ******
    • www.justnopoint.com/
Added 1,1b Documentation