Skip to content

Commit

Permalink
Moved community update files (and corresponding code references) into…
Browse files Browse the repository at this point in the history
… dedicated folder "community"
  • Loading branch information
shqke committed Aug 6, 2021
1 parent 5c52419 commit bf92b09
Show file tree
Hide file tree
Showing 66 changed files with 9 additions and 9 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -1836,6 +1836,6 @@ function devchap( mode )
else if ( mode == "TUTORIAL" )
{
printl( "Anniversary Map Fixes: Restart with Launch Option -dev to reveal verbose entity debug dumps." );
printl( "Anniversary Demo Mode: Run \"script_execute z_developer_showupdate\" >> \"script ShowUpdate()\"." );
printl( "Anniversary Demo Mode: Run \"script_execute community/z_developer_showupdate\" >> \"script ShowUpdate()\"." );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ __CollectEventCallbacks( this, "OnGameEvent_", "GameEventCallbacks", RegisterScr

if ( g_BaseMode == "versus" && g_MutaMode != "mutation19" )
{
EntFire( "worldspawn", "RunScriptFile", "anv_tankwarps" );
EntFire( "worldspawn", "RunScriptFile", "community/tankwarps" );
}

// If it's VS Survival (mutation15), delete new props that obstruct
Expand Down Expand Up @@ -125,7 +125,7 @@ __CollectEventCallbacks( this, "OnGameEvent_", "GameEventCallbacks", RegisterScr
}
}

if( !IncludeScript( "anv_mapfixes/" + g_MapName, g_FixScriptTable ) )
if( !IncludeScript( "community/maps/" + g_MapName, g_FixScriptTable ) )
{
/*==============================
|| ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function DoRoundFixes()

if ( HasPlayerControlledZombies() )
{
EntFire( "worldspawn", "RunScriptFile", "c11m5_versus_planecrash" );
EntFire( "worldspawn", "RunScriptFile", "community/c11m5_versus_planecrash" );

make_brush( "_losfix_lowthinwing", "-8 -116 -30", "8 111 32", "-6057 9725 -12" );
make_brush( "_losfix_truck1", "-56 -1 -12", "71 1 28", "-5039 8665 -180" );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ devchap( "ALL MODES" );

function DoRoundFixes()
{
EntFire( "worldspawn", "RunScriptFile", "c8m4_elevatorfix" );
EntFire( "worldspawn", "RunScriptFile", "community/c8m4_elevatorfix" );

make_clip( "_permstuck_cabinetchair", "Everyone", 1, "-15 -15 -24", "15 15 10", "11935 13061 312" );
make_clip( "_witch_windows", "Survivors", 1, "3 -440 0", "9 424 64", "12909 12360 320" );
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions root/scripts/vscripts/mapspawn.nut
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ g_UpdateRanOnce <- null; // Run special code only once outside of mapspawn.nut
// Mandatory includes which seamlessly extend mapspawn.nut.
///////////////////////////////////////////////////////////

IncludeScript( "anv_functions" ); // Entity creation, modification and debug functions
IncludeScript( "community/functions" ); // Entity creation, modification and debug functions

///////////////////////////////////////////////////////////
// RunScriptFile the map fixes with round-persistent scope.
///////////////////////////////////////////////////////////

EntFire( "worldspawn", "RunScriptFile", "anv_mapfixes" );
EntFire( "worldspawn", "RunScriptFile", "community/mapfixes" );

/////////////////////////////////////////////////////////////////////////////////
// DEVELOPER ONLY: Load "script ShowUpdate()" functions to visualize all updates.
Expand All @@ -64,12 +64,12 @@ if ( developer() > 0 && Convars.GetStr( "sv_cheats" ) == "1" )
{
// Allows use of ShowUpdate() in a bind whereas RunScriptFile lacks scope.

IncludeScript( "z_developer_showupdate" );
IncludeScript( "community/z_developer_showupdate" );
}

local fixScriptTable = {};

IncludeScript( "anv_mapfixes/" + g_MapName, fixScriptTable );
IncludeScript( "community/maps/" + g_MapName, fixScriptTable );

if( "DoMapSpawnFixes" in fixScriptTable )
{
Expand Down

0 comments on commit bf92b09

Please sign in to comment.