mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
62 lines
886 B
Text
62 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;
|
||
|
}
|
||
|
}
|
||
|
|