How to restrict perks/GL via GSC#
Getting Started#
- Create a
main_sharedfolder in your server root folder.
- Create
maps/mp/gametypesfolders inside said folder.
- Download the raw _class.gsc file. [You will have to do a
CTRL+Son this page and change theSave as typetoAll Filesand remove the.txtextension.
- Move
_class.gscinto thegametypesfolder and open it.
Disabling Perks#
- Do a search for
// allowed perks in each slot, for validation. - Find the perk you wish to disable, in my instance
specialty_pistoldeath. - Replace
perkReferenceToIndex[ "specialty_pistoldeath" ];with190;

Disabling Grenade Launchers#
- Search for
self setWeaponAmmoOverall( secondaryWeapon, self.custom_class[class_num]["inventory_count"] ); - Replace
self SetActionSlot( 3, "altMode" );like 5 lines down withself SetActionSlot( 3, "" );.

You should now have said perks/items banned.