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

In OnPlayerDamage(Entity player, Entity inflictor, Entity attacker, int damage, int dFlags, string mod, string weapon, Vector3 point, Vector3 dir, string hitLoc) who is inflictor and also what is dflags,point and dir?

Featured Replies

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

The entity that is attacking.

 

And the various damage flags:

	// code-defined:
level.iDFLAGS_RADIUS						= 1;	// damage was indirect
level.iDFLAGS_NO_ARMOR						= 2;	// armor does not protect from this damage
level.iDFLAGS_NO_KNOCKBACK					= 4;	// do not affect velocity, just view angles
level.iDFLAGS_PENETRATION					= 8;	// damage occurred after one or more penetrations
level.iDFLAGS_STUN							= 16;	// non-lethal
level.iDFLAGS_SHIELD_EXPLOSIVE_IMPACT		= 32;	// missile impacted on the front of the victim's shield
level.iDFLAGS_SHIELD_EXPLOSIVE_IMPACT_HUGE	= 64;	//   ...and was from a projectile with "Big Explosion" checked on.
level.iDFLAGS_SHIELD_EXPLOSIVE_SPLASH		= 128;	// explosive splash, somewhat deflected by the victim's shield

// script-defined:
level.iDFLAGS_NO_TEAM_PROTECTION			= 256;
level.iDFLAGS_NO_PROTECTION					= 512;
level.iDFLAGS_PASSTHRU						= 1024;

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.