/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Structures.ocd/Elevator.ocd/Case.ocd/ |
H A D | Script.c | 25 public func Ready(object clonk) in Ready() argument 37 if (clonk->GetY() < GetY()) in Ready() 46 public func CallCase(object clonk) in CallCase() argument 48 MoveTo(nil, nil, clonk, true); in CallCase() 56 var max_y = clonk->GetY() - GetY(); in DrawCustomInteractionSelector() 649 public func ControlDown(object clonk) in ControlDown() argument 664 public func ControlUp(object clonk) in ControlUp() argument 700 return partner->Call(call, clonk, ...); in Control2Master() 722 var clonk = GetCasePusher(); in DigOutObject() local 723 if (clonk) in DigOutObject() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Items.ocd/Tools.ocd/Ropeladder.ocd/LadderGrabber.ocd/ |
H A D | Script.c | 9 public func Interact(object clonk) in Interact() argument 18 public func IsInteractable(object clonk) in IsInteractable() argument 20 …return clonk->GetProcedure() == "WALK" || clonk->GetProcedure() == "SCALE" || clonk->GetProcedure(… in IsInteractable() 23 public func GetInteractionMetaInfo(object clonk) in GetInteractionMetaInfo() argument
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Items.ocd/Tools.ocd/Torch.ocd/ |
H A D | Script.c | 71 public func IsInteractable(object clonk) in IsInteractable() argument 76 public func GetInteractionMetaInfo(object clonk) in GetInteractionMetaInfo() argument 83 public func RejectUse(object clonk) in RejectUse() argument 85 return !clonk->HasHandAction(); in RejectUse() 88 public func ControlUse(object clonk) in ControlUse() argument 101 public func Interact(object clonk) in Interact() argument 105 clonk->Collect(this, false, nil, true); in Interact() 233 public func GetCarryMode(object clonk) in GetCarryMode() argument 235 if (clonk && !clonk->~HasHandAction()) in GetCarryMode() 247 public func GetCarryTransform(object clonk, int sec, bool nohand) in GetCarryTransform() argument
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Goals.ocd/KingOfTheHill.ocd/ |
H A D | Script.c | 139 func OnClonkDeath(object clonk, int killer) in OnClonkDeath() argument 141 _inherited(clonk, killer, ...); in OnClonkDeath() 142 if (clonk->GetAlive()) return; in OnClonkDeath() 144 if (GetPlayerName(clonk->GetOwner())) in OnClonkDeath() 145 ++player_deaths[clonk->GetOwner()]; in OnClonkDeath() 147 if(GetPlayerName(clonk->GetOwner())) in OnClonkDeath() 151 if (location->GetKing() == clonk) in OnClonkDeath() 153 DoPoint(clonk->GetOwner(),-1); in OnClonkDeath() 159 player_suicides[clonk->GetOwner()]++; in OnClonkDeath() 162 DoPoint(clonk->GetOwner(),-1); in OnClonkDeath() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Libraries.ocd/Plants.ocd/Seed.ocd/ |
H A D | Script.c | 229 public func RejectUse(object clonk) in RejectUse() argument 231 return _inherited(clonk) || (lib_seed_can_plant_manually && !clonk->IsWalking()); in RejectUse() 234 public func ControlUse(object clonk, int x, int y, bool box) in ControlUse() argument 236 var used = _inherited(clonk, x, y, box, ...); in ControlUse() 239 return PlantManually(clonk); in ControlUse() 245 private func PlantManually(object clonk) in PlantManually() argument 250 …return CustomMessage(Format("$TxtBadGround$", GetName()), clonk, clonk->GetController(), 0, 0, 0xf… in PlantManually() 256 …return CustomMessage(Format("$TxtBadGround$", GetName()), clonk, clonk->GetController(), 0, 0, 0xf… in PlantManually() 260 clonk->DoKneel(); in PlantManually()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/HUD.ocd/Controller.ocd/ControllerInventoryBar.ocd/ |
H A D | Script.c | 117 public func OnCrewDisabled(object clonk) in OnCrewDisabled() argument 121 return _inherited(clonk, ...); in OnCrewDisabled() 124 public func OnCrewEnabled(object clonk) in OnCrewEnabled() argument 128 return _inherited(clonk, ...); in OnCrewEnabled() 135 return _inherited(clonk, deselect, ...); in OnCrewSelection() 165 var clonk = GetCursor(GetOwner()); in UpdateInventory() local 166 if(!clonk || !clonk->GetCrewEnabled()) in UpdateInventory() 184 UpdateInventoryButtons(clonk); in UpdateInventory() 187 var hand_item_pos = clonk->~GetHandItemPos(0); in UpdateInventory() 192 var item = clonk->GetItem(slot_info.slot); in UpdateInventory() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Parkour.ocf/Boomrace.ocs/System.ocg/ |
H A D | Boompack.c | 5 func Launch(int angle, object clonk) in Launch() argument 7 if (clonk) in Launch() 8 clonk->AddEffect("RespawnBoom", clonk, 100, 90, nil, nil); in Launch() 9 return _inherited(angle, clonk); in Launch()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Tutorials.ocf/Tutorial04.ocs/ |
H A D | Script.c | 222 var clonk = GetCrew(plr); in InitializePlayer() local 223 clonk->SetPosition(480, 366); in InitializePlayer() 224 clonk->CreateContents(Shovel); in InitializePlayer() 309 if (clonk && FindObject(Find_ID(Bucket), Find_Container(clonk))) in FxTutorialGotBucketTimer() 323 if (!clonk) in FxTutorialFilledBucketTimer() 340 if (clonk && FindObject(Find_ID(Barrel), Find_Container(clonk))) in FxTutorialGotBarrelTimer() 371 if (!clonk) in FxTutorialGotLoamTimer() 536 var clonk = CreateObject(Clonk, 0, 0, plr); in FxClonkRestoreStop() local 537 clonk->GrabObjectInfo(target); in FxClonkRestoreStop() 539 SetCursor(plr, clonk); in FxClonkRestoreStop() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Tutorials.ocf/Tutorial03.ocs/ |
H A D | Script.c | 253 var clonk = GetCrew(plr); in InitializePlayer() local 254 clonk->SetPosition(48, 374); in InitializePlayer() 255 clonk->CreateContents(Shovel); in InitializePlayer() 370 if (clonk && FindObject(Find_ID(Dynamite), Find_Container(clonk))) in FxTutorialObtainedDynamiteTimer() 398 var has_three_rocks = clonk && ObjectCount(Find_ID(Rock), Find_Container(clonk)) >= 3; in FxTutorialObtainedRockTimer() 518 …if (FindObject(Find_ID(Ore), Find_Container(clonk)) && FindObject(Find_ID(Coal), Find_Container(cl… in FxTutorialHasOreCoalTimer() 563 …(), Find_OCF(OCF_InFree), Find_Distance(60, clonk->GetX(), clonk->GetY()), Sort_Distance(clonk->Ge… in OnGuideMessageShown() 640 var clonk = CreateObject(Clonk, 0, 0, plr); in FxClonkRestoreStop() local 641 clonk->GrabObjectInfo(target); in FxClonkRestoreStop() 643 SetCursor(plr, clonk); in FxClonkRestoreStop() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Vegetation.ocd/Vine.ocd/VineSegment.ocd/ |
H A D | Script.c | 47 public func OnLadderGrab(object clonk) in OnLadderGrab() argument 50 master->OnLadderGrab(clonk, this, index); in OnLadderGrab() 54 public func OnLadderClimb(object clonk) in OnLadderClimb() argument 57 master->OnLadderClimb(clonk, this, index); in OnLadderClimb() 61 public func OnLadderReleased(object clonk) in OnLadderReleased() argument 64 master->OnLadderReleased(clonk, this, index); in OnLadderReleased()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Arena.ocf/DarkMine.ocs/ |
H A D | Script.c | 83 public func OnClonkLeftRelaunch(object clonk, int plr) in OnClonkLeftRelaunch() argument 86 var cave = [clonk->GetX(), clonk->GetY()]; in OnClonkLeftRelaunch() 91 clonk->CreateContents(Shovel); in OnClonkLeftRelaunch() 92 clonk->CreateContents(Pickaxe); in OnClonkLeftRelaunch() 96 clonk->CreateContents(Torch); in OnClonkLeftRelaunch() 97 clonk->CreateContents(Firestone, 2); in OnClonkLeftRelaunch() 101 clonk->CreateContents(Lantern); in OnClonkLeftRelaunch() 102 clonk->CreateContents(Javelin); in OnClonkLeftRelaunch() 103 clonk->CreateContents(IronBomb); in OnClonkLeftRelaunch() 144 for (var clonk in FindObjects(Find_OCF(OCF_CrewMember), Find_Not(Find_Owner(plr)))) in FindStartCave() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Parkour.ocf/Boomshire.ocs/System.ocg/ |
H A D | Chest.c | 20 public func GetInteractionMetaInfo(object clonk) in GetInteractionMetaInfo() argument 25 public func IsInteractable(object clonk) in IsInteractable() argument 30 public func Interact(object clonk) in Interact() argument 32 if (!is_open) return Open(clonk); in Interact() 35 public func Open(clonk) in Open() argument 37 GameCall("OnChestOpened", clonk); in Open()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Defense.ocf/Windmill.ocs/System.ocg/ |
H A D | Bow.c | 5 public func FinishedAiming(object clonk, int angle) in FinishedAiming() argument 7 clonk->DetachMesh(iArrowMesh); in FinishedAiming() 16 arrow->Launch(angle,shooting_strength,clonk); in FinishedAiming() 23 clonk->PlayAnimation("Close1Hand", 11, Anim_Const(0)); in FinishedAiming() 24 clonk->StartShoot(this); in FinishedAiming()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Items.ocd/Tools.ocd/Ropebridge.ocd/BridgePost.ocd/ |
H A D | Script.c | 62 public func Interact(object clonk) in Interact() argument 75 clonk->CreateObjectAbove(Ropebridge, 0, clonk->GetBottom()); in Interact() 79 public func IsInteractable(object clonk) in IsInteractable() argument 81 return !is_static && !!double && clonk->IsWalking(); in IsInteractable() 84 public func GetInteractionMetaInfo(object clonk) in GetInteractionMetaInfo() argument
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Items.ocd/Weapons.ocd/Helmet.ocd/ |
H A D | Script.c | 19 public func ControlUse(object clonk) in ControlUse() argument 24 PutOn(clonk); in ControlUse() 63 public func GetCarryMode(object clonk, bool secondary) in GetCarryMode() argument 70 public func GetCarryPhase(object clonk) in GetCarryPhase() argument 75 public func GetCarryBone(object clonk, bool secondary) in GetCarryBone() argument 80 public func GetCarryTransform(object clonk, bool secondary, bool no_hand, bool on_back) in GetCarryTransform() argument
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Arena.ocf/HotIce.ocs/System.ocg/ |
H A D | MiamiWindBag.c | 3 public func FxIntBurstWindStart(object target, proplist effect, int temp, object clonk, int x, int … in FxIntBurstWindStart() argument 5 if (g_theme != MiamiIce) return inherited(target, effect, temp, clonk, x, y, ...); in FxIntBurstWindStart() 10 effect.clonk = clonk; in FxIntBurstWindStart() 11 effect.x = clonk->GetX(); in FxIntBurstWindStart() 12 effect.y = clonk->GetY(); in FxIntBurstWindStart()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Libraries.ocd/Structures.ocd/Flag.ocd/Ownable.ocd/ |
H A D | Script.c | 36 public func IsInteractable(object clonk) in IsInteractable() argument 38 if (Hostile(GetOwner(), clonk->GetOwner())) in IsInteractable() 40 return _inherited(clonk, ...); in IsInteractable() 44 public func RejectInteractionMenu(object clonk) in RejectInteractionMenu() argument 46 if (Hostile(GetOwner(), clonk->GetOwner())) in RejectInteractionMenu() 48 return _inherited(clonk, ...); in RejectInteractionMenu()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Tutorials.ocf/Sandbox.ocs/DevilsHand.ocd/ |
H A D | Script.c | 12 public func ControlUse(object clonk, int x, int y) in ControlUse() argument 14 …var remobj = clonk->FindObject(Find_Distance(5, x, y), Find_NoContainer(), Find_Not(Find_ID(Clonk)… in ControlUse() 21 Sound("UI::Click", true, nil, clonk->GetOwner()); in ControlUse() 25 public func QueryRejectDeparture(object clonk) in QueryRejectDeparture() argument 30 public func Departure(object clonk) in Departure() argument
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Tutorials.ocf/Tutorial.ocd/System.ocg/ |
H A D | HideGuideOnDialogue.c | 5 public func Interact(object clonk) in Interact() argument 8 return inherited(clonk, ...); in Interact() 9 var guide = FindObject(Find_ID(TutorialGuide), Find_Owner(clonk->GetOwner())); in Interact() 11 return inherited(clonk, ...); in Interact() 28 return inherited(clonk, ...); in Interact()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Decoration.ocd/Room.ocd/Keypad.ocd/ |
H A D | Script.c | 49 public func GiveAccess(object clonk) in GiveAccess() argument 51 SetSwitchState(true, clonk); in GiveAccess() 58 GiveAccess(clonk); in OnCorrectCodeEntered() 154 public func IsInteractable(object clonk) in IsInteractable() argument 156 return clonk->GetProcedure() == "WALK" && (!clonk->GetMenu() || clonk->GetMenu().ID != menu_id); in IsInteractable() 159 public func Interact(object clonk) in Interact() argument 162 OpenKeypadMenu(clonk); in Interact() 169 public func OpenKeypadMenu(object clonk) in OpenKeypadMenu() argument 176 if (clonk->GetMenu() && clonk->GetMenu().ID == menu_id) in OpenKeypadMenu() 183 menu_controller = clonk; in OpenKeypadMenu() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Structures.ocd/Ladder.ocd/LadderPart.ocd/ |
H A D | Script.c | 45 public func OnLadderGrab(object clonk) in OnLadderGrab() argument 48 master->OnLadderGrab(clonk, this, index); in OnLadderGrab() 52 public func OnLadderClimb(object clonk) in OnLadderClimb() argument 55 master->OnLadderClimb(clonk, this, index); in OnLadderClimb() 59 public func OnLadderReleased(object clonk) in OnLadderReleased() argument 62 master->OnLadderReleased(clonk, this, index); in OnLadderReleased()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Tutorials.ocf/PlayGround.ocs/ |
H A D | Script.c | 94 var clonk = GetCrew(plr, 0); in InitializePlayer() local 95 clonk->SetPosition(624, 526); in InitializePlayer() 96 var effect = AddEffect("ClonkRestore", clonk, 100, 10); in InitializePlayer() 115 AddEffect("RemoveGuide", clonk, 100, 36 * 10); in InitializePlayer() 203 var clonk = CreateObject(Clonk, 0, 0, plr); in FxClonkRestoreStop() local 204 clonk->GrabObjectInfo(target); in FxClonkRestoreStop() 205 SetCursor(plr, clonk); in FxClonkRestoreStop() 206 clonk->DoEnergy(100000); in FxClonkRestoreStop() 207 restorer->SetRestoreObject(clonk, nil, to_x, to_y, 0, "ClonkRestore"); in FxClonkRestoreStop()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Arena.ocf/ScorchedGardens.ocs/ |
H A D | Script.c | 89 public func OnClonkLeftRelaunch(object clonk) in OnClonkLeftRelaunch() argument 91 …clonk->CreateParticle("Fire", 0, 0, PV_Random(-20, 20), PV_Random(-40, 5), PV_Random(20, 90), Part… in OnClonkLeftRelaunch() 92 clonk->SetYDir(-5); in OnClonkLeftRelaunch() 93 clonk->CreateContents(TeleGlove); in OnClonkLeftRelaunch() 98 public func OnClonkDeath(object clonk) in OnClonkDeath() argument 100 while (clonk->Contents()) in OnClonkDeath() 101 clonk->Contents()->RemoveObject(); in OnClonkDeath()
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Libraries.ocd/Constructor.ocd/ConstructionPreviewer.ocd/ |
H A D | Script.c | 13 local extra_overlay, dimension_x, dimension_y, clonk, structure, direction, stick_to, blocked; variable 35 clonk = constructing_clonk; in Set() 114 var clonk_width = clonk->GetObjWidth(); in Reposition() 115 var clonk_height = clonk->GetObjHeight(); in Reposition() 129 var find_rect = Find_AtPoint(clonk->GetX() - GetX() + x, clonk->GetY() - GetY() + y); in Reposition() 134 Find_Layer(clonk->GetObjectLayer()), in Reposition() 135 Find_Allied(clonk->GetOwner()), in Reposition() 144 var other_offset_x = clonk->GetX() + x - other->GetX(); in Reposition() 145 var other_offset_y = clonk->GetY() + y - other->GetY(); in Reposition() 226 x = clonk->GetX() + x; in Reposition() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Arena.ocf/Hideout.ocs/ |
H A D | Script.c | 106 public func OnClonkLeftRelaunch(object clonk) in OnClonkLeftRelaunch() argument 109 var x = clonk->GetX(); in OnClonkLeftRelaunch() 110 var y = clonk->GetY(); in OnClonkLeftRelaunch() 111 clonk->SetPosition(x + RandomX(-20, 20), y + RandomX(-20, 10)); in OnClonkLeftRelaunch() 112 if (clonk->Stuck()) clonk->SetPosition(x, y); in OnClonkLeftRelaunch() 125 if (GetPlayerTeam(clonk->GetOwner()) == 1) in OnClonkLeftRelaunch() 140 clonk->CreateParticle("StarSpark", 0, 0, 0, 0, 10, flash, 1); in OnClonkLeftRelaunch() 268 func OnClonkDeath(object clonk, int killed_by) in OnClonkDeath() argument 271 if(Hostile(clonk->GetOwner(), killed_by)) in OnClonkDeath() 273 var gem=clonk->CreateObjectAbove(LifeGem, 0, 0, killed_by); in OnClonkDeath() [all …]
|