// internal commands added at the end void CommandTable::AddDebugCommands() { ADD_CMD(tcmd); ADD_CMD(tcmd2); ADD_CMD(tcmd3); ADD_CMD(DumpDocs); }
// internal commands added at the end void CommandTable::AddDebugCommands() { ADD_CMD_RET(CloneForm, kRetnType_Form); ADD_CMD_RET(PlaceAtMeAndKeep, kRetnType_Form); ADD_CMD_RET(GetMe, kRetnType_Form); // Tested, not suitable for publishing ADD_CMD(tcmd); ADD_CMD(tcmd2); ADD_CMD(tcmd3); ADD_CMD(DumpDocs); }
static void (*find_procedure(char * cmd))() { ADD_CMD(echo); ADD_CMD(dir); ADD_CMD(cd); ADD_CMD(cat); ADD_CMD(print); ADD_CMD(ps); ADD_CMD(halt); return 0; }
void CommandTable::AddCommandsV4() { RecordReleaseVersion(); // 4.1 beta 01 - submission hlp ADD_CMD(SetEyes); ADD_CMD_RET(GetEyes, kRetnType_Form); ADD_CMD(SetHair); ADD_CMD_RET(GetHair, kRetnType_Form); ADD_CMD(GetHairLength); ADD_CMD(SetHairLength); ADD_CMD(GetHairColor); ADD_CMD(SetHairColor); ADD_CMD(GetNPCWeight); ADD_CMD(SetNPCWeight); ADD_CMD(GetNPCHeight); ADD_CMD(SetNPCHeight); ADD_CMD(Update3D); #ifdef RUNTIME // 4.1 beta 01 - submission hlp GetByName("ModFactionRank")->execute = &Cmd_ModFactionRank_Execute; #endif // 4.1 beta 01 - subset of CommandScripts from OBSE 21 beta 4 ADD_CMD(GetVariable); ADD_CMD(HasVariable); ADD_CMD(GetRefVariable); ADD_CMD_RET(GetArrayVariable, kRetnType_Array); // corrected in version 4.5 Beta 7 ADD_CMD(CompareScripts); ADD_CMD(ResetAllVariables); ADD_CMD(GetNumExplicitRefs); ADD_CMD_RET(GetNthExplicitRef, kRetnType_Form); ADD_CMD(RunScript); ADD_CMD_RET(GetCurrentScript, kRetnType_Form); ADD_CMD_RET(GetCallingScript, kRetnType_Form); // 4.1 beta 01 - general merged into scripting ADD_CMD(Let); ADD_CMD(eval); ADD_CMD(While); ADD_CMD(Loop); ADD_CMD(ForEach); ADD_CMD(Continue); ADD_CMD(Break); ADD_CMD(ToString); ADD_CMD(Print); ADD_CMD(testexpr); ADD_CMD_RET(TypeOf, kRetnType_String); ADD_CMD(Function); ADD_CMD_RET(Call, kRetnType_Ambiguous); ADD_CMD(SetFunctionValue); ADD_CMD_RET(GetUserTime, kRetnType_Array); // corrected in version 4.2 Beta 4 alpha 1 ADD_CMD(GetModLocalData); ADD_CMD_RET(SetModLocalData, kRetnType_Ambiguous); // corrected in version 4.5 Beta 6 ADD_CMD(ModLocalDataExists); ADD_CMD(RemoveModLocalData); ADD_CMD_RET(GetAllModLocalData, kRetnType_Array); // corrected in version 4.5 Beta 6 ADD_CMD(Internal_PushExecutionContext); ADD_CMD(Internal_PopExecutionContext); // 4.1 beta 01 - Arrays (except "NI" stuff) ADD_CMD_RET(ar_Construct, kRetnType_Array); ADD_CMD(ar_Size); ADD_CMD(ar_Dump); ADD_CMD(ar_DumpID); ADD_CMD(ar_Erase); ADD_CMD_RET(ar_Sort, kRetnType_Array); ADD_CMD_RET(ar_CustomSort, kRetnType_Array); ADD_CMD_RET(ar_SortAlpha, kRetnType_Array); ADD_CMD_RET(ar_Find, kRetnType_ArrayIndex); ADD_CMD_RET(ar_First, kRetnType_ArrayIndex); ADD_CMD_RET(ar_Last, kRetnType_ArrayIndex); ADD_CMD_RET(ar_Next, kRetnType_ArrayIndex); ADD_CMD_RET(ar_Prev, kRetnType_ArrayIndex); ADD_CMD_RET(ar_Keys, kRetnType_Array); ADD_CMD(ar_HasKey); ADD_CMD_RET(ar_BadStringIndex, kRetnType_String); ADD_CMD(ar_BadNumericIndex); ADD_CMD_RET(ar_Copy, kRetnType_Array); ADD_CMD_RET(ar_DeepCopy, kRetnType_Array); ADD_CMD_RET(ar_Null, kRetnType_Array); ADD_CMD(ar_Resize); ADD_CMD(ar_Insert); ADD_CMD(ar_InsertRange); ADD_CMD(ar_Append); ADD_CMD_RET(ar_List, kRetnType_Array); ADD_CMD_RET(ar_Map, kRetnType_Array); ADD_CMD_RET(ar_Range, kRetnType_Array); // 4.1 beta 01 - StringVar ADD_CMD(sv_Destruct); ADD_CMD_RET(sv_Construct, kRetnType_String); ADD_CMD(sv_Set); ADD_CMD(sv_Compare); ADD_CMD(sv_Length); ADD_CMD(sv_Erase); ADD_CMD_RET(sv_SubString, kRetnType_String); ADD_CMD(sv_ToNumeric); ADD_CMD(sv_Insert); ADD_CMD(sv_Count); ADD_CMD(sv_Find); ADD_CMD(sv_Replace); ADD_CMD(sv_GetChar); ADD_CMD_RET(sv_Split, kRetnType_Array); ADD_CMD_RET(sv_Percentify, kRetnType_String); ADD_CMD_RET(sv_ToUpper, kRetnType_String); ADD_CMD_RET(sv_ToLower, kRetnType_String); ADD_CMD(IsLetter); ADD_CMD(IsDigit); ADD_CMD(IsPrintable); ADD_CMD(IsPunctuation); ADD_CMD(IsUpperCase); ADD_CMD(CharToAscii); ADD_CMD(ToUpper); ADD_CMD(ToLower); ADD_CMD_RET(AsciiToChar, kRetnType_String); ADD_CMD_RET(NumToHex, kRetnType_String); ADD_CMD(ToNumber); ADD_CMD_RET(GetNthModName, kRetnType_String); ADD_CMD_RET(GetName, kRetnType_String); ADD_CMD_RET(GetKeyName, kRetnType_String); ADD_CMD_RET(GetFormIDString, kRetnType_String); ADD_CMD_RET(GetRawFormIDString, kRetnType_String); ADD_CMD_RET(GetFalloutDirectory, kRetnType_String); ADD_CMD_RET(ActorValueToString, kRetnType_String); ADD_CMD_RET(ActorValueToStringC, kRetnType_String); // 4 beta 01 - using strings with forms ADD_CMD_RET(GetModelPath, kRetnType_String); ADD_CMD_RET(GetIconPath, kRetnType_String); ADD_CMD_RET(GetBipedModelPath, kRetnType_String); ADD_CMD_RET(GetBipedIconPath, kRetnType_String); ADD_CMD_RET(GetTexturePath, kRetnType_String); ADD_CMD(SetModelPathEX); ADD_CMD(SetIconPathEX); ADD_CMD(SetBipedIconPathEX); ADD_CMD(SetBipedModelPathEX); ADD_CMD(SetTexturePath); ADD_CMD_RET(GetNthFactionRankName, kRetnType_String); ADD_CMD(SetNthFactionRankNameEX); ADD_CMD_RET(GetStringGameSetting, kRetnType_String); ADD_CMD(SetStringGameSettingEX); // 4.2 beta 02 ADD_CMD_RET(GetRace, kRetnType_Form); ADD_CMD_RET(GetRaceName, kRetnType_String); ImportConsoleCommand("SCOF"); ADD_CMD(PickOneOf); // 4.2 beta 03 alpha 5 ADD_CMD(IsPlayerSwimming); ADD_CMD(GetTFC); // 4.2 beta 03 alpha 6 - Algohol OBSE plugin by emtim (with permission) // Vector3 commands ADD_CMD( V3Length ); ADD_CMD( V3Normalize ); //ADD_CMD( V3Dotproduct ); ADD_CMD( V3Crossproduct ); // Quaternion commands ADD_CMD( QFromEuler ); ADD_CMD( QFromAxisAngle ); ADD_CMD( QNormalize ); ADD_CMD( QMultQuatQuat ); ADD_CMD( QMultQuatVector3 ); ADD_CMD( QToEuler ); ADD_CMD( QInterpolate ); // 4.2 beta 04 alpha 1 ADD_CMD(IsPlayable); ADD_CMD(SetIsPlayable); ADD_CMD(GetEquipmentSlotsMask); ADD_CMD(SetEquipmentSlotsMask); ImportConsoleCommand("SQV"); // requires ConsoleEcho to be turned on! ADD_CMD(GetConsoleEcho); ADD_CMD(SetConsoleEcho); // 4.2 beta 04 alpha 5 ADD_CMD_RET(GetScopeModelPath, kRetnType_String); ADD_CMD(SetScopeModelPath); // 4.3 and 4.4 skîpped // 4.5 beta 01 none added // 4.5 beta 02 ADD_CMD(EndVATScam); // Provided by Queued // 4.5 beta 06 ADD_CMD(EquipItem2); // EquipItem2 is broken in the sense that the item is equipped after equipitem returns so which item is equipped is not detected :( ADD_CMD(EquipMe); ADD_CMD(UnequipMe); ADD_CMD(IsEquipped); ADD_CMD_RET(GetInvRefsForItem, kRetnType_Array); ADD_CMD(SetHotkeyItem); ADD_CMD(ClearHotkey); ADD_CMD(PrintDebug); ADD_CMD(SetVariable); ADD_CMD(SetRefVariable); ImportConsoleCommand("ShowVars"); // requires ConsoleEcho to be turned on! ADD_CMD_RET(GetStringIniSetting, kRetnType_String); ADD_CMD(SetStringIniSetting); // 4.5 beta 07 ADD_CMD(GetPerkRank); // Tested ADD_CMD(GetAltPerkRank); // Tested ADD_CMD(GetEquipmentBipedMask); // Tested ADD_CMD(SetEquipmentBipedMask); // Tested ADD_CMD_RET(GetRefs, kRetnType_Array); // Tested ADD_CMD_RET(GetRefsInCell, kRetnType_Array); // Tested ADD_CMD(GetBaseNumFactions); // Tested ADD_CMD_RET(GetBaseNthFaction, kRetnType_Form); // Tested ADD_CMD(GetBaseNthRank); // Tested ADD_CMD(GetNumRanks); // Tested ADD_CMD_RET(GetRaceHairs, kRetnType_Array); // Tested ADD_CMD_RET(GetRaceEyes, kRetnType_Array); // Tested ADD_CMD_RET(GetBaseSpellListSpells, kRetnType_Array); // Tested ADD_CMD_RET(GetBaseSpellListLevSpells, kRetnType_Array); // Tested but no data ADD_CMD_RET(GetBasePackages, kRetnType_Array); // Tested ADD_CMD_RET(GetBaseFactions, kRetnType_Array); // Tested ADD_CMD_RET(GetBaseRanks, kRetnType_Array); // Tested ADD_CMD_RET(GetActiveFactions, kRetnType_Array); // Tested ADD_CMD_RET(GetActiveRanks, kRetnType_Array); // Tested ADD_CMD_RET(GetFactionRankNames, kRetnType_Array); // Tested ADD_CMD_RET(GetFactionRankFemaleNames, kRetnType_Array); // Tested ADD_CMD_RET(GetHeadParts, kRetnType_Array); // Tested ADD_CMD_RET(GetLevCreatureRefs, kRetnType_Array); // Tested ADD_CMD_RET(GetLevCharacterRefs, kRetnType_Array); // Tested ADD_CMD_RET(GetListForms, kRetnType_Array); // Tested ADD_CMD(GenericAddForm); // Tested ADD_CMD_RET(GenericReplaceForm, kRetnType_Form); // Tested ADD_CMD_RET(GenericDeleteForm, kRetnType_Form); // Tested ADD_CMD(IsPluginInstalled); // Tested ADD_CMD(GetPluginVersion); // Tested ADD_CMD_RET(GenericGetForm, kRetnType_Form); // Tested ImportConsoleCommand("INV"); // Tested ADD_CMD_RET(GetNthDefaultForm, kRetnType_Form); // Tested ADD_CMD(SetNthDefaultForm); // Tested ADD_CMD_RET(GetDefaultForms, kRetnType_Array); // Tested // 4.5 beta 08 private. Fix only // 4.6 beta 01 ADD_CMD(GetGridsToLoad); ADD_CMD(OutputLocalMapPicturesOverride); ADD_CMD(SetOutputLocalMapPicturesGrids); // Events ADD_CMD(SetEventHandler); ADD_CMD(RemoveEventHandler); ADD_CMD_RET(GetCurrentEventName, kRetnType_String); ADD_CMD(DispatchEvent); ADD_CMD(GetInGrid); ADD_CMD(GetInGridInCell); // Name is bad, but in line with others // 4.6 beta 02 : Fixes only // 4.6 beta 03 ADD_CMD(AddSpellNS); ADD_CMD(GetFlagsLow); ADD_CMD(SetFlagsLow); ADD_CMD(GetFlagsHigh); ADD_CMD(SetFlagsHigh); ADD_CMD(HasConsoleOutputFilename); ADD_CMD_RET(GetConsoleOutputFilename, kRetnType_String); ADD_CMD(PrintF); ADD_CMD(PrintDebugF); ImportConsoleCommand("TFIK"); ADD_CMD(IsLoadDoor); ADD_CMD(GetDoorTeleportX); ADD_CMD(GetDoorTeleportY); ADD_CMD(GetDoorTeleportZ); ADD_CMD(GetDoorTeleportRot); ADD_CMD(SetDoorTeleport); // 4.6 beta 04 : Never public ADD_CMD(GenericCheckForm); ADD_CMD(GetEyesFlags); ADD_CMD(SetEyesFlags); ADD_CMD(GetHairFlags); ADD_CMD(SetHairFlags); // 5.0 beta 01 ADD_CMD(ar_Packed); ADD_CMD(GetActorFIKstatus); ADD_CMD(SetActorFIKstatus); ADD_CMD(GetBit); // 5.0 beta 02 ADD_CMD(HasEffectShader); // 4.y beta 0x - String needing underlying forms implementation #if 0 ADD_CMD_RET(GetNthEffectItemScriptName, kRetnType_String); ADD_CMD(SetNthEffectItemScriptNameEX); #endif }
void CommandTable::AddCommandsV3s() { RecordReleaseVersion(); // 3 alpha 01 sub 1 - submission hlp ADD_CMD(HasOwnership); ADD_CMD(IsOwned); ADD_CMD(SetOwningFactionRequiredRank); ADD_CMD_RET(GetDialogueTarget, kRetnType_Form); ADD_CMD_RET(GetDialogueSubject, kRetnType_Form); ADD_CMD_RET(GetDialogueSpeaker, kRetnType_Form); ADD_CMD_RET(SetPackageLocationReference, kRetnType_Form); ADD_CMD(GetAgeClass); ADD_CMD(RemoveMeIR); ADD_CMD(CopyIR); ADD_CMD_RET(CreateTempRef, kRetnType_Form); ADD_CMD_RET(GetFirstRefForItem, kRetnType_Form); ADD_CMD_RET(GetNextRefForItem, kRetnType_Form); ADD_CMD(AddItemOwnership); ADD_CMD(AddItemHealthPercentOwner); ADD_CMD(GetTokenValue); ADD_CMD(SetTokenValue); ADD_CMD_RET(GetTokenRef, kRetnType_Form); ADD_CMD(SetTokenRef); ADD_CMD(SetTokenValueAndRef); ADD_CMD(GetPaired); ADD_CMD(GetRespawn); ADD_CMD(SetRespawn); ADD_CMD(GetPermanent); ADD_CMD(SetPermanent); ADD_CMD_RET(GetBaseForm, kRetnType_Form); ADD_CMD(IsRefInList); #ifdef RUNTIME // 3 beta 02 sub 5 - submission hlp GetByName("GetFactionRank")->eval = &Cmd_GetFactionRank_Eval; GetByName("GetFactionRank")->execute = &Cmd_GetFactionRank_Execute; #endif // 3 beta 03 - forgotten ? ADD_CMD(SetOpenKey); // 3 beta 03 - submission hlp ADD_CMD_RET(GetCurrentPackage, kRetnType_Form); ADD_CMD(GetPackageLocation); ADD_CMD(GetPackageCount); ADD_CMD_RET(GetNthPackage, kRetnType_Form); ADD_CMD(SetNthPackage); ADD_CMD(AddPackageAt); ADD_CMD(RemovePackageAt); ADD_CMD(RemoveAllPackages); // 3 beta 04 - submission hlp ADD_CMD(ClearOpenKey); // 3 beta 05 - submission hlp ADD_CMD(SetPackageTargetReference); ADD_CMD(SetPackageTargetCount); ADD_CMD(GetPackageTargetCount); ADD_CMD(SetPackageLocationRadius); ADD_CMD(GetPackageLocationRadius); }
void CommandTable::AddCommandsV1() { // record return type of vanilla commands which return forms g_scriptCommands.SetReturnType(0x1025, kRetnType_Form); // PlaceAtMe g_scriptCommands.SetReturnType(0x10CD, kRetnType_Form); // GetActionRef g_scriptCommands.SetReturnType(0x10CE, kRetnType_Form); // GetSelf g_scriptCommands.SetReturnType(0x10CF, kRetnType_Form); // GetContainer g_scriptCommands.SetReturnType(0x10E8, kRetnType_Form); // GetCombatTarget g_scriptCommands.SetReturnType(0x10E9, kRetnType_Form); // GetPackageTarget g_scriptCommands.SetReturnType(0x1113, kRetnType_Form); // GetParentRef g_scriptCommands.SetReturnType(0x116B, kRetnType_Form); // GetLinkedRef g_scriptCommands.SetReturnType(0x11BD, kRetnType_Form); // PlaceAtMeHealthPercent g_scriptCommands.SetReturnType(0x11CF, kRetnType_Form); // GetPlayerGrabbedRef g_scriptCommands.SetReturnType(0x124E, kRetnType_Form); // GetOwnerLastTarget g_scriptCommands.SetReturnType(0x1265, kRetnType_Form); // ObjectUnderTheReticule RecordReleaseVersion(); // beta 1 ADD_CMD(GetNVSEVersion); ADD_CMD(GetNVSERevision); ADD_CMD(GetNVSEBeta); ADD_CMD_RET(GetBaseObject, kRetnType_Form); ADD_CMD(GetWeight); ADD_CMD(GetHealth); ADD_CMD(GetValue); ADD_CMD(SetWeight); ADD_CMD(SetHealth); ADD_CMD(SetBaseItemValue); ADD_CMD(GetType); ADD_CMD_RET(GetRepairList, kRetnType_Form); ADD_CMD(GetEquipType); ADD_CMD_RET(GetWeaponAmmo, kRetnType_Form); ADD_CMD(GetWeaponClipRounds); ADD_CMD(GetAttackDamage); ADD_CMD(GetWeaponType); ADD_CMD(GetWeaponMinSpread); ADD_CMD(GetWeaponSpread); ADD_CMD(GetWeaponProjectile); ADD_CMD(GetWeaponSightFOV); ADD_CMD(GetWeaponMinRange); ADD_CMD(GetWeaponMaxRange); ADD_CMD(GetWeaponAmmoUse); ADD_CMD(GetWeaponActionPoints); ADD_CMD(GetWeaponCritDamage); ADD_CMD(GetWeaponCritChance); ADD_CMD(GetWeaponCritEffect); ADD_CMD(GetWeaponFireRate); ADD_CMD(GetWeaponAnimAttackMult); ADD_CMD(GetWeaponRumbleLeftMotor); ADD_CMD(GetWeaponRumbleRightMotor); ADD_CMD(GetWeaponRumbleDuration); ADD_CMD(GetWeaponRumbleWavelength); ADD_CMD(GetWeaponAnimShotsPerSec); ADD_CMD(GetWeaponAnimReloadTime); ADD_CMD(GetWeaponAnimJamTime); ADD_CMD(GetWeaponSkill); ADD_CMD(GetWeaponResistType); ADD_CMD(GetWeaponFireDelayMin); ADD_CMD(GetWeaponFireDelayMax); ADD_CMD(GetWeaponAnimMult); ADD_CMD(GetWeaponReach); ADD_CMD(GetWeaponIsAutomatic); ADD_CMD(GetWeaponHandGrip); ADD_CMD(GetWeaponReloadAnim); ADD_CMD(GetWeaponBaseVATSChance); ADD_CMD(GetWeaponAttackAnimation); ADD_CMD(GetWeaponNumProjectiles); ADD_CMD(GetWeaponAimArc); ADD_CMD(GetWeaponLimbDamageMult); ADD_CMD(GetWeaponSightUsage); ADD_CMD(GetWeaponHasScope); ImportConsoleCommand("SetGameSetting"); ImportConsoleCommand("SetINISetting"); ImportConsoleCommand("GetINISetting"); ImportConsoleCommand("RefreshINI"); ImportConsoleCommand("Save"); ImportConsoleCommand("SaveINI"); ImportConsoleCommand("QuitGame"); ImportConsoleCommand("LoadGame"); ImportConsoleCommand("CloseAllMenus"); ImportConsoleCommand("SetVel"); ADD_CMD(ListGetCount); ADD_CMD_RET(ListGetNthForm, kRetnType_Form); ADD_CMD(ListGetFormIndex); ADD_CMD(ListAddForm); ADD_CMD(ListAddReference); ADD_CMD(ListRemoveNthForm); ADD_CMD(ListRemoveForm); ADD_CMD(ListReplaceNthForm); ADD_CMD(ListReplaceForm); ADD_CMD(ListClear); ADD_CMD_RET(GetEquippedObject, kRetnType_Form); ADD_CMD(GetEquippedCurrentHealth); ADD_CMD(CompareNames); ADD_CMD(SetName); ADD_CMD(GetHotkeyItem); ADD_CMD(GetNumItems); ADD_CMD_RET(GetInventoryObject, kRetnType_Form); ADD_CMD(SetEquippedCurrentHealth); ADD_CMD(GetCurrentHealth); ADD_CMD(SetCurrentHealth); ADD_CMD(IsKeyPressed); ADD_CMD(TapKey); ADD_CMD(HoldKey); ADD_CMD(ReleaseKey); ADD_CMD(DisableKey); ADD_CMD(EnableKey); ADD_CMD(GetNumKeysPressed); ADD_CMD(GetKeyPress); ADD_CMD(GetNumMouseButtonsPressed); ADD_CMD(GetMouseButtonPress); ADD_CMD(GetControl); ADD_CMD(GetAltControl); ADD_CMD(MenuTapKey); ADD_CMD(MenuHoldKey); ADD_CMD(MenuReleaseKey); ADD_CMD(DisableControl); ADD_CMD(EnableControl); ADD_CMD(TapControl); ADD_CMD(SetControl); ADD_CMD(SetAltControl); ADD_CMD(SetIsControl); ADD_CMD(IsControl); ADD_CMD(IsKeyDisabled); ADD_CMD(IsControlDisabled); ADD_CMD(IsControlPressed); ADD_CMD(IsPersistent); ADD_CMD_RET(GetParentCell, kRetnType_Form); ADD_CMD_RET(GetParentWorldspace, kRetnType_Form); ADD_CMD_RET(GetTeleportCell, kRetnType_Form); ADD_CMD_RET(GetLinkedDoor, kRetnType_Form); ADD_CMD_RET(GetFirstRef, kRetnType_Form); ADD_CMD_RET(GetNextRef, kRetnType_Form); ADD_CMD(GetNumRefs); ADD_CMD_RET(GetFirstRefInCell, kRetnType_Form); ADD_CMD(GetNumRefsInCell); ADD_CMD(GetRefCount); ADD_CMD(SetRefCount); ADD_CMD(GetArmorAR); ADD_CMD(IsPowerArmor); ADD_CMD(SetIsPowerArmor); ADD_CMD(SetRepairList); ADD_CMD(IsQuestItem); ADD_CMD(SetQuestItem); ADD_CMD_RET(GetObjectEffect, kRetnType_Form); ADD_CMD(SetWeaponAmmo); ADD_CMD(SetWeaponClipRounds); ADD_CMD(SetAttackDamage); ADD_CMD(SetWeaponType); ADD_CMD(SetWeaponMinSpread); ADD_CMD(SetWeaponSpread); ADD_CMD(SetWeaponProjectile); ADD_CMD(SetWeaponSightFOV); ADD_CMD(SetWeaponMinRange); ADD_CMD(SetWeaponMaxRange); ADD_CMD(SetWeaponAmmoUse); ADD_CMD(SetWeaponActionPoints); ADD_CMD(SetWeaponCritDamage); ADD_CMD(SetWeaponCritChance); ADD_CMD(SetWeaponCritEffect); ADD_CMD(SetWeaponAnimAttackMult); ADD_CMD(SetWeaponAnimMult); ADD_CMD(SetWeaponReach); ADD_CMD(SetWeaponIsAutomatic); ADD_CMD(SetWeaponHandGrip); ADD_CMD(SetWeaponReloadAnim); ADD_CMD(SetWeaponBaseVATSChance); ADD_CMD(SetWeaponAttackAnimation); ADD_CMD(SetWeaponNumProjectiles); ADD_CMD(SetWeaponAimArc); ADD_CMD(SetWeaponLimbDamageMult); ADD_CMD(SetWeaponSightUsage); ADD_CMD(GetNumericGameSetting); ADD_CMD(SetNumericGameSetting); ADD_CMD(GetNumericIniSetting); ADD_CMD(SetNumericIniSetting); ADD_CMD(Label); ADD_CMD(Goto); ADD_CMD(PrintToConsole); ADD_CMD(DebugPrint); ADD_CMD(SetDebugMode); ADD_CMD(GetDebugMode); // beta 2 ADD_CMD(GetUIFloat); ADD_CMD(SetUIFloat); ADD_CMD(SetUIString); ADD_CMD_RET(GetCrosshairRef, kRetnType_Form); ADD_CMD(GetGameRestarted); ImportConsoleCommand("ToggleMenus"); ImportConsoleCommand("TFC"); // changed from ToggleFreeCamera ImportConsoleCommand("TCL"); // changed from ToggleCollision ADD_CMD(GetGameLoaded); ADD_CMD(GetWeaponItemMod); ADD_CMD(IsModLoaded); ADD_CMD(GetModIndex); ADD_CMD(GetNumLoadedMods); ADD_CMD(GetSourceModIndex); ADD_CMD(GetDebugSelection); ADD_CMD(GetArmorDT); ADD_CMD(SetArmorAR); ADD_CMD(SetArmorDT); // beta 3 ADD_CMD(IsScripted); ADD_CMD_RET(GetScript, kRetnType_Form); ADD_CMD(RemoveScript); ADD_CMD(SetScript); ADD_CMD(IsFormValid); ADD_CMD(IsReference); // beta 4 - compat with 1.1.1.280 // oh, sorry, compat with 1.1.1.285 // oh, I am bad at reading, compat with 1.2.0.285 // beta 5 ADD_CMD(GetWeaponRequiredStrength); ADD_CMD(GetWeaponRequiredSkill); ADD_CMD(SetWeaponRequiredStrength); ADD_CMD(SetWeaponRequiredSkill); ADD_CMD(SetWeaponResistType); ADD_CMD(SetWeaponSkill); ADD_CMD(GetAmmoSpeed); ADD_CMD(GetAmmoConsumedPercent); ADD_CMD(GetAmmoCasing); ADD_CMD(GetPlayerCurrentAmmoRounds); ADD_CMD(SetPlayerCurrentAmmoRounds); ADD_CMD(GetPlayerCurrentAmmo); // beta 6 - compat with 1.2.0.314 ADD_CMD_RET(GetOpenKey, kRetnType_Form); ADD_CMD(Exp); ADD_CMD(Log10); ADD_CMD(Floor); ADD_CMD(Ceil); ADD_CMD(LeftShift); ADD_CMD(RightShift); ADD_CMD(LogicalAnd); ADD_CMD(LogicalOr); ADD_CMD(LogicalXor); ADD_CMD(LogicalNot); ADD_CMD(Pow); ADD_CMD(Fmod); ADD_CMD(Rand); // beta 7 - compat with 1.2.0.352 // beta 8 - rewrite loader to work around steam bugs // beta 9 - compat with 1.3.0.452 ADD_CMD(SortUIListBox); ADD_CMD_RET(GetOwner, kRetnType_Form); // beta 10 - compat with editor 1.3.0.452 RecordReleaseVersion(); // 2 beta 1 ADD_CMD(GetLocalRefIndex); ADD_CMD_RET(BuildRef, kRetnType_Form); ADD_CMD(SetNameEx); ADD_CMD(MessageEx); ADD_CMD(MessageBoxEx); ADD_CMD_RET(TempCloneForm, kRetnType_Form); ADD_CMD(IsClonedForm); ADD_CMD_RET(GetParentCellOwner, kRetnType_Form); ADD_CMD(GetOwningFactionRequiredRank); ADD_CMD(GetParentCellOwningFactionRequiredRank); // 2 beta 2 ADD_CMD(SetUIStringEx); // 2 beta 3 // 2 beta 4 // 2 beta 5 ImportConsoleCommand("SetUFOCamSpeedMult"); ImportConsoleCommand("TDT"); ADD_CMD(SetWeaponFireRate); ADD_CMD(GetWeaponLongBursts); ADD_CMD(SetWeaponLongBursts); // 2 beta 6 - compat with 1.4.0.525 ADD_CMD(GetWeaponFlags1); ADD_CMD(GetWeaponFlags2); ADD_CMD(SetWeaponFlags1); ADD_CMD(SetWeaponFlags2); ADD_CMD(GetActorBaseFlagsLow); ADD_CMD(SetActorBaseFlagsLow); ADD_CMD(GetActorBaseFlagsHigh); ADD_CMD(SetActorBaseFlagsHigh); ADD_CMD(ClearBit); ADD_CMD(SetBit); // 2 beta 7 - quick fix for InterfaceManager ptr // 2 beta 8 - compat with editor 1.4.0.518 // 2 beta 9 - quick fix for IsControlDisabled // 2 beta 10 - compat with nogore runtime 1.4.0.525 ADD_CMD(GetEquippedWeaponModFlags); ADD_CMD(SetEquippedWeaponModFlags); ADD_CMD(GetWeaponItemModEffect); ADD_CMD(GetWeaponItemModValue1); ADD_CMD(GetWeaponItemModValue2); // 2 beta 11 - fixed TESObjectWEAP struct (mod value 2 off by one) // 2 beta 12 - fixed GetWeaponItemModEffect etc. using 0-based indexing }
static void register_console_config_check_commands() { cmd_info_t *showcmd, *nocmd, *confcmd, *conftcmd, *conftnocmd, *lscmd; noit_console_state_t *tl, *_conf_t_check_state, *_unset_state, *_attr_state, *_uattr_state; tl = noit_console_state_initial(); showcmd = noit_console_state_get_cmd(tl, "show"); nocmd = noit_console_state_get_cmd(tl, "no"); confcmd = noit_console_state_get_cmd(tl, "configure"); conftcmd = noit_console_state_get_cmd(confcmd->dstate, "terminal"); conftnocmd = noit_console_state_get_cmd(conftcmd->dstate, "no"); lscmd = noit_console_state_get_cmd(conftcmd->dstate, "ls"); lscmd->func = noit_console_config_show; /* attribute <attrname> <value> */ NEW_STATE(_attr_state); noit_console_state_add_check_attrs(_attr_state, noit_conf_check_set_attr, "/checks"); /* no attribute <attrname> <value> */ NEW_STATE(_uattr_state); noit_console_state_add_check_attrs(_uattr_state, noit_conf_check_unset_attr, "/checks"); NEW_STATE(_unset_state); DELEGATE_CMD(_unset_state, "attribute", noit_console_opt_delegate, _uattr_state); ADD_CMD(_unset_state, "config", noit_console_config_unsetconfig, NULL, NULL, NULL); DELEGATE_CMD(conftnocmd->dstate, "attribute", noit_console_opt_delegate, _uattr_state); ADD_CMD(conftnocmd->dstate, "config", noit_console_config_unsetconfig, NULL, NULL, NULL); ADD_CMD(conftnocmd->dstate, "check", noit_console_config_nocheck, NULL, NULL, NULL); NEW_STATE(_conf_t_check_state); _conf_t_check_state->console_prompt_function = conf_t_check_prompt; DELEGATE_CMD(_conf_t_check_state, "attribute", noit_console_opt_delegate, _attr_state); DELEGATE_CMD(_conf_t_check_state, "no", noit_console_opt_delegate, _unset_state); ADD_CMD(_conf_t_check_state, "config", noit_console_config_setconfig, NULL, NULL, NULL); ADD_CMD(_conf_t_check_state, "status", noit_console_show_check, NULL, NULL, NULL); ADD_CMD(_conf_t_check_state, "exit", noit_console_config_cd, NULL, NULL, ".."); ADD_CMD(_conf_t_check_state, "check", noit_console_check, noit_console_conf_check_opts, _conf_t_check_state, ".."); ADD_CMD(conftcmd->dstate, "config", noit_console_config_setconfig, NULL, NULL, NULL); ADD_CMD(conftcmd->dstate, "check", noit_console_check, noit_console_conf_check_opts, _conf_t_check_state, NULL); ADD_CMD(showcmd->dstate, "check", noit_console_show_check, noit_console_check_opts, NULL, NULL); ADD_CMD(tl, "watch", noit_console_watch_check, noit_console_check_opts, NULL, (void *)1); ADD_CMD(nocmd->dstate, "watch", noit_console_watch_check, noit_console_check_opts, NULL, (void *)0); DELEGATE_CMD(conftcmd->dstate, "attribute", noit_console_opt_delegate, _attr_state); ADD_CMD(tl, "reload", noit_conf_checks_reload, NULL, NULL, NULL); }
void C_Client::InitCmds() { ADD_CMD("next_screen", new C_Cmd_Set_Screen()); ADD_CMD("connect", new C_Cmd_Connect()); ADD_CMD("get_scene", new C_Cmd_Get_Scene()); ADD_CMD("done_scene", new C_Cmd_Done_Scene()); ADD_CMD("del_client", new C_Cmd_Del_Entity()); ADD_CMD("resize", new C_Cmd_Resize()); ADD_CMD("disconnect", new C_Disconnect()); ADD_CMD("create_map", new C_Cmd_Create_Map()); ADD_CMD("show_map", new C_Cmd_Show_Map()); ADD_CMD("get_map", new C_Cmd_Get_Map()); ADD_CMD("new_map", new C_Cmd_New_Map()); ADD_CMD("open", new C_Cmd_Open()); ADD_CMD("set_path", new C_Cmd_Set_Path()); m_CmdConsole = new C_Cmd_Console(nullptr); ADD_CMD("console", m_CmdConsole); }
void C_Game::InitCmds() { /* Common to the server and the client */ ADD_CMD("quit", new C_Cmd_Quit()); ADD_CMD("start", new C_Cmd_Srv_Start()); ADD_CMD("add", new C_Cmd_Add_Entity()); ADD_CMD("del", new C_Cmd_Del_Entity()); ADD_CMD("show", new C_Cmd_Show_Entities()); ADD_CMD("list", new C_Cmd_List_Entity()); ADD_CMD("help", new C_Cmd_Help()); ADD_CMD("remote", new C_Cmd_Remote()); ADD_CMD("print", new C_Cmd_Print()); ADD_CMD("del", new C_Cmd_Del_Entity()); ADD_CMD("move", new C_Cmd_Move_Entity()); ADD_CMD("status", new C_Cmd_Net_Status()); ADD_CMD("save", new C_Cmd_Save()); m_Server.InitCmds(); m_Client.InitCmds(); }