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

Change Aegis Reset Functionality to use titan chassis ref instead of raw index #788

Merged
merged 7 commits into from
Jan 26, 2024
Merged
Changes from 1 commit
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
17 changes: 17 additions & 0 deletions Northstar.CustomServers/mod/scripts/vscripts/sh_progression.nut
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,23 @@ bool function ClientCommand_ResetTitanAegis( entity player, array<string> args )
return false

int suitIndex = args[0].tointeger()

//Idfk why don't ask, but these fucking 3 Titans have indexes swapped for reasons beyond Lovecraftian gods comprehension
//Tone index points to Northstar, Northstar points to Ronin and Ronin points to Tone, had to do this to proper make them reset their Aegis
switch ( args[0] )
{
case "2":
suitIndex = 4
break

case "3":
suitIndex = 2
break

case "4":
suitIndex = 3
break
}
player.SetPersistentVar( "titanFDUnlockPoints[" + suitIndex + "]", 0 )
player.SetPersistentVar( "previousFDUnlockPoints[" + suitIndex + "]", 0 )
player.SetPersistentVar( "fdTitanXP[" + suitIndex + "]", 0 )
Expand Down
Loading