home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Revista CD Expert 42
/
CDGAMER42.iso
/
Gunlok
/
data1.cab
/
Program_Executable_Files
/
scripts
/
technoboxB_multifrag.gsh
< prev
next >
Wrap
Text File
|
2000-08-22
|
2KB
|
99 lines
// defines a box which has several stages of destructibility
////////////////////////////////////////////////////////////////////////////////////
// start wrapper - prevent multiple inclusions or recursive inclusions
//(this currently causes 'unrecognized preprocessor directive' warnings, until implemented)
#ifndef INCLUDED_BOX_MULTIFRAG_GSH
#define INCLUDED_BOX_MULTIFRAG_GSH
#include "defaults.gsh"
////////////////////////////////////////////////////////////////////////////////////
// second lot of frag bits
hierarchy Hcy_Fragbox_Frag_2
{
file "objects\Technobox frag 2.rif"
name "technobox frag 2"
hotspot none
}
role Rol_Fragbox_Frag_B : Rol_PlacedObject
{
shape Hcy_Fragbox_Frag_2
identifier "fragbox_frag_2"
hit test ignore yes
frag control yes
}
// damaged box and first lot of frag bits
hierarchy Shp_Technobox_Damaged
{
file "objects\Technobox half.rif"
name "Technobox half"
}
frag data Frg_Fragbox_B // this creates only frag bits
{
role Rol_Fragbox_Frag_B
scale 3
symmetric no
}
role Rol_Fragbox_B : Rol_PlacedObject
{
shape Shp_Technobox_Damaged
identifier "technobox_damaged"
destructibility Frg_Fragbox_B
armour 0
ai blocker
}
hierarchy Hcy_Fragbox_Frag_1
{
file "objects\Technobox frag 1.rif"
name "technobox frag 1"
hotspot none
}
role Rol_Fragbox_Frag_A : Rol_PlacedObject
{
shape Hcy_Fragbox_Frag_1
identifier "fragbox_frag_1"
hit test ignore yes
frag control yes
}
// the intact box
hierarchy Hcy_Technobox
{
file "objects\Technobox.rif"
name "Technobox"
}
frag data Frg_Technobox // this creates Rol_Fragbox_B and frag bits
{
role Rol_Fragbox_Frag_A
replace role Rol_Fragbox_B
replace yes // get rid of the old box
scale 3
symmetric no
}
role Rol_Technobox : Rol_PlacedObject
{
shape Hcy_Technobox
identifier "technobox"
destructibility Frg_Technobox
armour 0
ai blocker
}
////////////////////////////////////////////////////////////////////////////////////
// end wrapper - for preventing multiple or recursive inclusions
#endif // !INCLUDED_BOX_MULTIFRAG_GSH