diff options
| author | Jan <> | 2015-02-02 17:55:29 +0100 |
|---|---|---|
| committer | Jan <_> | 2015-07-10 17:49:45 +0200 |
| commit | 32a9632fbca3dd7a88bd3154b84a3773af39c276 (patch) | |
| tree | a226b9404844a73c7229e9d13db993c86b5be2c1 /TemplePushing.c4s/Misc.c4d/Brick.c4d | |
| parent | 40fb3e5d61c44886b06d839a35adb0c11a5f918f (diff) | |
| download | tempelschubsen-32a9632fbca3dd7a88bd3154b84a3773af39c276.tar.gz tempelschubsen-32a9632fbca3dd7a88bd3154b84a3773af39c276.zip | |
TemplePush v6.1.7601.18409.c4s
Diffstat (limited to 'TemplePushing.c4s/Misc.c4d/Brick.c4d')
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/Brick.c4d/ActMap.txt | 6 | ||||
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/Brick.c4d/DefCore.txt | 26 | ||||
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/Brick.c4d/DescDE.txt | 1 | ||||
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/Brick.c4d/DescUS.txt | 1 | ||||
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/Brick.c4d/Graphics.png | bin | 0 -> 5188 bytes | |||
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/Brick.c4d/Names.txt | 2 | ||||
| -rw-r--r-- | TemplePushing.c4s/Misc.c4d/Brick.c4d/Script.c | 29 |
7 files changed, 65 insertions, 0 deletions
diff --git a/TemplePushing.c4s/Misc.c4d/Brick.c4d/ActMap.txt b/TemplePushing.c4s/Misc.c4d/Brick.c4d/ActMap.txt new file mode 100644 index 0000000..03f7ca9 --- /dev/null +++ b/TemplePushing.c4s/Misc.c4d/Brick.c4d/ActMap.txt @@ -0,0 +1,6 @@ +[Action] +Name=Flying +Procedure=FLOAT +Directions=2 +Length=2 +Facet=0,0,20,20 diff --git a/TemplePushing.c4s/Misc.c4d/Brick.c4d/DefCore.txt b/TemplePushing.c4s/Misc.c4d/Brick.c4d/DefCore.txt new file mode 100644 index 0000000..bef6342 --- /dev/null +++ b/TemplePushing.c4s/Misc.c4d/Brick.c4d/DefCore.txt @@ -0,0 +1,26 @@ +[DefCore] +id=BRK2 +Name=BigBrick +Version=4,9,5 +Category=4 +MaxUserSelect=0 +Width=20 +Height=20 +Offset=-10,-10 +Value=50 +Mass=100 +Components=ROCK=8; +ContactCalls=1 +Picture=0,0,20,20 +Vertices=9 +VertexX=0, -11,-11, 10, 10,-12, 0, 11, 0 +VertexY=14,-11, 11,-11, 11, 0,-12, 0, 11 +VertexCNAT=127 +SolidMask=0,0,20,20 +VertexFriction=10000,10000,10000,10000,10000,10000,10000,10000,10000 +ColorByMaterial=Brick +TimerCall=CheckHit +Timer=1 + +[Physical] +Float=200
\ No newline at end of file diff --git a/TemplePushing.c4s/Misc.c4d/Brick.c4d/DescDE.txt b/TemplePushing.c4s/Misc.c4d/Brick.c4d/DescDE.txt new file mode 100644 index 0000000..c69e382 --- /dev/null +++ b/TemplePushing.c4s/Misc.c4d/Brick.c4d/DescDE.txt @@ -0,0 +1 @@ +Ein "Fahrziegel"?
\ No newline at end of file diff --git a/TemplePushing.c4s/Misc.c4d/Brick.c4d/DescUS.txt b/TemplePushing.c4s/Misc.c4d/Brick.c4d/DescUS.txt new file mode 100644 index 0000000..7339045 --- /dev/null +++ b/TemplePushing.c4s/Misc.c4d/Brick.c4d/DescUS.txt @@ -0,0 +1 @@ +A brick as an object.
\ No newline at end of file diff --git a/TemplePushing.c4s/Misc.c4d/Brick.c4d/Graphics.png b/TemplePushing.c4s/Misc.c4d/Brick.c4d/Graphics.png Binary files differnew file mode 100644 index 0000000..1b531ea --- /dev/null +++ b/TemplePushing.c4s/Misc.c4d/Brick.c4d/Graphics.png diff --git a/TemplePushing.c4s/Misc.c4d/Brick.c4d/Names.txt b/TemplePushing.c4s/Misc.c4d/Brick.c4d/Names.txt new file mode 100644 index 0000000..b311575 --- /dev/null +++ b/TemplePushing.c4s/Misc.c4d/Brick.c4d/Names.txt @@ -0,0 +1,2 @@ +DE:Ziegel +US:Brick
\ No newline at end of file diff --git a/TemplePushing.c4s/Misc.c4d/Brick.c4d/Script.c b/TemplePushing.c4s/Misc.c4d/Brick.c4d/Script.c new file mode 100644 index 0000000..4a70dd2 --- /dev/null +++ b/TemplePushing.c4s/Misc.c4d/Brick.c4d/Script.c @@ -0,0 +1,29 @@ +/*-- Brick --*/ + +#strict 2 + +local yMin, yMax; + +protected func Initialize() +{ + SetAction("Flying"); + SetPhase(Random(2)); + SetDir(Random(2)); + ContactTop(); + yMin = 100; + yMax = 650; +} + +protected func ContactBottom() { SetYDir(-10); } +protected func ContactTop() { SetYDir(10); } + +func CheckHit() +{ + if (GetXDir() == 0 && GetYDir() == 0) + { + SetXDir(RandomX(-100, 100)); + SetYDir(RandomX(-100, 100)); + } + if (GetY() >= yMax) ContactBottom(); + if (GetY() <= yMin) ContactTop(); +} |
