Skip to content

Commit

Permalink
Changes found while rebuilding my xEdit xSE plugin for FO4
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugues92 authored and Sharlikran committed Oct 18, 2017
1 parent 9fcce07 commit 34cd8fb
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 50 deletions.
86 changes: 42 additions & 44 deletions wbDefinitionsFO4.pas
Original file line number Diff line number Diff line change
Expand Up @@ -3123,7 +3123,7 @@ TCTDAFunction = record
end;

const
wbCTDAFunctions : array[0..514] of TCTDAFunction = (
wbCTDAFunctions : array[0..478] of TCTDAFunction = (
(Index: 0; Name: 'GetWantBlocking'),
(Index: 1; Name: 'GetDistance'; ParamType1: ptObjectReference),
(Index: 5; Name: 'GetLocked'),
Expand All @@ -3138,9 +3138,10 @@ TCTDAFunction = record
(Index: 25; Name: 'IsMoving'),
(Index: 26; Name: 'IsTurning'),
(Index: 27; Name: 'GetLineOfSight'; ParamType1: ptObjectReference),
(Index: 31; Name: 'GetButtonPressed'),
// exists but no longer CTDA (Index: 31; Name: 'GetButtonPressed'),
(Index: 32; Name: 'GetInSameCell'; ParamType1: ptObjectReference),
(Index: 35; Name: 'GetDisabled'),
(Index: 36; Name: 'MenuMode'; Paramtype1: ptInteger),
(Index: 39; Name: 'GetDisease'),
(Index: 41; Name: 'GetClothingValue'),
(Index: 42; Name: 'SameFaction'; ParamType1: ptActor),
Expand Down Expand Up @@ -3175,14 +3176,15 @@ TCTDAFunction = record
(Index: 79; Name: 'WouldBeStealing'; ParamType1: ptObjectReference),
(Index: 80; Name: 'GetLevel'),
(Index: 81; Name: 'IsRotating'),
(Index: 83; Name: 'GetLeveledEncounterValue'; ParamType1: ptInteger),
// exists but no longer CTDA (Index: 83; Name: 'GetLeveledEncounterValue'; ParamType1: ptInteger),
(Index: 84; Name: 'GetDeadCount'; ParamType1: ptActorBase),
(Index: 91; Name: 'GetIsAlerted'),
(Index: 98; Name: 'GetPlayerControlsDisabled'; Paramtype1: ptInteger; Paramtype2: ptInteger; Paramtype3: ptInteger),
(Index: 99; Name: 'GetHeadingAngle'; ParamType1: ptObjectReference),
(Index: 101; Name: 'IsWeaponMagicOut'),
(Index: 102; Name: 'IsTorchOut'),
(Index: 103; Name: 'IsShieldOut'),
(Index: 105; Name: 'IsActionRef'; ParamType1: ptObjectReference),
// exists but no longer CTDA (Index: 105; Name: 'IsActionRef'; ParamType1: ptObjectReference),
(Index: 106; Name: 'IsFacingUp'),
(Index: 107; Name: 'GetKnockedState'),
(Index: 108; Name: 'GetWeaponAnimType'),
Expand All @@ -3193,7 +3195,7 @@ TCTDAFunction = record
(Index: 116; Name: 'IsIntimidatedbyPlayer'),
(Index: 117; Name: 'IsPlayerInRegion'; ParamType1: ptRegion),
(Index: 118; Name: 'GetActorAggroRadiusViolated'),
(Index: 119; Name: 'GetCrimeKnown'; ParamType1: ptCrimeType; ParamType2: ptActor; ParamType3: ptActor),
// exists but no longer CTDA (Index: 119; Name: 'GetCrimeKnown'; ParamType1: ptCrimeType; ParamType2: ptActor; ParamType3: ptActor),
(Index: 122; Name: 'GetCrime'; ParamType1: ptActor; ParamType2: ptCrimeType),
(Index: 123; Name: 'IsGreetingPlayer'),
(Index: 125; Name: 'IsGuard'),
Expand Down Expand Up @@ -3222,11 +3224,11 @@ TCTDAFunction = record
(Index: 154; Name: 'HasFlames'),
(Index: 157; Name: 'GetOpenState'),
(Index: 159; Name: 'GetSitting'),
(Index: 160; Name: 'GetFurnitureMarkerID'),
// exists but no longer CTDA (Index: 160; Name: 'GetFurnitureMarkerID'),
(Index: 161; Name: 'GetIsCurrentPackage'; ParamType1: ptPackage),
(Index: 162; Name: 'IsCurrentFurnitureRef'; ParamType1: ptObjectReference),
(Index: 163; Name: 'IsCurrentFurnitureObj'; ParamType1: ptFurniture),
(Index: 167; Name: 'GetFactionReaction'; ParamType1: ptFaction; ParamType2: ptFaction),
// exists but no longer CTDA (Index: 167; Name: 'GetFactionReaction'; ParamType1: ptFaction; ParamType2: ptFaction),
(Index: 170; Name: 'GetDayOfWeek'),
(Index: 172; Name: 'GetTalkedToPCParam'; ParamType1: ptActor),
(Index: 175; Name: 'IsPCSleeping'),
Expand All @@ -3235,20 +3237,20 @@ TCTDAFunction = record
(Index: 181; Name: 'HasSameEditorLocationAsRefAlias'; ParamType1: ptAlias; ParamType2: ptKeyword),
(Index: 182; Name: 'GetEquipped'; ParamType1: ptReferencableObject),
(Index: 185; Name: 'IsSwimming'),
(Index: 186; Name: 'ScriptEffectElapsedSeconds'),
(Index: 188; Name: 'GetPCSleepHours'),
// exists but no longer CTDA (Index: 186; Name: 'ScriptEffectElapsedSeconds'),
// exists but no longer CTDA (Index: 188; Name: 'GetPCSleepHours'),
(Index: 190; Name: 'GetAmountSoldStolen'),
(Index: 192; Name: 'GetIgnoreCrime'),
(Index: 193; Name: 'GetPCExpelled'; ParamType1: ptFaction),
(Index: 195; Name: 'GetPCFactionMurder'; ParamType1: ptFaction),
(Index: 197; Name: 'GetPCEnemyofFaction'; ParamType1: ptFaction),
(Index: 199; Name: 'GetPCFactionAttack'; ParamType1: ptFaction),
(Index: 203; Name: 'GetDestroyed'),
(Index: 205; Name: 'GetActionRef'),
(Index: 206; Name: 'GetSelf'),
(Index: 207; Name: 'GetContainer'),
(Index: 208; Name: 'GetForceRun'),
(Index: 210; Name: 'GetForceSneak'),
// exists but no longer CTDA (Index: 205; Name: 'GetActionRef'),
// exists but no longer CTDA (Index: 206; Name: 'GetSelf'),
// exists but no longer CTDA (Index: 207; Name: 'GetContainer'),
// exists but no longer CTDA (Index: 208; Name: 'GetForceRun'),
// exists but no longer CTDA (Index: 210; Name: 'GetForceSneak'),
(Index: 214; Name: 'HasMagicEffect'; ParamType1: ptMagicEffect),
(Index: 215; Name: 'GetDefaultOpen'),
(Index: 223; Name: 'IsSpellTarget'; ParamType1: ptMagicItem),
Expand All @@ -3260,8 +3262,8 @@ TCTDAFunction = record
(Index: 229; Name: 'GetClassDefaultMatch'),
(Index: 230; Name: 'GetInCellParam'; ParamType1: ptCell; ParamType2: ptObjectReference),
(Index: 231; Name: 'GetPlayerDialogueInput'),
(Index: 232; Name: 'GetCombatTarget'),
(Index: 233; Name: 'GetPackageTarget'),
// exists but no longer CTDA (Index: 232; Name: 'GetCombatTarget'),
// exists but no longer CTDA (Index: 233; Name: 'GetPackageTarget'),
(Index: 235; Name: 'GetVatsTargetHeight'),
(Index: 237; Name: 'GetIsGhost'),
(Index: 242; Name: 'GetUnconscious'),
Expand All @@ -3273,7 +3275,7 @@ TCTDAFunction = record
(Index: 250; Name: 'GetLocationCleared'; ParamType1: ptLocation),
(Index: 254; Name: 'GetIsPlayableRace'),
(Index: 255; Name: 'GetOffersServicesNow'),
(Index: 256; Name: 'GetGameSetting'; ParamType1: ptNone),
// exists but no longer CTDA (Index: 256; Name: 'GetGameSetting'; ParamType1: ptNone),
(Index: 258; Name: 'HasAssociationType'; ParamType1: ptActor; ParamType2: ptAssociationType),
(Index: 259; Name: 'HasFamilyRelationship'; ParamType1: ptActor),
(Index: 261; Name: 'HasParentRelationship'; ParamType1: ptActor),
Expand All @@ -3284,7 +3286,7 @@ TCTDAFunction = record
(Index: 266; Name: 'IsPleasant'),
(Index: 267; Name: 'IsCloudy'),
(Index: 274; Name: 'IsSmallBump'),
(Index: 275; Name: 'GetParentRef'),
// exists but no longer CTDA (Index: 275; Name: 'GetParentRef'),
(Index: 277; Name: 'GetBaseValue'; ParamType1: ptActorValue),
(Index: 278; Name: 'IsOwner'; ParamType1: ptOwner),
(Index: 280; Name: 'IsCellOwner'; ParamType1: ptCell; ParamType2: ptOwner),
Expand All @@ -3294,9 +3296,9 @@ TCTDAFunction = record
(Index: 287; Name: 'IsRunning'),
(Index: 288; Name: 'GetFriendHit'),
(Index: 289; Name: 'IsInCombat'; ParamType1: ptInteger),
(Index: 296; Name: 'IsAnimPlaying'; ParamType1: ptReferencableObject),
// exists but no longer CTDA (Index: 296; Name: 'IsAnimPlaying'; ParamType1: ptReferencableObject),
(Index: 300; Name: 'IsInInterior'),
(Index: 303; Name: 'IsActorsAIOff'),
// exists but no longer CTDA (Index: 303; Name: 'IsActorsAIOff'),
(Index: 304; Name: 'IsWaterObject'),
(Index: 305; Name: 'GetPlayerAction'),
(Index: 306; Name: 'IsActorUsingATorch'),
Expand All @@ -3315,16 +3317,16 @@ TCTDAFunction = record
(Index: 332; Name: 'IsInDangerousWater'),
(Index: 338; Name: 'GetIgnoreFriendlyHits'),
(Index: 339; Name: 'IsPlayersLastRiddenMount'),
(Index: 344; Name: 'ReleaseWeatherOverride'),
(Index: 348; Name: 'SendTrespassAlarm'; ParamType1: ptActor),
// exists but no longer CTDA (Index: 344; Name: 'ReleaseWeatherOverride'),
// exists but no longer CTDA (Index: 348; Name: 'SendTrespassAlarm'; ParamType1: ptActor),
(Index: 353; Name: 'IsActor'),
(Index: 354; Name: 'IsEssential'),
(Index: 358; Name: 'IsPlayerMovingIntoNewSpace'),
(Index: 359; Name: 'GetInCurrentLocation'; ParamType1: ptLocation),
(Index: 360; Name: 'GetInCurrentLocationAlias'; ParamType1: ptAlias),
(Index: 361; Name: 'GetTimeDead'),
(Index: 362; Name: 'HasLinkedRef'; ParamType1: ptKeyword),
(Index: 363; Name: 'GetLinkedRef'; ParamType1: ptKeyword),
// exists but no longer CTDA (Index: 363; Name: 'GetLinkedRef'; ParamType1: ptKeyword),
(Index: 365; Name: 'IsChild'),
(Index: 366; Name: 'GetStolenItemValueNoCrime'; ParamType1: ptFaction),
(Index: 367; Name: 'GetLastPlayerAction'),
Expand All @@ -3337,7 +3339,7 @@ TCTDAFunction = record
(Index: 378; Name: 'IsOwnedBy'; ParamType1: ptActor),
(Index: 380; Name: 'GetCommandDistance'),
(Index: 381; Name: 'GetCommandLocationDistance'),
(Index: 387; Name: 'GetObjectiveFailed'; ParamType1: ptQuest; ParamType2: ptInteger),
// exists but no longer CTDA (Index: 387; Name: 'GetObjectiveFailed'; ParamType1: ptQuest; ParamType2: ptInteger),
(Index: 390; Name: 'GetHitLocation'),
(Index: 391; Name: 'IsPC1stPerson'),
(Index: 396; Name: 'GetCauseofDeath'),
Expand All @@ -3352,14 +3354,16 @@ TCTDAFunction = record
(Index: 414; Name: 'Exists'; ParamType1: ptObjectReference),
(Index: 415; Name: 'GetGroupMemberCount'),
(Index: 416; Name: 'GetGroupTargetCount'),
(Index: 419; Name: 'GetObjectiveCompleted'; ParamType1: ptQuest; ParamType2: ptInteger),
(Index: 420; Name: 'GetObjectiveDisplayed'; ParamType1: ptQuest; ParamType2: ptInteger),
(Index: 425; Name: 'GetIsFormType'),
// exists but no longer CTDA (Index: 419; Name: 'GetObjectiveCompleted'; ParamType1: ptQuest; ParamType2: ptInteger),
// exists but no longer CTDA (Index: 420; Name: 'GetObjectiveDisplayed'; ParamType1: ptQuest; ParamType2: ptInteger),
// exists but no longer CTDA (Index: 425; Name: 'GetIsFormType'),
(Index: 426; Name: 'GetIsVoiceType'; ParamType1: ptVoiceType),
(Index: 427; Name: 'GetPlantedExplosive'),
(Index: 429; Name: 'IsScenePackageRunning'),
(Index: 430; Name: 'GetHealthPercentage'),
(Index: 432; Name: 'GetIsObjectType'; ParamType1: ptFormType),
(Index: 434; Name: 'PlayerVisualDetection'),
(Index: 435; Name: 'PlayerAudioDetection'),
(Index: 437; Name: 'GetIsCreatureType'; ParamType1: ptInteger),
(Index: 438; Name: 'HasKey'; ParamType1: ptObjectReference),
(Index: 439; Name: 'IsFurnitureEntryType'; ParamType1: ptReferencableObject),
Expand All @@ -3374,22 +3378,22 @@ TCTDAFunction = record
(Index: 454; Name: 'GetPlayerTeammateCount'),
(Index: 458; Name: 'GetActorCrimePlayerEnemy'),
(Index: 459; Name: 'GetCrimeGold'; ParamType1: ptFaction),
(Index: 462; Name: 'GetPlayerGrabbedRef'),
// exists but no longer CTDA (Index: 462; Name: 'GetPlayerGrabbedRef'),
(Index: 463; Name: 'IsPlayerGrabbedRef'; ParamType1: ptObjectReference),
(Index: 465; Name: 'GetKeywordItemCount'; ParamType1: ptKeyword),
(Index: 467; Name: 'GetBroadcastState'),
// exists but no longer CTDA (Index: 467; Name: 'GetBroadcastState'),
(Index: 470; Name: 'GetDestructionStage'),
(Index: 473; Name: 'GetIsAlignment'; ParamType1: ptAlignment),
(Index: 476; Name: 'IsProtected'),
(Index: 477; Name: 'GetThreatRatio'; ParamType1: ptActor),
(Index: 479; Name: 'GetIsUsedItemEquipType'; ParamType1: ptEquipType),
(Index: 480; Name: 'GetPlayerName'),
// exists but no longer CTDA (Index: 480; Name: 'GetPlayerName'),
(Index: 483; Name: 'GetPlayerActivated'),
(Index: 485; Name: 'GetFullyEnabledActorsInHigh'),
(Index: 487; Name: 'IsCarryable'),
(Index: 488; Name: 'GetConcussed'),
(Index: 489; Name: 'SetZoneRespawns'; ParamType1: ptEncounterZone; ParamType2: ptInteger),
(Index: 490; Name: 'SetVATSTarget'; ParamType1: ptInteger),
// exists but no longer CTDA (Index: 489; Name: 'SetZoneRespawns'; ParamType1: ptEncounterZone; ParamType2: ptInteger),
// exists but no longer CTDA (Index: 490; Name: 'SetVATSTarget'; ParamType1: ptInteger),
(Index: 491; Name: 'GetMapMarkerVisible'),
(Index: 493; Name: 'PlayerKnows'; ParamType1: ptReferencableObject),
(Index: 494; Name: 'GetPermanentValue'; ParamType1: ptActorValue),
Expand Down Expand Up @@ -3425,13 +3429,13 @@ TCTDAFunction = record
(Index: 536; Name: 'GetTypeCommandPerforming'),
(Index: 543; Name: 'GetQuestCompleted'; ParamType1: ptQuest),
(Index: 544; Name: 'GetSpeechChallengeSuccessLevel'),
(Index: 545; Name: 'PipBoyRadioOff'),
// exists but no longer CTDA (Index: 545; Name: 'PipBoyRadioOff'),
(Index: 547; Name: 'IsGoreDisabled'),
(Index: 550; Name: 'IsSceneActionComplete'; ParamType1: ptScene; ParamType2: ptInteger),
(Index: 552; Name: 'GetSpellUsageNum'; ParamType1: ptMagicItem),
(Index: 554; Name: 'GetActorsInHigh'),
(Index: 555; Name: 'HasLoaded3D'),
(Index: 559; Name: 'IsImageSpaceActive'; ParamType1: ptReferencableObject),
// exists but no longer CTDA (Index: 559; Name: 'IsImageSpaceActive'; ParamType1: ptReferencableObject),
(Index: 560; Name: 'HasKeyword'; ParamType1: ptKeyword),
(Index: 561; Name: 'HasRefType'; ParamType1: ptRefType),
(Index: 562; Name: 'LocationHasKeyword'; ParamType1: ptKeyword),
Expand All @@ -3445,7 +3449,7 @@ TCTDAFunction = record
(Index: 571; Name: 'GetCurrentCastingType'; ParamType1: ptCastingSource),
(Index: 572; Name: 'GetCurrentDeliveryType'; ParamType1: ptCastingSource),
(Index: 574; Name: 'GetAttackState'),
(Index: 575; Name: 'GetAliasedRef'; ParamType1: ptAlias),
// exists but no longer CTDA (Index: 575; Name: 'GetAliasedRef'; ParamType1: ptAlias),
(Index: 576; Name: 'GetEventData'; ParamType1: ptEvent; ParamType2: ptEventData; ParamType3: ptNone), // fireundubh: Event Function, Event Member, Data (FO4)
(Index: 577; Name: 'IsCloserToAThanB'; ParamType1: ptObjectReference; ParamType2: ptObjectReference),
(Index: 578; Name: 'LevelMinusPCLevel'),
Expand Down Expand Up @@ -3506,7 +3510,7 @@ TCTDAFunction = record
(Index: 650; Name: 'IsLinkedTo'; ParamType1: ptObjectReference; ParamType2: ptKeyword),
(Index: 651; Name: 'GetKeywordDataForCurrentLocation'; ParamType1: ptKeyword),
(Index: 652; Name: 'GetInSharedCrimeFaction'; ParamType1: ptObjectReference),
(Index: 653; Name: 'GetBribeAmount'),
// exists but no longer CTDA (Index: 653; Name: 'GetBribeAmount'),
(Index: 654; Name: 'GetBribeSuccess'),
(Index: 655; Name: 'GetIntimidateSuccess'),
(Index: 656; Name: 'GetArrestedState'),
Expand Down Expand Up @@ -3633,15 +3637,9 @@ TCTDAFunction = record
(Index: 812; Name: 'GetPathingRequestedQuickTurn'),
(Index: 813; Name: 'EPIsCalculatingBaseDamage'),
(Index: 814; Name: 'GetReanimating'),
(Index: 817; Name: 'IsInRobotWorkbench'),

// F4SE
(Index: 1024; Name: 'GetSKSEVersion'; ),
(Index: 1025; Name: 'GetSKSEVersionMinor'; ),
(Index: 1026; Name: 'GetSKSEVersionBeta'; ),
(Index: 1027; Name: 'GetSKSERelease'; ),
(Index: 1028; Name: 'ClearInvalidRegistrations'; )
(Index: 817; Name: 'IsInRobotWorkbench')
);

var
wbCTDAFunctionEditInfo: string;

Expand Down
Loading

0 comments on commit 34cd8fb

Please sign in to comment.