Results 1 to 10 of 34

Thread: Weapon functions (+ setMoveSpeedScale)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #14
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Here are the addresses required to get setg_speed working on 1.0
    Code:
    //libcod.cpp
    #if COD_VERSION == COD2_1_0
    	cracking_hook_call(0x080F50AB, (int)hook_player_g_speed);
    #elif COD_VERSION == COD2_1_3
    	cracking_hook_call(0x080F7803, (int)hook_player_g_speed);
    
    //gsc_player.cpp
    #if COD_VERSION == COD2_1_0
    	calc_client_speed_t calc_client_speed = (calc_client_speed_t)0x0811FB7A;
    #else
    	calc_client_speed_t calc_client_speed = (calc_client_speed_t)0x0812200A;
    #endif
    Last edited by filthy_freak_; 20th May 2015 at 22:57.

  2. The Following 2 Users Say Thank You to filthy_freak_ For This Useful Post:

    kung foo man (20th May 2015),Mitch (21st May 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •