qzdoom-gpl/wadsrc/static/zscript/shared/ice.txt
Christoph Oelckers 7de683f9f5 - converted a few more DECORATE files.
- started with the AST converter. So far it only deals with direct function calls with simple constants as parameters.
- added an error condition for the defaults block to get rid of some asserts.
2016-10-14 00:40:20 +02:00

61 lines
886 B
Text

//==========================================================================
//
// Ice chunk
//
//==========================================================================
class IceChunk : Actor
{
Default
{
Radius 3;
Height 4;
Mass 5;
Gravity 0.125;
+DROPOFF
+CANNOTPUSH
+FLOORCLIP
+NOTELEPORT
+NOBLOCKMAP
+MOVEWITHSECTOR
}
action native void A_IceSetTics ();
States
{
Spawn:
ICEC A 1;
ICEC ABCD 10 A_IceSetTics;
Stop;
}
}
//==========================================================================
//
// A chunk of ice that is also a player
//
//==========================================================================
class IceChunkHead : PlayerChunk
{
Default
{
Radius 3;
Height 4;
Mass 5;
Gravity 0.125;
DamageType "Ice";
+DROPOFF
+CANNOTPUSH
}
States
{
Spawn:
ICEC A 0;
ICEC A 10 A_CheckPlayerDone;
wait;
}
}