mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 10:23:52 +00:00
added dummy implementations for getPcInJail and getPcTraveling
This commit is contained in:
parent
914ab1b8ab
commit
32860a05e3
4 changed files with 32 additions and 2 deletions
|
@ -381,5 +381,7 @@ op 0x200023a: StartCombat
|
||||||
op 0x200023b: StartCombatExplicit
|
op 0x200023b: StartCombatExplicit
|
||||||
op 0x200023c: StopCombat
|
op 0x200023c: StopCombat
|
||||||
op 0x200023d: StopCombatExplicit
|
op 0x200023d: StopCombatExplicit
|
||||||
|
op 0x200023e: GetPcInJail
|
||||||
|
op 0x200023f: GetPcTraveling
|
||||||
|
|
||||||
opcodes 0x200023e-0x3ffffff unused
|
opcodes 0x2000240-0x3ffffff unused
|
||||||
|
|
|
@ -818,6 +818,28 @@ namespace MWScript
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class OpGetPcInJail : public Interpreter::Opcode0
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
virtual void execute (Interpreter::Runtime &runtime)
|
||||||
|
{
|
||||||
|
/// \todo implement jail check
|
||||||
|
runtime.push (0);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
class OpGetPcTraveling : public Interpreter::Opcode0
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
virtual void execute (Interpreter::Runtime &runtime)
|
||||||
|
{
|
||||||
|
/// \todo implement traveling check
|
||||||
|
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);
|
||||||
|
@ -888,6 +910,8 @@ namespace MWScript
|
||||||
interpreter.installSegment5 (Compiler::Misc::opcodeCastExplicit, new OpCast<ExplicitRef>);
|
interpreter.installSegment5 (Compiler::Misc::opcodeCastExplicit, new OpCast<ExplicitRef>);
|
||||||
interpreter.installSegment5 (Compiler::Misc::opcodeExplodeSpell, new OpExplodeSpell<ImplicitRef>);
|
interpreter.installSegment5 (Compiler::Misc::opcodeExplodeSpell, new OpExplodeSpell<ImplicitRef>);
|
||||||
interpreter.installSegment5 (Compiler::Misc::opcodeExplodeSpellExplicit, new OpExplodeSpell<ExplicitRef>);
|
interpreter.installSegment5 (Compiler::Misc::opcodeExplodeSpellExplicit, new OpExplodeSpell<ExplicitRef>);
|
||||||
|
interpreter.installSegment5 (Compiler::Misc::opcodeGetPcInJail, new OpGetPcInJail);
|
||||||
|
interpreter.installSegment5 (Compiler::Misc::opcodeGetPcTraveling, new OpGetPcTraveling);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,6 +276,8 @@ namespace Compiler
|
||||||
extensions.registerInstruction("togglegodmode", "", opcodeToggleGodMode);
|
extensions.registerInstruction("togglegodmode", "", opcodeToggleGodMode);
|
||||||
extensions.registerInstruction ("disablelevitation", "", opcodeDisableLevitation);
|
extensions.registerInstruction ("disablelevitation", "", opcodeDisableLevitation);
|
||||||
extensions.registerInstruction ("enablelevitation", "", opcodeEnableLevitation);
|
extensions.registerInstruction ("enablelevitation", "", opcodeEnableLevitation);
|
||||||
|
extensions.registerFunction ("getpcinjail", 'l', "", opcodeGetPcInJail);
|
||||||
|
extensions.registerFunction ("getpctraveling", 'l', "", opcodeGetPcTraveling);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -245,6 +245,8 @@ namespace Compiler
|
||||||
const int opcodeCastExplicit = 0x2000228;
|
const int opcodeCastExplicit = 0x2000228;
|
||||||
const int opcodeExplodeSpell = 0x2000229;
|
const int opcodeExplodeSpell = 0x2000229;
|
||||||
const int opcodeExplodeSpellExplicit = 0x200022a;
|
const int opcodeExplodeSpellExplicit = 0x200022a;
|
||||||
|
const int opcodeGetPcInJail = 0x200023e;
|
||||||
|
const int opcodeGetPcTraveling = 0x200023f;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Sky
|
namespace Sky
|
||||||
|
|
Loading…
Reference in a new issue