CEG:Main: Difference between revisions

From Spring
Jump to navigationJump to search
No edit summary
Flozi (talk | contribs)
remove 'what can call' section and update link to CEG:Calls
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''Source:''' https://spring.clan-sy.com/svn/spring/trunk/rts/Sim/Projectiles
= CEG Main Page =
 
== Introduction ==
== 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 .
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 ==
== 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.
The actual CEGs are defined in .tdf or .lua files in <code>effects/</code> (preferred) or <code>gamedata/explosions/</code> (old standard). You will also need a [[resources.lua]] in <code>gamedata/</code> to define textures, as well as the actual textures in <code>bitmaps/</code>. Finally, you need the weapon, unit, COB, and or Lua files that you are calling the CEGs from.


== What Can Call a CEG? ==
==Further information==
*A weapon, through cegtag, explosiongenerator, bounceexplosiongenerator.
For details on CEG definition files, how to call a CEG and more advanced features see:
*A COB script, though emit-sfx 1024 + X.
*[[CEG:Defs]]
*A Lua script, through Spring.SpawnCEG.
*[[CEG:Calls]]
*[[CEG:Operators]]
*[[CEG:Miscellaneous]]


See [[CEG_Calls]] for details.
[[Category:CEG]]

Latest revision as of 19:39, 5 October 2014

CEG Main Page

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/ (preferred) 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.

Further information

For details on CEG definition files, how to call a CEG and more advanced features see: