// EDuke32 CON Supplements (To be taken with a balanced diet) // CONfetti Version 1.11 - High Treason // // This con file enables several new effects and little tweaks for EDuke32. // You may distribute this file freely so long as this file is intact, // You may also modify this file, however, you must also add your own name alongside mine, // Because this file was intended for use with user maps, you can include it with those as well as mods, // Renaming the file is fine too, such as if you have your own EDuke.CON and just want to "include" this one. //include game.con // We have to do this so the regular cons are loaded. // Vars gamevar SE_LOTAG 0 2 gamevar SE_HITAG 0 2 gamevar SE_XVEL 0 2 gamevar SE_YVEL 0 2 gamevar SE_ZVEL 0 2 gamevar SE_EXTRA 0 2 gamevar SE_SHADE 0 2 gamevar SE_CLIPDIST 0 2 gamevar SE_ANG 0 2 gamevar SE_XREPEAT 0 2 gamevar SE_YREPEAT 0 2 gamevar PA_TEMP1 0 2 gamevar PA_TEMP2 0 2 gamevar PA_TEMP3 0 2 gamevar SE_MINTAG 0 2 // Holds minimum values gamevar SE_MAXTAG 0 2 // The maximum shade value to react to minus 65 gamevar R 0 2 gamevar G 0 2 gamevar B 0 2 gamevar DIRTYHACK 0 0 onevent EVENT_TURNAROUND ifvare DIRTYHACK 0 { setvar DIRTYHACK 1 savegamevar DIRTYHACK redefinequote 7 LIGHT PERFORMANCE HACK ENABLED quote 7 } else ifvare DIRTYHACK 1 { setvar DIRTYHACK 0 savegamevar DIRTYHACK redefinequote 7 LIGHT PERFORMANCE HACK DISABLED quote 7 } setvar lighthack_saved 1 savegamevar lighthack_saved endevent // SE49 and SE50 at map load; eventloadactor SECTOREFFECTOR getactor[THISACTOR].lotag SE_LOTAG ifvare SE_LOTAG 49 // Should save memory... { getactor[THISACTOR].hitag SE_HITAG getactor[THISACTOR].xvel SE_XVEL getactor[THISACTOR].yvel SE_YVEL getactor[THISACTOR].zvel SE_ZVEL getactor[THISACTOR].extra SE_EXTRA getactor[THISACTOR].clipdist SE_CLIPDIST getactor[THISACTOR].ang SE_ANG getactor[THISACTOR].shade SE_SHADE getactor[THISACTOR].xvel R getactor[THISACTOR].yvel G getactor[THISACTOR].zvel B } ifvare SE_LOTAG 50 // Should save memory and speed up map load... { getactor[THISACTOR].hitag SE_HITAG getactor[THISACTOR].xvel SE_XVEL getactor[THISACTOR].yvel SE_YVEL getactor[THISACTOR].zvel SE_ZVEL getactor[THISACTOR].extra SE_EXTRA getactor[THISACTOR].clipdist SE_CLIPDIST getactor[THISACTOR].ang SE_ANG getactor[THISACTOR].shade SE_SHADE getactor[THISACTOR].xrepeat SE_XREPEAT getactor[THISACTOR].yrepeat SE_YREPEAT getactor[THISACTOR].xvel R getactor[THISACTOR].yvel G getactor[THISACTOR].zvel B // } ifvarg SE_XREPEAT 128 { setvarvar SE_MAXTAG SE_XREPEAT subvar SE_MAXTAG 128 } } enda onevent EVENT_GAME ifactor SECTOREFFECTOR { ifvare SE_LOTAG 49 // Behaviour for SE49's { ifvare SE_ANG 128 { randvarvar PA_TEMP1 SE_HITAG setactor[THISACTOR].hitag PA_TEMP1 } } // } // SE50 here ifvare SE_LOTAG 50 // Behaviour for SE50's { ifvarg SE_XREPEAT 63 { ifvare SE_XREPEAT 198 { randvarvar PA_TEMP3 SE_HITAG setactor[THISACTOR].hitag PA_TEMP3 } } } } endevent