CEG:Main: Difference between revisions
From Spring
Jump to navigationJump to search
→Files Needed: 83.0 - scan in 'effects/' as well as 'gamedata/explosions' for CEG definitions |
|||
| Line 11: | Line 11: | ||
*A COB script, though emit-sfx 1024 + X. | *A COB script, though emit-sfx 1024 + X. | ||
*A Lua script, through Spring.SpawnCEG. | *A Lua script, through Spring.SpawnCEG. | ||
*A piece of a unit exploded via script can have a CEG attached to it | |||
==Further information== | ==Further information== | ||
Revision as of 20:56, 4 April 2012
Source: rts/Sim/Projectiles
Introduction
CEG stands for Custom Explosion Generator, a scripting language for creating graphical effects. These are most commonly used to draw a graphical effect when a weapon hits a target, but can also be called from COB and Lua .
Files Needed
The actual CEGs are defined in .tdf or .lua files in effects/ (preffered) or gamedata/explosions/ (old standard). You will also need a resources.lua in gamedata/ to define textures, as well as the actual textures in bitmaps/. Finally, you need the weapon, unit, COB, and or Lua files that you are calling the CEGs from.
What Can Call a CEG?
- A weapon, through cegtag, explosiongenerator, bounceexplosiongenerator.
- A COB script, though emit-sfx 1024 + X.
- A Lua script, through Spring.SpawnCEG.
- A piece of a unit exploded via script can have a CEG attached to it
Further information
For details see:
- CEG-Calls
- CEG-Format
- CEG-Classes
- CEG-Operators
- CEG-Miscellaneous
- CEG-OldInfo (may not be up to date)