|
|
|
@ -589,6 +589,16 @@ namespace MWScript
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class OpGetWindSpeed : public Interpreter::Opcode0
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
virtual void execute (Interpreter::Runtime& runtime)
|
|
|
|
|
{
|
|
|
|
|
runtime.push(MWBase::Environment::get().getWorld()->getWindSpeed());
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const int opcodeXBox = 0x200000c;
|
|
|
|
|
const int opcodeOnActivate = 0x200000d;
|
|
|
|
|
const int opcodeActivate = 0x2000075;
|
|
|
|
@ -636,6 +646,7 @@ namespace MWScript
|
|
|
|
|
const int opcodeGetStandingPcExplicit = 0x200020d;
|
|
|
|
|
const int opcodeGetStandingActor = 0x200020e;
|
|
|
|
|
const int opcodeGetStandingActorExplicit = 0x200020f;
|
|
|
|
|
const int opcodeGetWindSpeed = 0x2000212;
|
|
|
|
|
|
|
|
|
|
const int opcodePlayBink = 0x20001f7;
|
|
|
|
|
|
|
|
|
@ -680,6 +691,7 @@ namespace MWScript
|
|
|
|
|
extensions.registerInstruction ("fall", "", opcodeFall, opcodeFallExplicit);
|
|
|
|
|
extensions.registerFunction ("getstandingpc", 'l', "", opcodeGetStandingPc, opcodeGetStandingPcExplicit);
|
|
|
|
|
extensions.registerFunction ("getstandingactor", 'l', "", opcodeGetStandingActor, opcodeGetStandingActorExplicit);
|
|
|
|
|
extensions.registerFunction ("getwindspeed", 'f', "", opcodeGetWindSpeed);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void installOpcodes (Interpreter::Interpreter& interpreter)
|
|
|
|
@ -732,6 +744,7 @@ namespace MWScript
|
|
|
|
|
interpreter.installSegment5 (opcodeGetStandingPcExplicit, new OpGetStandingPc<ExplicitRef>);
|
|
|
|
|
interpreter.installSegment5 (opcodeGetStandingActor, new OpGetStandingActor<ImplicitRef>);
|
|
|
|
|
interpreter.installSegment5 (opcodeGetStandingActorExplicit, new OpGetStandingActor<ExplicitRef>);
|
|
|
|
|
interpreter.installSegment5 (opcodeGetWindSpeed, new OpGetWindSpeed);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|