Перейти к содержимому
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.
Опубликовано:

So this piece of code basically prevents user from planting the bomb in Search and Destroy, Sabotage or Demolition.

Which can come in handy with iSnipe for example.

(I have only tested it with Search and Destroy but I don't see why it would not work with the other gamemodes).

 

Code:

            PlayerConnected += new Action(entity =>
           {

               entity.OnInterval(500, (ent) =>
                   {
                       if (entity.CurrentWeapon.Equals("briefcase_bomb_mp"))
                       {
                           entity.TakeWeapon("briefcase_bomb_mp");

                           //Switch back the the player's weapon here.....Kinda optional

                           entity.Call("iprintlnbold", "You are not allowed to plant the bomb!");
                       }
                       return true;
                   });

 

This is very simple but I haven't seen anyone use it and because it can come in handy I figured I'd post this.

 

Example Video:

 

  • Approved by Pigophone on 4/11/12

Featured Replies

Опубликовано:
Well done, this can help with quite a few things.

... how would 'blocking the objective of the gametype the server is running' help with anything?

As some people tend to like and host user-based 'mods'/scripts such as iSnipe, in which(you probably know) you're not allowed to plant the bomb.

Опубликовано:
... how would 'blocking the objective of the gametype the server is running' help with anything?

I wondered exactely the same when I first saw this topic...

 

gameOpt gametype "war"
gameOpt commonOption.numLives "1"
gameOpt commonOption.scoreLimit "8"

Isn't this the same?

1 life (no respawn) like SD, 8 rounds like SD, no bomb planting because it's TDM...

Опубликовано:
  • Автор
... how would 'blocking the objective of the gametype the server is running' help with anything?

I wondered exactely the same when I first saw this topic...

 

gameOpt gametype "war"
gameOpt commonOption.numLives "1"
gameOpt commonOption.scoreLimit "8"

Isn't this the same?

1 life (no respawn) like SD, 8 rounds like SD, no bomb planting because it's TDM...

 

Does it really work that way? I don't think so because I haven't seen it in the past (iw4m) But hey I'll give it a try

Опубликовано:
  • Автор
It's that easy and it DOES work in IW4M aswell.

Server.cfg:

set g_gametype "war"
set scr_war_numlives "1"
set scr_war_roundlimit "0"
set scr_war_winlimit "8"

 

hmm I wonder why people did not do it that way with iSnipe in the past?

Опубликовано:
Aalalex":3s5pw6hl]hmm I wonder why people did not do it that way with iSnipe in the past?

Most people tend to think that an IW4M's cfg is just hostname, rcon password and map rotation...

Most people think that TDM is one round, infinite respawn and that's it. Most people think that "g_hardcore 1" and "scr_player_maxhealth 30" is the same, and so on.

That's why you rarely see a fine tuned server.

I still get people asking me if there's some promod for IW5M, for them to restrict weapons on their servers... (for the ones reading this, you do that on the recipe files on IW5M)

Опубликовано:
  • Автор
Most people tend to think that an IW4M's cfg is just hostname, rcon password and map rotation...

Most people think that TDM is one round, infinite respawn and that's it. Most people think that "g_hardcore 1" and "scr_player_maxhealth 30" is the same, and so on.

That's why you rarely see a fine tuned server.

I still get people asking me if there's some promod for IW5M, for them to restrict weapons on their servers... (for the ones reading this, you do that on the recipe files on IW5M)

 

Hmm ok so that makes this topic completely useless anyways.....

If you want...you can of course delete this topic.

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

That's what happens when I say something before I actually test it...

It actually works on IW4M (just been testing both games) but although the commands are on the dsr on IW5, they won't work because IW5 will load presets on it's very own style...

Then I loaded a SnD dsr, changed the game to TDM through rcon and fast_restarted. It kept the numlives as 1, but changing the gametype to TDM forced the server to be 1 round only, wich means that it changed map right after I killed the only opponent that I had there (fast_restart should have reload the SnD dsr wich was set to 8 rounds limit).

So, since ATVI's devs decided to fuck up some more commands on IW5 dedis, (by forcing commands) your script is the only way to have a multiple round Team Deathmatch, and to have numlives defined on the dsr without tweaks.

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.