How to delete weapon with i killed?
Hello!
Here I have this code: Code:
stock UTIL_Damage(attacker, victim, Float:fDamage, damagebits, ent = 0, const szWeapon[] = ""){Code:
UTIL_Damage(attacker, victim, 40.0, (1<<1), attacker, "");Cause i'm using this for skills in my mod. If i make ent = 0 i don't see DMG, but see skull, but if i make ent = attacker i see DMG, but see too weapon witch i killed. |
Re: How to delete weapon with i killed?
http://forums.alliedmods.net/showthr...skull+deathmsg
Use make_deathmsg or modify the deathmsg as it happens. |
Re: How to delete weapon with i killed?
I had item in Diablo which killing everyone from knife on one hit.
And when u used skill and u have knife this skill killed enemie on one hit. But I fixed it checking damagebits. Sorry for my english. Which damagebit corresponds to the DMG from knife? |
Re: How to delete weapon with i killed?
Bullet/gun and knife have the same damage bits for whatever reason so in addition to checking the bits you have to check attacker weapon.
const DMG_KNIFE = DMG_BULLET | DMG_NEVERGIB; if ( ( bitdmg & DMG_KNIFE ) == DMG_KNIFE ) |
Re: How to delete weapon with i killed?
So if i check in hamsandwich damagebits & DMG_BULLET and in my skill i make damage like (1<<31) will be good?
Yester day i try with DMG_BULLET on AWP and it works very fine. Okay, you can close this topic. I will try function from ur post. Thank you. |
| All times are GMT -4. The time now is 14:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.