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

Опубликовано:
Why not remove the use of grenade launchers?

Remember, I tried to ask you how to make a class?

 

How do I ban it from a class?

if im correct open up _class.gsc

and find

isValidEquipment( refString )
{
switch ( refString )
{
	case "frag_grenade_mp":
	case "semtex_mp":
	case "throwingknife_mp":
	case "specialty_tacticalinsertion":
	case "specialty_blastshield":
	case "claymore_mp":
	case "c4_mp":
		return true;
	default:
		assertMsg( "Replacing invalid equipment: " + refString );
		return false;
}
}

// just remove frag and semtex notsure if it works though

Опубликовано:
how can i make rpg damage 50 ONLY to people and not killstreaks?

 

You mean 50 damage 'points' or 50% of the default damage they do?

 

if ( ( sWeapon == "rpg_mp" || sWeapon == "at4_mp" || sWeapon == "javelin_mp" ) && isPlayer( victim ) )	
	iDamage *= 0.5; //or iDamage = 50; if you want 50 damage only...

 

copy this over to _damage.gsc (get it from m2demo/maps/mp/gametypes folder) like this:

 

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 ( ( sWeapon == "rpg_mp" || sWeapon == "at4_mp" || sWeapon == "javelin_mp" ) && isPlayer( victim ) )	
	iDamage *= 0.5; 

Опубликовано:
@banz: the function is called 'playerdamage' yet you still check if the entity is a player ))

Yup just saw that e.g.damage you deal to harrier etc. is handled in : Callback_VehicleDamage( inflictor, attacker, damage, dFlags, meansOfDeath, weapon, point, dir, hitLoc, timeOffset, modelIndex, partName )

and therefore the isplayer() thingy for victim is kinda stupid/unnecessary and makes only sense for eattacker in there.... But eh damage reduction still works of course.

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

 

[attachment=0]explosives.rar[/attachment]

 

 

(Haven't tested it)

 

yeah, but the code is for people AND aircraft. All I need is for people only.

>implying anyone has EVER destroyed aircraft in mw2 with rpg

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

 

[attachment=0]explosives.rar[/attachment]

 

 

(Haven't tested it)

 

yeah, but the code is for people AND aircraft. All I need is for people only.

>implying anyone has EVER destroyed aircraft in IW4 with rpg

 

im running a cod4 mod, no stinger allowed to take out attack helis. RPG only possible :/

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

[attachment=0]explosives.rar[/attachment]

 

(Haven't tested it)

 

yeah, but the code is for people AND aircraft. All I need is for people only.

 

The damage you deal to helicopters, harriers etc. is handled in _helicopter.gsc , _harrier.gsc etc.,

so what Rendflex did should be enough.

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

[attachment=0]explosives.rar[/attachment]

 

(Haven't tested it)

 

yeah, but the code is for people AND aircraft. All I need is for people only.

 

The damage you deal to helicopters, harriers etc. is handled in _helicopter.gsc , _harrier.gsc etc.,

so what Rendflex did should be enough.

 

I'm just using your code

 

if ( ( sWeapon == "rpg_mp" || sWeapon == "at4_mp" || sWeapon == "javelin_mp" ) && isPlayer( victim ) )   
     iDamage *= 0.5; //or iDamage = 50; if you want 50 damage only...

 

seems fine, havent tested it out on helis :P

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.