Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Release] restrictions/ customizations mod v1.1

Опубликовано:

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)

	//blocking all ump45's
set scr_allow_ump45 "0"
//block ak with only gl attached 
set scr_allow_ak47_gl_mp "0"
//blocking all g18's with akimbo
set scr_allow_glock_akimbo_mp "0"
set scr_allow_glock_akimbo_fmj_mp "0"
set scr_allow_glock_akimbo_silencer_mp "0"
set scr_allow_glock_akimbo_xmags_mp "0"
//blocking all aa12's
set scr_allow_aa12 "0"
//remove all thermal attachments
set scr_allow_thermal "0"
//restrict claymore
set scr_allow_claymore_mp "0"
//restrict commando perk
set scr_allow_specialty_extendedmelee "0"

 

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:

set scr_allow_THINGTOBERESTRICTED "0"

 

//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_KILLSTREAKNAMEHERE VALUEHERE

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:

- better restriction messsage handling
- added a dvar list to the attachments

 

Virustotal v1.1:

https://www.virustotal.com/file/ff9d301 ... 344433120/

 

Virustotal dvarlist:

https://www.virustotal.com/file/09c80be ... 350673652/

  • Ответы 53
  • Просмотры 3,8k
  • Created
  • Последний ответ

Top Posters In This Topic

Featured Replies

Опубликовано:

set scr_default_killstreak1 "uav"

set scr_default_killstreak2 "precision_airstrike"

set scr_default_killstreak3 "helicopter_flares"

set scr_streakcount_uav "3"

set scr_streakcount_percision_airstrike "5"

set scr_streatcount_helicopter_flares "7"

 

 

Hi all. I try it but this fails. Uav run fine, but percision_airstrike still run at 6 kills and helicopter_flares at 9 kills. What is the problem?

Thanks in advance ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Account

Navigation

Поиск

Поиск

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.