Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions nvse/nvse/CommandTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2281,6 +2281,11 @@ void CommandTable::AddCommandsV6()
ADD_CMD_RET(GetDoorSound, kRetnType_Form);

ADD_CMD(FireChallenge);

// 6.3.10c ? 6.3.11 ?
ADD_CMD(GetFootIK);
ADD_CMD(SetFootIK);

}

namespace PluginAPI
Expand Down
20 changes: 19 additions & 1 deletion nvse/nvse/Commands_Script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1822,4 +1822,22 @@ bool Cmd_MatchesAnyOf_Execute(COMMAND_ARGS)
return true;
}

#endif
bool Cmd_GetFootIK_Execute(COMMAND_ARGS)
{
uint8_t* FikFlagValue = (uint8_t*)0x01267C34;
*result = (*FikFlagValue != 0);
return true;
}

bool Cmd_SetFootIK_Execute(COMMAND_ARGS)
{
uint32_t bEnable = 0;
uint8_t* FikFlagValue = (uint8_t*)0x01267C34;

if (!ExtractArgs(EXTRACT_ARGS, &bEnable))
return false;

*FikFlagValue = (bEnable != 0);
return true;
}
#endif
6 changes: 6 additions & 0 deletions nvse/nvse/Commands_Script.h
Original file line number Diff line number Diff line change
Expand Up @@ -517,3 +517,9 @@ static ParamInfo kNVSEParams_MatchesAnyOf[] =

DEFINE_CMD_ALT_EXP(MatchesAnyOf, , "Returns true/false if the first value matches any of the other values.",
false, kNVSEParams_MatchesAnyOf);

DEFINE_CMD_ALIAS(GetFootIK, GetFIK, "Return the current Foot Inverse Kinematic value.",
false, NULL);

DEFINE_CMD_ALIAS(SetFootIK, SetFIK, "Set the Foot Inverse Kinematic value (0/1).",
false, kParams_OneInt);
3 changes: 3 additions & 0 deletions nvse/nvse/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,13 @@ void * PluginManager::QueryInterface(UInt32 id)
case kInterface_Logging:
result = (void*)&g_NVSELoggingInterface;
break;
#ifdef RUNTIME
case kInterface_PlayerControls:
result = (void*)&g_NVSETogglePlayerControlsInterface;
break;
#endif
default:

_WARNING("unknown QueryInterface %08X", id);
break;
}
Expand Down