ItsMods

Full Version: Does this work?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
(09-21-2011, 20:01)SuperNovaAO Wrote: [ -> ]
(09-21-2011, 19:59)Pozzuh Wrote: [ -> ]As I understand it, it works like this
00101011 = 83
00000111 = 15
00000011 = 3
Both numbers have the last 1s in common.

Yes, this is how a CPU sees it. No idea if it's implemented properly in CoDScript.

I believe it is. Not in any cod before black ops though.
(09-21-2011, 20:02)Pozzuh Wrote: [ -> ]
(09-21-2011, 20:01)SuperNovaAO Wrote: [ -> ]
(09-21-2011, 19:59)Pozzuh Wrote: [ -> ]As I understand it, it works like this
00101011 = 83
00000111 = 15
00000011 = 3
Both numbers have the last 1s in common.

Yes, this is how a CPU sees it. No idea if it's implemented properly in CoDScript.

I believe it is. Not in any cod before black ops though.

I saw Zeroy used it for a cod4 mod... but its

Code:
if( i & 1 )
Google bitwise opearators. It's implemented in many languages such as C, C++, C#, VB, etc. I'm not sure if it's implemented in GameScript language but if it is, it should work. I'm not sure if it equals to 5 though, on my phone :3
(09-21-2011, 20:10)iAegle Wrote: [ -> ]but its

Code:
if( i & 1 )

Wtf are you talking about. That is A way to check some bits. In this case ONE bit. The least significant.

You can describe this line as checking if a number is uneven.
Because for every uneven number that is represented as a bit string the LSB is set to on.
I've got a code-error=232176378123x=%718888
(09-24-2011, 10:32)dafiz Wrote: [ -> ]I've got a code-error=232176378123x=%718888

he should be banned....
LOL this was the best spam post i've read
Best 10 post douchebag yet
olol Narwhal
Quote: (report) SuperNovaAO - 24-09 15:50 -- lots and lots of votes get removed after sunday.
Thank you @SuperNovaAO , OMA for you
Pages: 1 2