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

Featured Replies

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

Hey. So few weeks ago, we started our own 4d1 server which has became kinda popular. Now we're wondering on how to lower ump damage since it's heavily overpowered. I read the tutorial regarding modifying weapon stats, but no matter how I type the code, ump damage stays the same in game. This is what my currect damage gsc looks like (the important part):

Callback_PlayerDamage_internal( eInflictor, eAttacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime )
{

if ( getDvar("g_gametype") == "oitc" && sWeapon == "turret_minigun_mp" || getDvar("g_gametype") == "gg" && sWeapon == "turret_minigun_mp" || getDvar("g_gametype") == "ss" && sWeapon == "turret_minigun_mp" )
{
	iDamage = 0;
}
       if(isSubStr(sWeapon, "ump45_")) // if you want the weapon to do the damage no matter which attachments

	iDamage = 1;

if ( !isReallyAlive( victim ) )
	return;

 

So, I download my server's iw_25.iwd, change it to .zip, extract it, modify the .gsc file like that and then reverse the progress and upload it back. Nothing happens, the damage stays the same.

 

I also noticed that there's a separate _damage.gsc file in a different folder, but replacing that doesn't help neither.

 

I tried searching, but none of the threads I came across really proved to be much help.

 

Thanks.

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

Right thanks, i'll try it out when the server is less crowded.

 

Second question, I noticed killcams aren't slow-mo'ed in 4d1 as they were in mw2, is there any non-mod way of fixing this?

EDIT: Never mind, I figured that out myself.

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

Yep, big thanks to you guys, got it working. I set it to 30 which means 3-shot kills with stopping power. Not overpowered, nor underpowered.

 

The reason why it didn't work in the first place was cause my server had some auto-update function which immediately replaced my modified _damage.gsc upon uploading it. The admin disabled that function and voilГЎ, it works like a charm.

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

Hmm, I came across a weird bug now. When I lowered ump damage down, also melee attack (knifing) deals 30 damage with UMP. What's going on? How is this even possible? Help is appreciated. Thanks

Опубликовано:
Hmm, I came across a weird bug now. When I lowered ump damage down, also melee attack (knifing) deals 30 damage with UMP. What's going on? How is this even possible? Help is appreciated. Thanks

You also have to add (&& sMeansOfDeath != "MOD_MELEE") because even when meleeing the sWeapon is still ump so yea.

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

Okay, thanks. Do I need to define MOD_MELEE damage separately or it's written in that function already?

 

 

if(isSubStr(sWeapon, "ump45_")) (&& sMeansOfDeath != "MOD_MELEE")

{

iDamage = 1; //means 1 bullet does 1 damage

}

 

Sorry, im noob with gsc but i'd like to learn. Is that even close to how i should type it?

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.