forked from Mirrors/openclonk
Fixed boomshire's door solidmasks (#1035)
parent
c772ff8df6
commit
72d8fd88c0
|
@ -195,13 +195,13 @@ protected func Doors()
|
|||
gate->CloseDoor();
|
||||
AddEffect("SparklingAttention",wheel,100,100);
|
||||
|
||||
var gate = CreateObject(StoneDoor, 1935, 550, NO_OWNER);
|
||||
var gate = CreateObject(StoneDoor, 1935, 558, NO_OWNER);
|
||||
var wheel = CreateObject(SpinWheel, 1900, 565, NO_OWNER);
|
||||
wheel->SetStoneDoor(gate);
|
||||
gate->CloseDoor();
|
||||
AddEffect("SparklingAttention",wheel,100,100);
|
||||
|
||||
var gate = CreateObject(StoneDoor, 2965, 310, NO_OWNER);
|
||||
var gate = CreateObject(StoneDoor, 2965, 316, NO_OWNER);
|
||||
var wheel = CreateObject(SpinWheel, 3260, 328, NO_OWNER);
|
||||
wheel->SetStoneDoor(gate);
|
||||
gate->CloseDoor();
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
GateHit.ogg by Sergenious (http://www.freesound.org/people/Sergenious/sounds/55820/), License: CC Attribution 3.0
|
||||
Chain.ogg by daveincamas (http://www.freesound.org/people/daveincamas/sounds/44076/), License: CC Attribution 3.0
|
|
@ -1,11 +0,0 @@
|
|||
[DefCore]
|
||||
id=StoneDoor
|
||||
Version=5,2,0,1
|
||||
Category=C4D_Structure
|
||||
Width=10
|
||||
Height=40
|
||||
Offset=-5,-20
|
||||
SolidMask=10,0,10,40,0,0
|
||||
Value=10
|
||||
Mass=1000
|
||||
Components=Rock=10;
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 15 KiB |
|
@ -1,67 +0,0 @@
|
|||
/*-- Stone Door --*/
|
||||
|
||||
protected func Initialize()
|
||||
{
|
||||
SetAction("Door");
|
||||
SetComDir(COMD_None);
|
||||
return;
|
||||
}
|
||||
|
||||
public func OpenDoor()
|
||||
{
|
||||
AddEffect("IntMoveGateUp", this, 100, 1, this);
|
||||
Sound("GateMove");
|
||||
return;
|
||||
}
|
||||
|
||||
public func CloseDoor()
|
||||
{
|
||||
AddEffect("IntMoveGateDown", this, 100, 1, this);
|
||||
Sound("GateMove");
|
||||
return;
|
||||
}
|
||||
|
||||
protected func FxIntMoveGateUpTimer(object target)
|
||||
{
|
||||
if (GBackSolid(0, -20))
|
||||
{
|
||||
Sound("GateHit");
|
||||
SetYDir(0);
|
||||
return -1;
|
||||
}
|
||||
|
||||
SetYDir(-5);
|
||||
return 1;
|
||||
}
|
||||
|
||||
protected func FxIntMoveGateDownTimer(object target)
|
||||
{
|
||||
if (GBackSolid(0, 19))
|
||||
{
|
||||
Sound("GateHit");
|
||||
SetYDir(0);
|
||||
return -1;
|
||||
}
|
||||
|
||||
SetYDir(5);
|
||||
return 1;
|
||||
}
|
||||
|
||||
func Definition(def)
|
||||
{
|
||||
SetProperty("ActMap", {
|
||||
Door = {
|
||||
Prototype = Action,
|
||||
Name = "Door",
|
||||
Procedure = DFA_FLOAT,
|
||||
Length = 1,
|
||||
Delay = 1,
|
||||
X = 0,
|
||||
Y = 0,
|
||||
Wdt = 10,
|
||||
Hgt = 40,
|
||||
NextAction = "Door",
|
||||
},
|
||||
}, def);
|
||||
SetProperty("Name", "$Name$", def);
|
||||
}
|
|
@ -1 +0,0 @@
|
|||
Name=Steintür
|
|
@ -1 +0,0 @@
|
|||
Name=Stone Door
|
Loading…
Reference in New Issue