CEG:Main: Difference between revisions
From Spring
Jump to navigationJump to search
Evil4zerggin (talk | contribs) No edit summary |
Evil4zerggin (talk | contribs) No edit summary |
||
| Line 8: | Line 8: | ||
== What Can Call a CEG? == | == What Can Call a CEG? == | ||
*A weapon, through cegtag | *A weapon, through cegtag, explosiongenerator, bounceexplosiongenerator. | ||
*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. | ||
See [[CEG_Calls]] for details. | See [[CEG_Calls]] for details. | ||
Revision as of 08:58, 30 December 2008
Source: https://spring.clan-sy.com/svn/spring/trunk/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 gamedata/explosions/. You will also need a resources.tdf or .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.
See CEG_Calls for details.