View Issue Details

IDProjectCategoryView StatusLast Update
0000684Spring engineGeneralpublic2007-11-18 02:33
ReporterKDR_11k Assigned ToKloot  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Summary0000684: [patch] additional CEG functions
DescriptionThis patch adds three opcodes to the CEG definitions:
- m (modulo or sawtooth wave) returns the remainder of the runing value divided by m's parameter (so 100 m24 returns 4)
- s (sine) returns the sine of the running value with the parameter acting as the amplitude
- k (discrete) returns the running value floored to an integral multiple of the parameter (k is often used as the name for the variable meaning an integral multiple of a certain value)

Additionally, all weapons that have one now supply their remaining ttl as the damage param to their trail CEG (Flame uses curTime instead).

This patch also adds the set constant CEG_DAMAGE (99), it defines the damage value for all CEGs triggered with emit-sfx 1024+x to allow for some variability in the emitted effects to e.g. make a charging energy ball grow larger or have smoke get progressively darker as the unit's HP decreases.

It also fixes the bug where an explosion in the air over water is considered a water explosion (switches the order in which air and water explosions are determined) and it prevents LaserProjectiles from emitting their CEG once checkCol is false (e.g. when the laser has impacted and is contracting).
TagsNo tags attached.
Attached Files
cegTweaks.patch (Attachment missing)
cegTweaks_update.patch (Attachment missing)
Checked infolog.txt for Errors

Activities

KDR_11k

2007-11-17 13:07

reporter   ~0001438

Updated to remove conflict with newer version (Kloot already did the air-water fix)

Kloot

2007-11-17 19:34

developer   ~0001444

Looks fine, I'll commit this soonish.

Kloot

2007-11-18 02:33

developer   ~0001446

Done, r4824.

Issue History

Date Modified Username Field Change
2007-11-15 23:55 KDR_11k New Issue
2007-11-15 23:55 KDR_11k File Added: cegTweaks.patch
2007-11-17 13:07 KDR_11k File Added: cegTweaks_update.patch
2007-11-17 13:07 KDR_11k Note Added: 0001438
2007-11-17 19:34 Kloot Note Added: 0001444
2007-11-18 02:33 Kloot Note Added: 0001446
2007-11-18 02:33 Kloot Status new => resolved
2007-11-18 02:33 Kloot Resolution open => fixed
2007-11-18 02:33 Kloot Assigned To => Kloot