Перейти к содержимому
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.

meleebuttonpressed, destroyglass, setweaponammoclip

Featured Replies

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

I have a couple of quesion I hope you guys can aswer for me :P

 

So here we go:

I was looking through the source of the InfinityScript and I found this:

 

Function.AddMapping("meleebuttonpressed", 33536);
Function.AddGlobalMapping("destroyglass", 427);
Function.AddGlobalMapping("deleteglass", 428);

Can this be used to enable knifing of windows (glass) with the NoKnife mod running?

Because I tried to do this in several ways but it doesn't seem to work for me :(

 

The other thing I was having trouble with is the following:

When I use this code my server just instantly crashes -_-

 

public override void OnPlayerKilled(Entity player, Entity inflictor, Entity attacker, int damage, string mod, string weapon, Vector3 dir, string hitLoc)
       {

           if (attacker.IsAlive)
           {
               entity.Call("setWeaponAmmoClip", "iw5_44magnum_mp_tactical", "3");
           }
       }

What am I doing wrong here?

 

I hope someone can help me out with this :D

Any help is appreciated!

Опубликовано:
Aalalex":3bu93kyu]I have a couple of quesion I hope you guys can aswer for me :P

 

So here we go:

I was looking through the source of the InfinityScript and I found this:

 

Function.AddMapping("meleebuttonpressed", 33536);
Function.AddGlobalMapping("destroyglass", 427);
Function.AddGlobalMapping("deleteglass", 428);

Can this be used to enable knifing of windows (glass) with the NoKnife mod running?

Because I tried to do this in several ways but it doesn't seem to work for me :(

 

The other thing I was having trouble with is the following:

When I use this code my server just instantly crashes -_-

 

public override void OnPlayerKilled(Entity player, Entity inflictor, Entity attacker, int damage, string mod, string weapon, Vector3 dir, string hitLoc)
       {

           if (attacker.IsAlive)
           {
               entity.Call("setWeaponAmmoClip", "iw5_44magnum_mp_tactical", "3");
           }
       }

What am I doing wrong here?

 

I hope someone can help me out with this :D

Any help is appreciated!

what ru trying to make?

Опубликовано:
  • Автор

I want to add some additions to an iSnipe mod.

For example:

- Knifing is disabled but you can knife glass.

- And a custom killstreak where you get secondary bullets as a reward.

Опубликовано:
  • Автор
Why not, simply lower the damage of the melee to break Windows and do not kill

 

Because I am not sure it is that easy as you said and I want to see if it works this way aswell.

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

NoKnife source is directly copied from ItsMods. All it does it setting the knife range to 0.

 

SetWeaponAmmoClip parameters are and . That's probably why it crashes.

Join the conversation

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

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

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

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

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

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

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.