[Release] restrictions/ customizations mod v1.1
- Ответы 53
- Просмотры 3,8k
- Created
- Последний ответ
Top Posters In This Topic
-
banz 18 posts
-
(BP)FireBerg 6 posts
-
Pvt.McKain 4 posts
-
Golza 2 posts
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
Hey,
this mod is highly customizable. In its "stock" state it will do almost nothing.
Server owners can customize it by using certain dvars.
You can restrict any weapons, attachments, perks, deathstreaks, killstreaks, equipment, offhand nades and even weapon-attachement combos you want to by just setting dvars in your server.cfg. You don't have to touch the .gsc files at all.
Besides that you can customize the needed amount consecutive kills for any killstreaks you want by just setting dvars. I've also integrated some of my "mini-releases", so that this mod offers an alternative teambalancing method (balance by lowest time on server, instead of lowest "team-time) and dvars to adjust the behaviour of the nuke.
Video:
(used dvars setting in this video)
Lets start with the list of dvars you can use to adjust the mod to your likings:
The dvars should be set in the server.cfg.
basic syntax to restrict something:
//Restrict certain weapons
(the weapon as a whole, unregarded which attachment it has, it will be replaced by one of the "default weapon(s) you may define)
set scr_allow_ump45 "0"
set scr_allow_spas12 "0"
---> this will disable ump45 and spas12 completely. You can specify any weapon you want, including secondary weapons.
//Restrict certain weapon-attachment combinations
only the attachment will be removed, the weapon stays
set scr_allow_ump45_silencer_mp "0"
---> this will only disallow ump45 with the silencer attached. The silencer will be removed and the player spawns with ump45 without attachments
//Restrict certain attachments completly
set scr_allow_silencer "0"
---> this will remove the silencer on every weapon and the player spawns with the "base" weapon
//Restrict certain equipment
set scr_allow_semtex_mp "0"
---> this will remove specified equipment and replace it by a default one you may define
Well, i guess you got the basic idea and dvars syntax.To shorten this i will just put some more examples:
set scr_allow_concussion_grenade "0" //disable an offhand grenade
set scr_allow_specialty_marathon "0" //disable a perk
set scr_allow_nuke "0" //disable a killstreak
Of course these are just examples!
The restricted things will be replaced by default ones when the player spawns. You may change them:
If there is more then one weapon etc. defined, one will be chosen randomly
//multiple definitions possible, seperated by a ,
set scr_default_primarys "m4,famas"
set scr_default_secondarys "usp"
set scr_default_perks1 "specialty_fastreload,specialty_scavenger"
set scr_default_perks2 "specialty_bulletdamage"
set scr_default_perks3 "specialty_bulletaccuracy,specialty_detectexplosive"
//only one defintion possible
set scr_default_equipment "frag_grenade_mp"
set scr_default_offhand "smoke_grenade"
set scr_default_deathstreak "none"
set scr_default_killstreak1 "uav"
set scr_default_killstreak2 "predator_missile"
set scr_default_killstreak3 "emp"
//Change the amount of consecutive kills needed for certain killstreaks
basic syntax
set scr_streakcount_harrier_airstrike "8"
--> killstreak of 8 needed to achieve harrier, the value has to be >2
//Other usefull dvars: 1= on 0 = off
set scr_one_flash "0" //only 1 stun/ flash instead of 2
set scr_one_stun "0"
set scr_nuke_all "1" //nuke kills all/enemies only
set scr_nuke_endsgame "1" //nuke ends the game / doesn't end it
set scr_restriction_messages "1" //show restriction messages to the player when he spawns
set scr_teambalance_new "1" //use alternative teambalance routine
set scr_allow_unbalance "0" //allow the player to choose the team which has already more players
If the restriction messages are enabled on the server, players can still disable/reenable for themselves by pressing actionslot2 button.
Credits to me (banz) and to lmaobox for the alternative getJoinTeamPermission function.
Please report any bugs.
UPDATE v1.1:
Virustotal v1.1:
https://www.virustotal.com/file/ff9d301 ... 344433120/
Virustotal dvarlist:
https://www.virustotal.com/file/09c80be ... 350673652/