Skip to content

Commit

Permalink
Merge pull request #120 from Rayman1103/vscript-update
Browse files Browse the repository at this point in the history
Vscript update
  • Loading branch information
Rayman1103 committed Oct 21, 2021
2 parents de9c0b3 + 444d667 commit b9116e2
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 4 deletions.
8 changes: 4 additions & 4 deletions root/scripts/vscripts/community/functions.nut
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ function con_comment( strComment )
** about "script ShowUpdate()" to see all changes.
**
** DEVELOPER MODE is required for everything here EXCEPT the "else if" condition
** which will ALWAYS announce "Anniversary Map Fixes" presence. The name "devchap"
** which will ALWAYS announce "Community Map Fixes" presence. The name "devchap"
** is derived from it being mostly for DEVELOPER MODE and printing chapter name.
*****************************************************************************/

Expand All @@ -1821,15 +1821,15 @@ function devchap( mode )

if ( developer() > 0 && mode == "TUTORIAL" )
{
printl( "Anniversary Map Fixes: Run or bind \"script ShowUpdate()\" and \"script HideUpdate()\"" );
printl( "Community Map Fixes: Run or bind \"script ShowUpdate()\" and \"script HideUpdate()\"" );
printl( "to draw new blockers and glow new props. They are named according to purpose and" );
printl( "you can see entity definitions above. If you make/delete \"mapfixes\"-prefixed" );
printl( "entities, toggle Hide/Show to apply changes. Please report all issues and concerns" );
printl( "to Tsuey's Workshop https://steamcommunity.com/sharedfiles/filedetails/?id=1959405608\n" );
}
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 community/z_developer_showupdate\" >> \"script ShowUpdate()\"." );
printl( "Community Map Fixes: Restart with Launch Option -dev to reveal verbose entity debug dumps." );
printl( "Community Demo Mode: Run \"script_execute community/z_developer_showupdate\" >> \"script ShowUpdate()\"." );
}
}
80 changes: 80 additions & 0 deletions root/scripts/vscripts/mutation7.nut
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
//-----------------------------------------------------
Msg("Activating Mutation 7\n");


DirectorOptions <-
{
ActiveChallenge = 1

cm_InfiniteFuel = 1
cm_ShouldHurry = 1

weaponsToRemove =
{
weapon_pistol = 0
weapon_pistol_magnum = 0
weapon_smg = 0
weapon_pumpshotgun = 0
weapon_autoshotgun = 0
weapon_rifle = 0
weapon_hunting_rifle = 0
weapon_smg_silenced = 0
weapon_shotgun_chrome = 0
weapon_rifle_desert = 0
weapon_sniper_military = 0
weapon_shotgun_spas = 0
weapon_grenade_launcher = 0
weapon_rifle_ak47 = 0
weapon_smg_mp5 = 0
weapon_rifle_sg552 = 0
weapon_sniper_awp = 0
weapon_sniper_scout = 0
weapon_rifle_m60 = 0
weapon_melee = 0
weapon_chainsaw = 0
weapon_upgradepack_incendiary = 0
weapon_upgradepack_explosive = 0
ammo = 0
upgrade_item = 0
}

function AllowWeaponSpawn( classname )
{
if ( classname in weaponsToRemove )
{
return false;
}
return true;
}

function ShouldAvoidItem( classname )
{
if ( ( classname != "weapon_chainsaw" ) && ( classname in weaponsToRemove ) )
{
return true;
}
return false;
}

DefaultItems =
[
"weapon_chainsaw",
//"weapon_pistol",
]

function GetDefaultItem( idx )
{
if ( idx < DefaultItems.len() )
{
return DefaultItems[idx];
}
return 0;
}
}

function OnGameEvent_round_start_post_nav( params )
{
EntFire( "weapon_spawn", "Kill" );
foreach( wep, val in DirectorOptions.weaponsToRemove )
EntFire( wep + "_spawn", "Kill" );
}

0 comments on commit b9116e2

Please sign in to comment.