you mean weapon range ?
but what is M41A ? it's used in other games, but not in avp. since im not idiot, im guessing you meant pulse rifle ?
float ? bytes ?
Nooblet, if you want to write your findings into a blog, like paraxxxito did, then open a blog on main page and PM me, i will link to it in the first post.
yes ppl, i updated first post and linked to paraxxxito's avp hacking blog. he will post his research and findings in there.
NOTE: you CAN replace a whole hex string using Tsearch, you simply need to know the address. easy write can do that. also the method i started to use, using ammo breakpoint as base, in this way you can overwrite whole weapons. just copy the specs from some other weapon, but keep in mind that hex view is reversed. you need to insert it backwards.
00 11 22 33 88 77 44 55 < this is obviously 2 addresses on float, if you want to insert that using easy write, you need to do the following:
> im not talking about ASM in overall, it is avp specific. avp uses 4 byte float. it means that it allocates 4 bytes and uses float values there. so if you add first address on float, you will see the whole value on it.
actually 00 11 22 33 IS a float value, it just begins from RIGHT and goes to left.
you can use this calculator to get the values > IEEE-754 Floating-Point Conversion
value 2 in float would be 40000000 and in hew view it would be reversed, like so > 00 00 00 40
you don't reverse the value on byte, but just the bytes itself.
ah, thats what it was ! i found some value saying 100 for pulse, but i didn't know wtf it is, when i replaced my flamethrower with pulse, it gave huge range boost. so yeah, it works. i will modify my ASM code and make range 10000 for all weapons.
updated first post, it is +34 from ammo in clip and breakpoint function would be
mov DWORD PTR DS:[ECX+44],0x42C80000
which sets range to 100. as i said, i had it in my code already, just didn't know what it is. yesterday i tried to replace any weapon with pulse
461C4000 < 10000 in float, use this in ASM to get 10000 range.