fix attachment position of the CTF-flag (fixes not being able to score points in CTF)

David Dormagen 2012-10-28 22:43:31 +01:00
parent fcba3e9a0e
commit b985dcc931
2 changed files with 21 additions and 5 deletions

View File

@ -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

View File

@ -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"
},
};