mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:06:43 +00:00
Add dummy Face implementation for now (Bug #1541)
This commit is contained in:
parent
36132e054a
commit
b52977e44c
4 changed files with 19 additions and 1 deletions
|
@ -477,6 +477,16 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <class R>
|
||||||
|
class OpFace : public Interpreter::Opcode0
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual void execute(Interpreter::Runtime& runtime)
|
||||||
|
{
|
||||||
|
/// \todo implement
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
void installOpcodes (Interpreter::Interpreter& interpreter)
|
void installOpcodes (Interpreter::Interpreter& interpreter)
|
||||||
{
|
{
|
||||||
interpreter.installSegment3 (Compiler::Ai::opcodeAIActivate, new OpAiActivate<ImplicitRef>);
|
interpreter.installSegment3 (Compiler::Ai::opcodeAIActivate, new OpAiActivate<ImplicitRef>);
|
||||||
|
@ -538,6 +548,9 @@ namespace MWScript
|
||||||
interpreter.installSegment5 (Compiler::Ai::opcodeGetFleeExplicit, new OpGetAiSetting<ExplicitRef>(2));
|
interpreter.installSegment5 (Compiler::Ai::opcodeGetFleeExplicit, new OpGetAiSetting<ExplicitRef>(2));
|
||||||
interpreter.installSegment5 (Compiler::Ai::opcodeGetAlarm, new OpGetAiSetting<ImplicitRef>(3));
|
interpreter.installSegment5 (Compiler::Ai::opcodeGetAlarm, new OpGetAiSetting<ImplicitRef>(3));
|
||||||
interpreter.installSegment5 (Compiler::Ai::opcodeGetAlarmExplicit, new OpGetAiSetting<ExplicitRef>(3));
|
interpreter.installSegment5 (Compiler::Ai::opcodeGetAlarmExplicit, new OpGetAiSetting<ExplicitRef>(3));
|
||||||
|
|
||||||
|
interpreter.installSegment5 (Compiler::Ai::opcodeFace, new OpFace<ImplicitRef>);
|
||||||
|
interpreter.installSegment5 (Compiler::Ai::opcodeFaceExplicit, new OpFace<ExplicitRef>);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -401,5 +401,7 @@ op 0x2000248: BetaComment, explicit
|
||||||
op 0x2000249: OnMurder
|
op 0x2000249: OnMurder
|
||||||
op 0x200024a: OnMurder, explicit
|
op 0x200024a: OnMurder, explicit
|
||||||
op 0x200024b: ToggleMenus
|
op 0x200024b: ToggleMenus
|
||||||
|
op 0x200024c: Face
|
||||||
|
op 0x200024d: Face, explicit
|
||||||
|
|
||||||
opcodes 0x200024c-0x3ffffff unused
|
opcodes 0x200024e-0x3ffffff unused
|
||||||
|
|
|
@ -70,6 +70,7 @@ namespace Compiler
|
||||||
extensions.registerFunction ("getlineofsight", 'l', "c", opcodeGetLineOfSight, opcodeGetLineOfSightExplicit);
|
extensions.registerFunction ("getlineofsight", 'l', "c", opcodeGetLineOfSight, opcodeGetLineOfSightExplicit);
|
||||||
extensions.registerFunction ("getlos", 'l', "c", opcodeGetLineOfSight, opcodeGetLineOfSightExplicit);
|
extensions.registerFunction ("getlos", 'l', "c", opcodeGetLineOfSight, opcodeGetLineOfSightExplicit);
|
||||||
extensions.registerFunction("gettarget", 'l', "c", opcodeGetTarget, opcodeGetTargetExplicit);
|
extensions.registerFunction("gettarget", 'l', "c", opcodeGetTarget, opcodeGetTargetExplicit);
|
||||||
|
extensions.registerInstruction("face", "llX", opcodeFace, opcodeFaceExplicit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -59,6 +59,8 @@ namespace Compiler
|
||||||
const int opcodeStartCombatExplicit = 0x200023b;
|
const int opcodeStartCombatExplicit = 0x200023b;
|
||||||
const int opcodeStopCombat = 0x200023c;
|
const int opcodeStopCombat = 0x200023c;
|
||||||
const int opcodeStopCombatExplicit = 0x200023d;
|
const int opcodeStopCombatExplicit = 0x200023d;
|
||||||
|
const int opcodeFace = 0x200024c;
|
||||||
|
const int opcodeFaceExplicit = 0x200024d;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Animation
|
namespace Animation
|
||||||
|
|
Loading…
Reference in a new issue