Weapons making no damage
#1

Hi, I'm on a project and actually, we can take damages from fists or melee weapons and even grenades/flames, but absolutely 0 damage from bullet weapons.

There are no teams, only one class and I don't know what else can cause that. Thanks for your help.
Reply
#2

Hey. Can you show your OnPlayerTakeDamage & OnPlayerGiveDamage ?
Reply
#3

Do you return 0 in OnPlayerWeaponShot?

(0 - no damage)
Reply
#4

There are none of what you cited both, should I add them?
Reply
#5

PHP код:
public OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
   return 
0;

This callback is called when a player fires a shot from a weapon. Only bullet weapons are supported

So will prevent damage from bullet weapons
(NOTE: driver driveby/ vehicle shoot(EG: sea sparrow)) is not supported
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)