mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:53:52 +00:00
Merge pull request #2410 from Capostrophic/repairedonme
"Handle" RepairedOnMe scripting function (feature #4255)
This commit is contained in:
commit
995516110e
5 changed files with 20 additions and 0 deletions
|
@ -106,6 +106,7 @@
|
||||||
Feature #3999: Shift + Double Click should maximize/restore menu size
|
Feature #3999: Shift + Double Click should maximize/restore menu size
|
||||||
Feature #4001: Toggle sneak controller shortcut
|
Feature #4001: Toggle sneak controller shortcut
|
||||||
Feature #4209: Editor: Faction rank sub-table
|
Feature #4209: Editor: Faction rank sub-table
|
||||||
|
Feature #4255: Handle broken RepairedOnMe script function
|
||||||
Feature #4316: Implement RaiseRank/LowerRank functions properly
|
Feature #4316: Implement RaiseRank/LowerRank functions properly
|
||||||
Feature #4360: Improve default controller bindings
|
Feature #4360: Improve default controller bindings
|
||||||
Feature #4673: Weapon sheathing
|
Feature #4673: Weapon sheathing
|
||||||
|
|
|
@ -459,5 +459,7 @@ op 0x2000308: ToggleNavMesh
|
||||||
op 0x2000309: ToggleActorsPaths
|
op 0x2000309: ToggleActorsPaths
|
||||||
op 0x200030a: SetNavMeshNumber
|
op 0x200030a: SetNavMeshNumber
|
||||||
op 0x200030b: Journal, explicit
|
op 0x200030b: Journal, explicit
|
||||||
|
op 0x200030c: RepairedOnMe
|
||||||
|
op 0x200030d: RepairedOnMe, explicit
|
||||||
|
|
||||||
opcodes 0x200030c-0x3ffffff unused
|
opcodes 0x200030c-0x3ffffff unused
|
||||||
|
|
|
@ -1398,6 +1398,18 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <class R>
|
||||||
|
class OpRepairedOnMe : public Interpreter::Opcode0
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
virtual void execute (Interpreter::Runtime& runtime)
|
||||||
|
{
|
||||||
|
// Broken in vanilla and deliberately no-op.
|
||||||
|
runtime.push(0);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void installOpcodes (Interpreter::Interpreter& interpreter)
|
void installOpcodes (Interpreter::Interpreter& interpreter)
|
||||||
{
|
{
|
||||||
interpreter.installSegment5 (Compiler::Misc::opcodeXBox, new OpXBox);
|
interpreter.installSegment5 (Compiler::Misc::opcodeXBox, new OpXBox);
|
||||||
|
@ -1501,6 +1513,8 @@ namespace MWScript
|
||||||
interpreter.installSegment5 (Compiler::Misc::opcodeToggleNavMesh, new OpToggleNavMesh);
|
interpreter.installSegment5 (Compiler::Misc::opcodeToggleNavMesh, new OpToggleNavMesh);
|
||||||
interpreter.installSegment5 (Compiler::Misc::opcodeToggleActorsPaths, new OpToggleActorsPaths);
|
interpreter.installSegment5 (Compiler::Misc::opcodeToggleActorsPaths, new OpToggleActorsPaths);
|
||||||
interpreter.installSegment5 (Compiler::Misc::opcodeSetNavMeshNumberToRender, new OpSetNavMeshNumberToRender);
|
interpreter.installSegment5 (Compiler::Misc::opcodeSetNavMeshNumberToRender, new OpSetNavMeshNumberToRender);
|
||||||
|
interpreter.installSegment5 (Compiler::Misc::opcodeRepairedOnMe, new OpRepairedOnMe<ImplicitRef>);
|
||||||
|
interpreter.installSegment5 (Compiler::Misc::opcodeRepairedOnMeExplicit, new OpRepairedOnMe<ExplicitRef>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -324,6 +324,7 @@ namespace Compiler
|
||||||
extensions.registerInstruction ("tap", "", opcodeToggleActorsPaths);
|
extensions.registerInstruction ("tap", "", opcodeToggleActorsPaths);
|
||||||
extensions.registerInstruction ("toggleactorspaths", "", opcodeToggleActorsPaths);
|
extensions.registerInstruction ("toggleactorspaths", "", opcodeToggleActorsPaths);
|
||||||
extensions.registerInstruction ("setnavmeshnumber", "l", opcodeSetNavMeshNumberToRender);
|
extensions.registerInstruction ("setnavmeshnumber", "l", opcodeSetNavMeshNumberToRender);
|
||||||
|
extensions.registerFunction ("repairedonme", 'l', "S", opcodeRepairedOnMe, opcodeRepairedOnMeExplicit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -300,6 +300,8 @@ namespace Compiler
|
||||||
const int opcodeToggleNavMesh = 0x2000308;
|
const int opcodeToggleNavMesh = 0x2000308;
|
||||||
const int opcodeToggleActorsPaths = 0x2000309;
|
const int opcodeToggleActorsPaths = 0x2000309;
|
||||||
const int opcodeSetNavMeshNumberToRender = 0x200030a;
|
const int opcodeSetNavMeshNumberToRender = 0x200030a;
|
||||||
|
const int opcodeRepairedOnMe = 0x200030c;
|
||||||
|
const int opcodeRepairedOnMeExplicit = 0x200030d;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Sky
|
namespace Sky
|
||||||
|
|
Loading…
Reference in a new issue