How to restrict perks/GL via GSC#
Getting Started#
- Create a
main_shared
folder in your server root folder. - Create
maps/mp/gametypes
folders inside said folder. - Download the raw _class.gsc file. [You will have to do a
CTRL+S
on this page and change theSave as type
toAll Files
and remove the.txt
extension. - Move
_class.gsc
into thegametypes
folder 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.