added bow shoot test scenario

Richard Gerum 2010-03-01 23:16:53 +01:00
parent b851b9658d
commit 660274a694
23 changed files with 2237 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

View File

@ -0,0 +1,470 @@
<skeleton>
<bones>
<bone id="0" name="Body">
<position x="0.000000" y="0.000000" z="0.000000"/>
<rotation angle="0.000000">
<axis x="0.033439" y="0.998806" z="-0.035621"/>
</rotation>
</bone>
<bone id="1" name="Wing.R">
<position x="0.020000" y="0.000000" z="0.000000"/>
<rotation angle="1.570796">
<axis x="-0.000000" y="-0.000000" z="-1.000000"/>
</rotation>
</bone>
<bone id="2" name="Wing.L">
<position x="-0.020000" y="0.000000" z="0.000000"/>
<rotation angle="1.570796">
<axis x="0.000000" y="-0.000000" z="1.000000"/>
</rotation>
</bone>
</bones>
<bonehierarchy>
</bonehierarchy>
<animations>
<animation name="Fly" length="0.360000">
<tracks>
<track bone="Wing.R">
<keyframes>
<keyframe time="0.000000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.189172">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.040000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.899300">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.080000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.003906">
<axis x="-1.000000" y="0.000007" z="-0.000005"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.120000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.882632">
<axis x="-1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.160000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.156477">
<axis x="-1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.200000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.984255">
<axis x="-1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.240000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.412431">
<axis x="-1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.280000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.422965">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.320000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.010187">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.360000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.189172">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
</keyframes>
</track>
<track bone="Wing.L">
<keyframes>
<keyframe time="0.000000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.134464">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.040000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.850061">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.080000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.041283">
<axis x="-1.000000" y="-0.000001" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.120000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.906701">
<axis x="-1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.160000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.176935">
<axis x="-1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.200000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.007670">
<axis x="-1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.240000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.446593">
<axis x="-1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.280000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.374608">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.320000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.956334">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.360000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.134464">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
</keyframes>
</track>
</tracks>
</animation>
<animation name="Wait" length="0.760000">
<tracks>
<track bone="Wing.R">
<keyframes>
<keyframe time="0.000000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.189172">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.040000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.182958">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.080000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.164302">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.120000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.134318">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.160000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.096138">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.200000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.054931">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.240000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.016753">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.280000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.986770">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.320000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.968117">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.360000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.961903">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.400000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.966931">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.440000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.982072">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.480000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.006712">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.520000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.038970">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.560000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.075535">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.600000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.112101">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.640000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.144360">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.680000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.169002">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.720000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.184143">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.760000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.189172">
<axis x="1.000000" y="-0.000000" z="0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
</keyframes>
</track>
<track bone="Wing.L">
<keyframes>
<keyframe time="0.000000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.134464">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.040000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.127388">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.080000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.106140">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.120000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.071979">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.160000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.028468">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.200000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.981503">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.240000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.937995">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.280000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.903836">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.320000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.882591">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.360000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.875516">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.400000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.881241">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.440000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.898485">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.480000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.926554">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.520000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="0.963312">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.560000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.004986">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.600000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.046661">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.640000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.083422">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.680000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.111493">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.720000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.128738">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
<keyframe time="0.760000">
<translate x="0.000000" y="0.000000" z="0.000000"/>
<rotate angle="1.134464">
<axis x="1.000000" y="0.000000" z="-0.000000"/>
</rotate>
<scale x="1.000000" y="1.000000" z="1.000000"/>
</keyframe>
</keyframes>
</track>
</tracks>
</animation>
</animations>
</skeleton>

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,30 @@
[DefCore]
id=_BTF
Category=69640
MaxUserSelect=10
TimerCall=Activity
ContactCalls=1
Width=24
Height=24
Offset=-12,-12
Value=1
Mass=1
Components=_BTF=1;
Vertices=4
VertexX=0,0,-7,7
VertexY=-5,5,0,0
VertexCNAT=4,8,1,2
VertexFriction=100,100,100,100,100,100
Placement=2
ContactIncinerate=0
Growth=15
Float=1
BorderBound=7
StretchGrowth=1
NoBurnDecay=1
IncompleteActivity=1
[Physical]
Energy=40000
Breath=50000
Float=200

View File

@ -0,0 +1 @@
Belebt Himmel und Gemüt.

View File

@ -0,0 +1 @@
Brightens the day.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,42 @@
material Butterfly_Wing
{
receive_shadows on
technique
{
pass
{
// cull_hardware none
ambient 0.500000 0.500000 0.500000 0.000000
diffuse 0.000080 0.000080 0.000080 0.000000
specular 0.500000 0.500000 0.500000 0.000000 12.500000
emissive 0.000000 0.000000 0.000000 0.000000
texture_unit
{
texture Butterfly_Wing.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material Butterfly_Body
{
receive_shadows on
technique
{
pass
{
ambient 0.500000 0.500000 0.500000 0.000000
diffuse 0.640000 0.640000 0.640000 0.000000
specular 0.500000 0.500000 0.500000 0.000000 12.500000
emissive 0.000000 0.000000 0.000000 0.000000
texture_unit
{
texture Butterfly.png
tex_address_mode wrap
filtering trilinear
}
}
}
}

View File

@ -0,0 +1,135 @@
/*
Butterfly
Author: Randrian
A small fluttering being.
*/
#strict 2
protected func Initialize()
{
SetAction("Fly");
MoveToTarget();
return 1;
}
/* TimerCall */
private func Activity()
{
// Underwater
if (InLiquid()) return SetComDir(COMD_Up);
// Sitting? wait
if (GetAction() == "Sit") return 1;
// New target
if (!GetCommand() || !Random(5)) MoveToTarget();
return 1;
}
/* Movement */
private func Flying()
{
// Change direction
if (GetXDir() > 0) SetDir(DIR_Right);
else SetDir(DIR_Left);
// Change action
if (!Random(3)) SetAction("Flutter");
return 1;
}
private func Fluttering()
{
// Change direction
if (GetXDir() > 0) SetDir(DIR_Right);
else SetDir(DIR_Left);
// Change action
if (!Random(7)) SetAction("Fly");
return 1;
}
/* Contact */
protected func ContactBottom()
{
SetCommand("None");
SetComDir(COMD_Up);
return 1;
}
protected func SitDown()
{
SetXDir(0);
SetYDir(0);
SetComDir(COMD_Stop);
SetAction("Sit");
SetCommand("None");
return 1;
}
protected func TakeOff()
{
SetComDir(COMD_Up);
return 1;
}
private func MoveToTarget()
{
var x = Random(LandscapeWidth());
var y = Random(GetHorizonHeight(x)-60)+30;
SetCommand("MoveTo",0,x,y);
return 1;
}
private func GetHorizonHeight(int x)
{
var height;
while ( height < LandscapeHeight() && !GBackSemiSolid(x,height))
height += 10;
return height;
}
func Definition(def) {
SetProperty("ActMap", {
Fly = {
Prototype = Action,
Name = "Fly",
Procedure = DFA_FLOAT,
Directions = 2,
FlipDir = 1,
Length = 1,
Delay = 10,
X = 0,
Y = 0,
Wdt = 24,
Hgt = 24,
NextAction = "Fly",
StartCall = "Flying",
Animation = "Fly",
},
Flutter = {
Prototype = Action,
Name = "Flutter",
Procedure = DFA_FLOAT,
Directions = 2,
FlipDir = 1,
Length = 11,
Delay = 1,
X = 0,
Y = 0,
Wdt = 24,
Hgt = 24,
NextAction = "Flutter",
StartCall = "Fluttering",
Animation = "Wait",
},
}, def);
SetProperty("Name", "Butterfly", def);
// Set perspective
SetProperty("PerspectiveR", 20000, def);
SetProperty("PerspectiveTheta", 20, def);
SetProperty("PerspectivePhi", 70, def);
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@ -0,0 +1,114 @@
[Object]
id=_TRG
Number=379
Category=1
Size=100000
Mass=15
FixX=F8126464
FixY=F22609920
Width=25
Height=25
Offset=-12,-12
Vertices=1
VertexY=1
VertexFriction=50
Picture=0,0,0,0
OCF=203423809
Component=METL=1
LocalNamed=0
[Object]
id=_TRG
Number=380
Category=1
Size=100000
Mass=15
FixX=F21626880
FixY=F18415616
Width=25
Height=25
Offset=-12,-12
Vertices=1
VertexY=1
VertexFriction=50
Picture=0,0,0,0
OCF=203423809
Component=METL=1
LocalNamed=0
[Object]
id=_TRG
Number=381
Category=1
Size=100000
Mass=15
FixX=F41025536
FixY=F9175040
Width=25
Height=25
Offset=-12,-12
Vertices=1
VertexY=1
VertexFriction=50
Picture=0,0,0,0
OCF=203423809
Component=METL=1
LocalNamed=0
[Object]
id=_TRG
Number=382
Category=1
Size=100000
Mass=15
FixX=F55902208
FixY=F24969216
Width=25
Height=25
Offset=-12,-12
Vertices=1
VertexY=1
VertexFriction=50
Picture=0,0,0,0
OCF=203423809
Component=METL=1
LocalNamed=0
[Object]
id=_TRG
Number=383
Category=1
Size=100000
Mass=15
FixX=F51511296
FixY=F34537472
Width=25
Height=25
Offset=-12,-12
Vertices=1
VertexY=1
VertexFriction=50
Picture=0,0,0,0
OCF=203423809
Component=METL=1
LocalNamed=0
[Object]
id=_TRG
Number=384
Category=1
Size=100000
Mass=15
FixX=F3473408
FixY=F37224448
Width=25
Height=25
Offset=-12,-12
Vertices=1
VertexY=1
VertexFriction=50
Picture=0,0,0,0
OCF=203423809
Component=METL=1
LocalNamed=0

View File

@ -0,0 +1,58 @@
[Head]
Icon=26
Title=Targets
Version=4,10
Difficulty=10
Access=1
MaxPlayer=8
NoInitialize=0
ForcedGfxMode=1
[Definitions]
Definition1=Objects.c4d
[Game]
Rules=RSTR=1
[Player1]
Wealth=50,0,0,250
Crew=CLNK=1
[Player2]
Wealth=50,0,0,250
Crew=CLNK=1
[Player3]
Wealth=50,0,0,250
Crew=CLNK=1
[Player4]
Wealth=50,0,0,250
Crew=CLNK=1
[Landscape]
Vegetation=TRE1=1;TRE2=2;TRE3=1;TRE4=1
VegetationLevel=100,0,0,100
InEarth=ROCK=1;GOLD=1;FIGB=1;LOAM=1
InEarthLevel=65,0,0,100
Sky=Clouds2
BottomOpen=1
MapWidth=500,0,64,10000
MapHeight=100,0,40,10000
Amplitude=10,10,0,100
Phase=50,50,0,100
Period=10,10,0,100
Random=20,20,0,100
Liquid=Water-Smooth
LiquidLevel=20,30,0,100
Layers=Rock=7;Rock=7;Gold=7;Granite=4;Water=5;Earth-earth=50;Earth-earth_dry=50
SkyScrollMode=2
NewStyleLandscape=2
[Weather]
Climate=0,0,0,100
YearSpeed=20,10,0,100
Wind=1,100,-100,100
[Environment]
Objects=EGLN=1;EGRS=1

View File

@ -0,0 +1,33 @@
/* Targets */
func Initialize()
{
CreateObject(GRSP, 10, 10);
Message("@Here is a butterfly!|(ck draw it!)", CreateObject(_BTF, 10, 10));
}
func InitializePlayer(int iPlr, int iX, int iY, object pBase, int iTeam)
{
JoinPlayer(iPlr);
return;
}
func RelaunchPlayer(int iPlr)
{
var clonk = CreateObject(CLNK, 0, 0, iPlr);
clonk->MakeCrewMember(iPlr);
SetCursor(iPlr,clonk);
SelectCrew(iPlr, clonk, true);
JoinPlayer(iPlr);
return;
}
func JoinPlayer(int iPlr)
{
var clonk = GetCrew(iPlr);
clonk->DoEnergy(100000);
clonk->SetPosition(384, 469);
clonk->CreateContents(BOW1);
clonk->Collect(CreateObject(ARRW));
return;
}

View File

@ -0,0 +1 @@
#appendto CLNK protected func RejectCollect(id objid, object obj) { if(objid != BOW1 && objid != ARRW) return true; return _inherited(objid, obj); } public func MaxContentsCount() { return 1; }

View File

@ -0,0 +1,14 @@
[DefCore]
id=_TRG
Version=4,9,8
Category=C4D_StaticBack
MaxUserSelect=10
Width=25
Height=25
Offset=-12,-12
Vertices=1
VertexY=1
VertexFriction=50
Value=10
Mass=15
Components=METL=1

View File

@ -0,0 +1,2 @@
Connect by pressing dig double.

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

View File

@ -0,0 +1,42 @@
/*-- Arrow target --*/
#strict 2
func Definition(def) {
SetProperty("Name", "$Name$", def);
}
public func IsProjectileTarget(target,shooter)
{
return 1;
}
public func QueryCatchBlow(obj)
{
// obj->Schedule("RemoveObject", 1);
DoFireworks();
return 1;
}
func DoFireworks(int speed)
{
var color = HSL(Random(8)*32,255,127);
if(!speed) speed = 12;
for(var i=0; i<36; ++i)
{
var oangle = Random(70);
var num = AddEffect("Firework", nil, 300, 1, nil, BOOM, Cos(oangle,speed), i*10+Random(5), GetX(), GetY());
EffectVar(4,nil,num) = color;
}
for(var i=0; i<16; ++i)
{
CreateParticle("ExploSmoke",RandomX(-80,80),RandomX(-80,80),0,0,RandomX(500,700),RGBa(255,255,255,90));
}
CastParticles("Spark",60,190,0,0,40,70,color,color);
CreateParticle("Flash",0,0,0,0,3500,color | (200 & 255)<<24);
Explode(30);
}

View File

@ -0,0 +1,5 @@
TxtConnectLine=Leitung verbinden
TxtNoNewLine=Hier kann keine neue Leitung verlegt werden.
TxtLineRemoval=Energieleitung abgenommen.
TxtConnect=Energieleitung verbunden|mit %s
Name=Drahtrolle

View File

@ -0,0 +1,5 @@
TxtConnectLine=Connect line
TxtNoNewLine=Cannot create a new line here.
TxtLineRemoval=Power line disconnected.
TxtConnect=Power line connected|to %s
Name=Wireroll

View File

@ -0,0 +1,5 @@
[Teams]
Active=false
Custom=false
AllowHostilityChange=true
AutoGenerateTeams=true

View File

@ -0,0 +1,2 @@
DE:Zielen
US:Targets