home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC/CD Gamer UK 37
/
PCGAMER37.bin
/
games
/
ddrome
/
data.z
/
EXPLODEX.GW
< prev
next >
Wrap
Text File
|
1996-07-10
|
3KB
|
97 lines
# Set up explosion node and make it reference basic
# explosion data.
##################################################
# Read in 3 types of effects for each explosion
##################################################
LoadGameGen fx_col_1.gam explode_effect%explosion_number%
#PrintTree explode_effect%explosion_number%
SetAltitudeSurface off
SetIntersectSurface off
#PrintTree explode_effect%explosion_number%
#Set cycling texture effect, sets 1st polygon only
FindNode spark_1
Object3DSetFacade
CycleTextureSetOn 4
CycleTextureSetSpeed 7.8
CycleTextureSetMap fx_col11.zim 411
CycleTextureSetMap fx_col12.zim 412
CycleTextureSetMap fx_col13.zim 413
CycleTextureSetMap fx_col14.zim 414
LoadGameGen fx_smexp.gam sm_explode_effect%explosion_number%
#PrintTree sm_explode_effect%explosion_number%
SetAltitudeSurface off
SetIntersectSurface off
#textures for small fire explosion
FindNode exp_sm1
Object3DSetFacade
CycleTextureSetOn 8
CycleTextureSetSpeed 7.8
CycleTextureSetMap sm_ex_01.zim 419
CycleTextureSetMap sm_ex_02.zim 420
CycleTextureSetMap sm_ex_03.zim 421
CycleTextureSetMap sm_ex_04.zim 422
CycleTextureSetMap sm_ex_05.zim 423
CycleTextureSetMap sm_ex_06.zim 424
CycleTextureSetMap sm_ex_07.zim 425
CycleTextureSetMap sm_ex_08.zim 426
#Load large explosion
LoadGameGen fx_lgexp.gam lg_explode_effect%explosion_number%
#PrintTree lg_explode_effect%explosion_number%
SetAltitudeSurface off
SetIntersectSurface off
# textures large fire explosion
FindNode exp_lg1
Object3DSetFacade
CycleTextureSetOn 8
CycleTextureSetSpeed 7.8
CycleTextureSetMap ex_lg_01.zim 427
CycleTextureSetMap ex_lg_02.zim 428
CycleTextureSetMap ex_lg_03.zim 429
CycleTextureSetMap ex_lg_04.zim 430
CycleTextureSetMap ex_lg_05.zim 431
CycleTextureSetMap ex_lg_06.zim 432
CycleTextureSetMap ex_lg_07.zim 433
CycleTextureSetMap ex_lg_08.zim 434
##################################################
# Set up nodes for an explosion instance
##################################################
NewObject3D explosion%explosion_number%
FindNode explosion%explosion_number%
Object3DSetActive off
Object3DAddChild exp_sm1
Object3DAddChild exp_lg1
Object3DAddChild spark_1
FindNode world1
AddChild explosion%explosion_number%
#PrintTree explosion%explosion_number%
##################################################
# Add point lights to explosion
##################################################
LightNew explosionlight%explosion_number%
LightSetTranslate 0 .3 0
LightSetColor .9 .9 .9
LightSetRanges 10 30
LightSetPointSource
SetIntersectSurface off
SetAltitudeSurface off
LightSetActive off
FindNode explosion%explosion_number%
Object3DAddChild explosionlight%explosion_number%
FindNode world1
WorldAddLight explosionlight%explosion_number%