forked from Mirrors/openclonk
fix attachment position of the CTF-flag (fixes not being able to score points in CTF)
parent
fcba3e9a0e
commit
b985dcc931
|
@ -5,7 +5,8 @@ Category=C4D_Vehicle
|
|||
Width=16
|
||||
Height=26
|
||||
Offset=-5,-13
|
||||
# note: the fifth vertex is used to attach the flag to the Clonk
|
||||
Vertices=5
|
||||
VertexX=-5,-6,-7,7
|
||||
VertexY=13,0,-13,-6
|
||||
VertexFriction=100,100,100,50
|
||||
VertexX=-5,-6,-7,7, 0
|
||||
VertexY=13,0,-13,-6, 0
|
||||
VertexFriction=100,100,100,50, 0
|
||||
|
|
|
@ -198,6 +198,19 @@ private func BeamFlag(bool msg)
|
|||
return;
|
||||
}
|
||||
|
||||
func StartAttachCarrier()
|
||||
{
|
||||
// attach fourth vertex of the flag to third vertex of Clonk
|
||||
// this results in the best overlapping of the shapes
|
||||
SetActionData((4 << 8) + 3);
|
||||
}
|
||||
|
||||
func StartAttachBase()
|
||||
{
|
||||
// reset possible action data
|
||||
SetActionData(0);
|
||||
}
|
||||
|
||||
local Name = "$Name$";
|
||||
local ActMap = {
|
||||
AttachCarrier = {
|
||||
|
@ -206,8 +219,9 @@ local ActMap = {
|
|||
Procedure = DFA_ATTACH,
|
||||
Length = 1,
|
||||
Delay = 0,
|
||||
NextAction = "Attach",
|
||||
NextAction = "AttachCarrier",
|
||||
Animation = "Wave",
|
||||
StartCall = "StartAttachCarrier"
|
||||
},
|
||||
AttachBase = {
|
||||
Prototype = Action,
|
||||
|
@ -215,8 +229,9 @@ local ActMap = {
|
|||
Procedure = DFA_ATTACH,
|
||||
Length = 1,
|
||||
Delay = 0,
|
||||
NextAction = "Attach",
|
||||
NextAction = "AttachBase",
|
||||
Animation = "Wave",
|
||||
StartCall = "StartAttachBase"
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue