Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6 New Pin Types #40

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
18 changes: 15 additions & 3 deletions src/redscript/in_world_navigation/InWorldNavigation.reds
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public native class InWorldNavigation extends IScriptable {
let navPathWhiteResource: FxResource;
let navPathTealResource: FxResource;
let navPathCyanResource: FxResource;
let navPathPurpleResource: FxResource;

let questResource: FxResource;
let poiResource: FxResource;
Expand All @@ -72,6 +73,8 @@ public native class InWorldNavigation extends IScriptable {
this.navPathWhiteResource = Cast<FxResource>(r"user\\jackhumbert\\effects\\world_navigation_white.effect");
this.navPathTealResource = Cast<FxResource>(r"user\\jackhumbert\\effects\\world_navigation_teal.effect");
this.navPathCyanResource = Cast<FxResource>(r"user\\jackhumbert\\effects\\world_navigation_cyan.effect");
this.navPathPurpleResource = Cast<FxResource>(r"user\\jackhumbert\\effects\\world_navigation_purple.effect");
this.navPathSkyBlueResource = Cast<FxResource>(r"user\\jackhumbert\\effects\\world_navigation_purple.effect");

let questFx: array<ref<FxInstance>>;
let poiFx: array<ref<FxInstance>>;
Expand All @@ -88,7 +91,6 @@ public native class InWorldNavigation extends IScriptable {
public func GetResourceForVariant(variant: gamedataMappinVariant) -> FxResource {
switch (variant) {
case gamedataMappinVariant.Zzz02_MotorcycleForPurchaseVariant:
case gamedataMappinVariant.Zzz01_CarForPurchaseVariant:
case gamedataMappinVariant.Zzz05_ApartmentToPurchaseVariant:
case gamedataMappinVariant.QuestGiverVariant:
case gamedataMappinVariant.FixerVariant:
Expand All @@ -99,6 +101,9 @@ public native class InWorldNavigation extends IScriptable {
case gamedataMappinVariant.HuntForPsychoVariant:
case gamedataMappinVariant.Zzz06_NCPDGigVariant:
case gamedataMappinVariant.BountyHuntVariant:
case gamedataMappinVariant.Zzz12_WorldEncounterVariant:
case gamedataMappinVariant.Zzz09_CourierSandboxActivityVariant:
case gamedataMappinVariant.Zzz18_RacingVariant:
return this.navPathTealResource;
break;
case gamedataMappinVariant.DefaultQuestVariant:
Expand All @@ -113,9 +118,16 @@ public native class InWorldNavigation extends IScriptable {
case gamedataMappinVariant.HiddenStashVariant:
case gamedataMappinVariant.OutpostVariant:
return this.navPathCyanResource;
break;
break;
case gamedataMappinVariant.Zzz17_NCARTVariant:
return this.navPathPurpleResource;
break;
case gamedataMappinVariant.Zzz16_RelicDeviceBasicVariant:
return this.navPathSkyBlueResource;
break;
case gamedataMappinVariant.ServicePointDropPointVariant:
case gamedataMappinVariant.CustomPositionVariant:
case gamedataMappinVariant.Zzz01_CarForPurchaseVariant:
return this.navPathWhiteResource;
break;
}
Expand Down Expand Up @@ -265,4 +277,4 @@ public native class InWorldNavigation extends IScriptable {
}
this.navPathFXs[type][i].SetBlackboardValue(n"alpha", MinF(Vector4.Distance2D(this.player.GetWorldPosition(), p) / this.distanceToFade, 1.0));
}
}
}