2016-10-13 22:40:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
//==========================================================================
|
|
|
|
//
|
|
|
|
// Ice chunk
|
|
|
|
//
|
|
|
|
//==========================================================================
|
|
|
|
|
|
|
|
class IceChunk : Actor
|
|
|
|
{
|
|
|
|
Default
|
|
|
|
{
|
|
|
|
Radius 3;
|
|
|
|
Height 4;
|
|
|
|
Mass 5;
|
|
|
|
Gravity 0.125;
|
|
|
|
+DROPOFF
|
|
|
|
+CANNOTPUSH
|
|
|
|
+FLOORCLIP
|
|
|
|
+NOTELEPORT
|
|
|
|
+NOBLOCKMAP
|
|
|
|
+MOVEWITHSECTOR
|
|
|
|
}
|
2016-10-22 15:49:08 +00:00
|
|
|
native void A_IceSetTics ();
|
2016-10-13 22:40:20 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|