how to format bit values
i'm trying to log all the parameters of Ham_TakeDamage but for damagebits i get 32 if i fell to my death.
But how do i format it to see which bits are used ? PHP Code:
This is the output when i fell to my death: Code:
L 01/09/2011 - 19:44:10: Log file started (file "cstrike\addons\amxmodx\takedamagelog.txt") (game "cstrike") (amx "1.8.1.3746") |
Re: how to format bit values
It's binary, there is only one answer. http://acc6.its.brooklyn.cuny.edu/~g.../nav2tool.html
Programmatically, you can loop and compare each bit to the damage bit variables (hlsdk_const.inc). |
Re: how to format bit values
I get the binary stuff, but i don't know how to convert it to (1<<0) for example.
I'll try to loop and compare them. Thanks. |
Re: how to format bit values
Quote:
|
Re: how to format bit values
will do, thanks.
|
Re: how to format bit values
If you don't find anything in the thread fysiks directed you to, try this.
PHP Code:
|
Re: how to format bit values
Thanks Bugsy, and thanks for your bit tutorial too, it's been very helpful.
|
| All times are GMT -4. The time now is 02:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.