EDF blanksprite: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
(Created page with "There is one sprite-related variables which may be specified in user EDF files: *'''blanksprite''': sets the sprite to be used when objects or guns attempt to use a sprite wh...")
 
No edit summary
 
Line 1: Line 1:
There is one sprite-related variables which may be specified in user EDF files:  
There is one sprite-related variables which may be specified in user EDF files:  
*'''blanksprite''': sets the sprite to be used when objects or guns attempt to use a sprite which has no graphics loaded. This must be one of the four-character sprite mnemonics defined in the spritenames array. If not provided in any EDF file, this variable defaults to the value "TNT1" (and if TNT1 is not defined in that case, an error will occur).  
*'''blanksprite''': sets the sprite to be used when objects or guns attempt to use a sprite which has no graphics loaded. This ''must'' be one of the four-character sprite mnemonics defined in the '''spritenames''' array. If not provided in any EDF file, this variable defaults to the value "TNT1" (and if TNT1 is not defined in that case, an error will occur).  


This value is parsed immediately after the sprite name list is loaded, and can be placed anywhere. If defined more than once, the last definition encountered takes precedence. These values must be defined at the topmost level of an EDF file.  
This value is parsed immediately after the sprite name list is loaded, and can be placed anywhere. If defined more than once, the last definition encountered takes precedence. These values must be defined at the topmost level of an EDF file.  

Latest revision as of 14:06, 2 May 2018

There is one sprite-related variables which may be specified in user EDF files:

  • blanksprite: sets the sprite to be used when objects or guns attempt to use a sprite which has no graphics loaded. This must be one of the four-character sprite mnemonics defined in the spritenames array. If not provided in any EDF file, this variable defaults to the value "TNT1" (and if TNT1 is not defined in that case, an error will occur).

This value is parsed immediately after the sprite name list is loaded, and can be placed anywhere. If defined more than once, the last definition encountered takes precedence. These values must be defined at the topmost level of an EDF file.

NOTE: playersprite is obsolete and no longer has any effect.

Syntax[edit]

blanksprite <sprite mnemonic>

Full example[edit]

# set the blank sprite to FOO1
blanksprite = FOO1