diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-31 23:14:58 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-08-31 23:14:58 +0100 |
commit | 9a96d0bff56f1969c68bb52a2f33296095bdc67d (patch) | |
tree | 4175928e488632705692e3cccafa1a38dd854615 /bobthebob.testing/scripts/vscripts/sh_bobtestingfunctions_mp.gnut | |
parent | 27bd240871b7c0f2f49fef137718b2e3c208e3b4 (diff) | |
download | NorthstarMods-9a96d0bff56f1969c68bb52a2f33296095bdc67d.tar.gz NorthstarMods-9a96d0bff56f1969c68bb52a2f33296095bdc67d.zip |
move to new mod format
Diffstat (limited to 'bobthebob.testing/scripts/vscripts/sh_bobtestingfunctions_mp.gnut')
-rw-r--r-- | bobthebob.testing/scripts/vscripts/sh_bobtestingfunctions_mp.gnut | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/bobthebob.testing/scripts/vscripts/sh_bobtestingfunctions_mp.gnut b/bobthebob.testing/scripts/vscripts/sh_bobtestingfunctions_mp.gnut deleted file mode 100644 index 852fbfe1..00000000 --- a/bobthebob.testing/scripts/vscripts/sh_bobtestingfunctions_mp.gnut +++ /dev/null @@ -1,135 +0,0 @@ -untyped -globalize_all_functions - -void function DumpPdefEnum( string pdefEnum ) -{ - for ( int i = 0; i < PersistenceGetEnumCount( pdefEnum ); i++ ) - print( PersistenceGetEnumItemNameForIndex( pdefEnum, i ) ) -} - -void function ListPlayers() -{ - foreach ( entity player in GetPlayerArray() ) - { - if ( player == null ) - continue - - print( "player " + player.GetPlayerName() + ": G" + player.GetGen() + "." + player.GetLevel() ) - } -} - -void function DumpPdefTable() -{ - foreach ( key0, value0 in shGlobalMP.playerStatVars ) - { - foreach ( key1, value1 in value0 ) - { - foreach ( key2, statData in value1 ) - { - print ( statData.statVar ) - } - } - } -} - -void function DumpModels() -{ - for ( int i = 0; i < 2048; i++ ) - if ( GetEntByIndex( i ) != null && GetEntByIndex( i ).GetModelName() != $"?" ) - print( i + ": " + GetEntByIndex( i ).GetModelName() ) -} - -void function DumpScoreEvents() -{ - int i = 0; - while ( true ) - { - ScoreEvent event - try event = ScoreEvent_FromId( i ) catch ( exception ) break - - print( "event " + i + ":" ) - print( "name: " + event.name ) - print( "splashText: " + event.splashText ) - - // get string representation of displaytype - // if squirrel has a better way to do this i don't know it - string displayType - - if ( event.displayType & eEventDisplayType.HIDDEN ) - displayType += "HIDDEN, " - if ( event.displayType & eEventDisplayType.CENTER ) - displayType += "CENTER, " - if ( event.displayType & eEventDisplayType.MEDAL ) - displayType += "MEDAL, " - if ( event.displayType & eEventDisplayType.CALLINGCARD ) - displayType += "CALLINGCARD, " - if ( event.displayType & eEventDisplayType.ATTRITION ) - displayType += "ATTRITION, " - if ( event.displayType & eEventDisplayType.BIG ) - displayType += "BIG, " - if ( event.displayType & eEventDisplayType.GAMEMODE ) - displayType += "GAMEMODE, " - if ( event.displayType & eEventDisplayType.CHALLENGE ) - displayType += "CHALLENGE, " - if ( event.displayType & eEventDisplayType.MEDAL_FORCED ) - displayType += "MEDAL_FORCED, " - if ( event.displayType & eEventDisplayType.SHOW_SCORE ) - displayType += "SHOW_SCORE, " - - print( "displayType: " + displayType ) - print( " " ) // newline - - i++ - } - - print( "got " + i + " events!" ) -} - -void function DumpConversations() -{ - foreach ( string k, v in GetConversationToIndexTable() ) - print( k ) -} - -#if CLIENT -void function TestMarkRUI() -{ - var rui = CreateCockpitRui( $"ui/speedball_flag_marker.rpak", 200 ) - RuiSetBool( rui, "isVisible", true ) - RuiSetFloat3( rui, "pos", GetLocalViewPlayer().GetOrigin() ) - RuiSetBool( rui, "playerIsCarrying", false ) - RuiSetInt( rui, "teamRelation", TEAM_IMC ) - RuiSetBool( rui, "isCarried", false ) -} - -void function TestObjectiveRUIHunted() -{ - var rui = CreateCockpitRui( $"ui/hunted_objective.rpak", 200 ) - RuiSetGameTime( rui, "startTime", Time() ) - RuiSetGameTime( rui, "endTime", Time() + 20.0 ) - RuiSetString( rui, "objectiveTitleText", "#HUNTED_OBJECTIVE_TITLE" ) - RuiSetFloat( rui, "blingDuration", 5.0 ) - RuiSetBool( rui, "showAll", true ) -} - -void function TestObjectiveRUIFW() -{ - var rui = CreateCockpitRui( $"ui/fw_objective_text.rpak" ) - RuiSetString( rui, "objective", "deez nuts" ) - - float time = Time() + 10.0 - while ( time > Time() ) - { - RuiSetString( rui, "objective", "deez nuts " + ( time - Time() ) ) - WaitFrame() - } - - RuiDestroy( rui ) -} - -void function RespawnWhy() -{ - for ( int i = 0; i < 500; i++ ) // this only works in lobby, luckily - GetLocalViewPlayer().ClientCommand( "test_clientsetplaylistvaroverride " + i + " whyyyyy" ) -} -#endif
\ No newline at end of file |