Page 1 of 1

How to script that? Function with different timers

Posted: Sun Nov 17, 2019 8:41 pm
by MartaLabieniec
Hello People,

I have a function which is having a timers of all enemies - to be more correct, when someone shoot in you or shoot in the sky, on the little radar, the enemy who shot will appear on few seconds in the radar, then when the timer will deplete, the person from radar dissapear.

And I found a function which has timers of all enemies.

When I am starting new round with new enemies, I can wait for all enemies to shoot, then when they addresses will load, I can freeze their timers and they will be all the time on the radar - I know that the value when the timer is starting is 2000 in 4-Bytes Decimal and it is counting down to 0.
Every enemy has the same timer - from 2000 to 0.

My function is: movd xmm0,[ebx+00000314]

I was trying to write a 2000 value into [ebx+00000314] but it is not working.

How can I write a value to all addresses which this function has sharing or accessing?

Thank you for your help.

Marta.

Re: How to script that? Function with different timers

Posted: Sun Nov 17, 2019 9:47 pm
by Dread_Pony_Roberts
If you just want to change [ebx+00000314] then you can try this.

mov [ebx+00000314],(double)2000


If you want to move it directly to xmm0 then you can try this.

alloc(timer,16)

mov [timer],(double)2000
movd xmm0,[timer]