forked from Mirrors/openclonk
Rope: Rename CreateRope2() script function to CreateRope()
parent
aaa76be2c4
commit
76dfb050e4
|
@ -30,7 +30,7 @@ func Construction(object creator)
|
|||
func Initialize()
|
||||
{
|
||||
CreateCase();
|
||||
CreateRope();
|
||||
CreateCaseRope();
|
||||
|
||||
if (partner)
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ func CreateCase()
|
|||
case->Connect(this);
|
||||
}
|
||||
|
||||
func CreateRope()
|
||||
func CreateCaseRope()
|
||||
{
|
||||
rope = CreateObject(ElevatorRope, -19 * GetCalcDir(), -11, GetOwner());
|
||||
rope->SetAction("Be", case);
|
||||
|
@ -162,4 +162,4 @@ func Definition(def) {
|
|||
}
|
||||
local Name = "$Name$";
|
||||
local Description = "$Description$";
|
||||
local BlastIncinerate = 100;
|
||||
local BlastIncinerate = 100;
|
||||
|
|
|
@ -6,8 +6,8 @@ func Initialize()
|
|||
var b = CreateObject(Rock, 200, 100, NO_OWNER);
|
||||
//a->SetCategory(C4D_StaticBack);
|
||||
//b->SetCategory(C4D_StaticBack);
|
||||
Scenario.rope = CreateRope2(a, b, 20, LiftTower_Rope);
|
||||
//CreateRope2(a, b, 1, LiftTower_Rope);
|
||||
Scenario.rope = CreateRope(a, b, 20, LiftTower_Rope);
|
||||
//CreateRope(a, b, 1, LiftTower_Rope);
|
||||
}
|
||||
|
||||
func InitializePlayer(int plr)
|
||||
|
@ -15,7 +15,7 @@ func InitializePlayer(int plr)
|
|||
var clonk = GetCrew(plr, 0);
|
||||
var a = CreateObject(Rock, clonk->GetX(), clonk->GetY()-100, NO_OWNER);
|
||||
a->SetCategory(C4D_StaticBack);
|
||||
var rope = CreateRope2(a, clonk, 20, LiftTower_Rope);
|
||||
var rope = CreateRope(a, clonk, 20, LiftTower_Rope);
|
||||
|
||||
rope->SetFrontAutoSegmentation(300);
|
||||
rope->SetFrontAutoSegmentation(200);
|
||||
}
|
||||
|
|
|
@ -2479,7 +2479,7 @@ void InitObjectFunctionMap(C4AulScriptEngine *pEngine)
|
|||
AddFunc(pEngine, "SetAttachTransform", FnSetAttachTransform);
|
||||
AddFunc(pEngine, "GetMeshMaterial", FnGetMeshMaterial);
|
||||
AddFunc(pEngine, "SetMeshMaterial", FnSetMeshMaterial);
|
||||
AddFunc(pEngine, "CreateRope2", FnCreateRope);
|
||||
AddFunc(pEngine, "CreateRope", FnCreateRope);
|
||||
AddFunc(pEngine, "ChangeDef", FnChangeDef);
|
||||
AddFunc(pEngine, "GrabContents", FnGrabContents);
|
||||
AddFunc(pEngine, "Punch", FnPunch);
|
||||
|
|
Loading…
Reference in New Issue