forked from Mirrors/openclonk
37 lines
499 B
C
37 lines
499 B
C
/* Everyone wins! */
|
|
|
|
#appendto Boompack
|
|
|
|
|
|
func Fall(int from_plr)
|
|
{
|
|
SetOwner(from_plr);
|
|
SetController(from_plr);
|
|
Launch(RandomX(-10,10)+180);
|
|
}
|
|
|
|
func HasNoFadeOut()
|
|
{
|
|
if(GetAction() == "Attach") return true;
|
|
return false;
|
|
}
|
|
|
|
func Definition(def) {
|
|
SetProperty("ActMap", {
|
|
|
|
Attach = {
|
|
Prototype = Action,
|
|
Name = "Attach",
|
|
Procedure = DFA_ATTACH,
|
|
Directions = 1,
|
|
FlipDir = 0,
|
|
Length = 00,
|
|
X = 0,
|
|
Y = 0,
|
|
Wdt = 7,
|
|
Hgt = 8,
|
|
NextAction = "Attach",
|
|
// Animation = "idle",
|
|
}
|
|
} ,def);
|
|
} |