Mob speed problem.

03/30/2010 01:48 DizFtw#1
When I vac, I'm either moving too quick or the mobs too slow. I kinda attempted to fix it by changing the speed in the scripts, which failed. The mobs were going fast enough but were just getting lost now.

My mob speed script -
[ENABLE]
alloc(DrakoMobSpeed,64)
label(MobIsWalking)
label(ReturnMobSpeed)
label(MobRunSpeed)
label(MobWalkSpeed)
registersymbol(MobRunSpeed)
registersymbol(MobWalkSpeed)

005471A0: //80 7C 24 04 00 74 06 D9 40 70
jmp DrakoMobSpeed
ReturnMobSpeed:

DrakoMobSpeed:
cmp byte ptr [esp+04],00
je MobIsWalking
fld dword ptr [MobRunSpeed]
ret 0004
MobIsWalking:
fld dword ptr [MobWalkSpeed]
ret 0004
MobRunSpeed:
db 00 00 60 41
MobWalkSpeed:
db 00 00 40 40

[DISABLE]
dealloc(DrakoMobSpeed)
unregistersymbol(MobRunSpeed)
unregistersymbol(MobWalkSpeed)
005471A0:
cmp byte ptr [esp+04],00





My speed hack -
[ENABLE]
alloc(DrakoSpeed,16)
label(ReturnSpeed)
label(SpeedValue)
registersymbol(SpeedValue)

0082523A: //D9 40 08 5F 5E C3 8B 0D
jmp DrakoSpeed
ReturnSpeed:

DrakoSpeed:
fld dword ptr [SpeedValue]
pop edi
pop esi
jmp ReturnSpeed
SpeedValue:
db 00 00 20 41

[DISABLE]
dealloc(DrakoSpeed)
unregistersymbol(SpeedValue)
0082523A:
fld dword ptr [eax+08]
pop edi
pop esi

Solutions?
03/30/2010 03:03 Toxicat#2
After going in game with your hacks on, go to CE window and click on add adress manually, fill in the pop up like this:

Address: MobRunSpeed
Discription: Anything will do, can leave blank if you want.
Type: Float

Then hit OK and freeze the value that should be set at 10. Edit that number accordingly to the speed you want mobs to have.

This also applies to your character's speed, just add another adress, but instead of using MobRunSpeed, use SpeedValue as address.


Note: Its amusing how people dont know how to use float values. Hope this helps more people.
03/30/2010 04:40 playboyx#3
everything you need is in here
[Only registered and activated users can see links. Click Here To Register...]
03/30/2010 04:49 Toxicat#4
Using float values is easier, cause you dont have to work with hex numbers.