Raised This Month: $ Target: $400
 0% 

Damage message, help with DamageType


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 09-06-2017 , 17:13   Re: Damage message, help with DamageType
Reply With Quote #9

Quote:
Originally Posted by kristi View Post
Shouldn't it be (damagebits & DMG_BULLET) ?
not really, read more about bitsums....

(damagebits & DMG_BULLET) its if damagebits contain 2 >> lets imagine thats damagebits carry this bitsum value which is 1111 and DMG_BULLET value its 2 which in bitsum its 0010

so the & operator works like this (1111 & 0010) will return this bitsum value 0010 which its 2.

and (damagebits == DMG_BULLET) this condition will only works when its only a bullet damage.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 09-06-2017 at 18:02.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode