DucaRii / csgo_modest

simple csgo cheat base
MIT License
123 stars 19 forks source link

Pretty sure CCSWeaponData is wrong #12

Closed outlassn closed 5 years ago

outlassn commented 5 years ago

Just tested grabbing weapon type, didn't work until I updated the struct.

working struct:

struct CCSWeaponData
{   
    char pad_0000[ 0x4 ];                       //0x0000
    char* console_name;                     //0x0004
    char pad_0008[ 0xc ];                       //0x0008
    int32_t max_clip_1;                     //0x0014
    int32_t max_clip_2;                     //0x0018
    int32_t default_clip_1;                     //0x001C
    int32_t default_clip_2;                     //0x0020
    int32_t max_reserved_ammo;                  //0x0024
    char pad_0028[ 0x4 ];                       //0x0028
    char* world_model;                      //0x002C
    char* view_model;                       //0x0030
    char* dropped_model;                        //0x0034
    char pad_0038[ 0x4 ];                       //0x0038
    char* shot_sound;                       //0x003C
    char pad_0040[ 0x38 ];                      //0x0040
    char* empty_sound;                      //0x0078
    char pad_007C[ 0x4 ];                       //0x007C
    char* bullet_type;                          //0x0080
    char pad_0084[ 0x4 ];                       //0x0084
    char* hud_name;                         //0x0088
    char* weapon_name;                      //0x008C
    char pad_0090[ 0xC ];                       //0x0090
    int32_t weight;                         //0x009C
    char pad_00A0[ 0x28 ];                      //0x00A0
    CSWeaponType weapon_type;                   //0x00C8
    char pad_00CC[ 0x4 ];                       //0x00CC
    int32_t weapon_price;                       //0x00D0
    int32_t kill_reward;                        //0x00D4
    char* animation_prefix;                     //0x00D8
    float_t cycle_time;                     //0x00DC
    float_t cycle_time_alt;                     //0x00E0
    float_t time_to_idle;                       //0x00E4
    float_t idle_interval;                      //0x00E8
    bool full_auto;                         //0x00EC
    char pad_00ED[ 0x3 ];                       //0x00ED
    int32_t damage;                         //0x00F0
    float_t armor_ratio;                        //0x00F4
    int32_t bullets;                        //0x00F8
    float_t penetration;                        //0x00FC
    float_t flinch_velocity_modifier_large;             //0x0100
    float_t flinch_velocity_modifier_small;             //0x0104
    float_t range;                          //0x0108
    float_t range_modifier;                     //0x010C
    char pad_0110[ 0x10 ];                      //0x0110
    bool has_silencer;                      //0x0120
    char pad_0121[ 0x3 ];                       //0x0121
    char* silencer_model;                       //0x0124
    int32_t crosshair_min_distance;                 //0x0128
    int32_t crosshair_delta_distance;               //0x012C
    float_t max_player_speed;                   //0x0130
    float_t max_player_speed_alt;                   //0x0134
    float_t max_player_speed_mod;                   //0x0138
    char pad_013C[ 0x48 ];                      //0x013C
    int32_t recoil_seed;                        //0x0184
    float_t recoil_angle;                       //0x0188
    float_t recoil_angle_alt;                   //0x018C
    float_t recoil_angle_variance;                  //0x0190
    float_t recoil_angle_variance_alt;              //0x0194
    float_t recoil_magnitude;                   //0x0198
    float_t recoil_magnitude_alt;                   //0x019C
    float_t recoil_magnitude_variance;              //0x01A0
    float_t recoil_magnitude_variance_alt;              //0x01A4
    char pad_01A8[ 0x4 ];                       //0x01A8
    float_t recovery_time_crouch;                   //0x01AC
    float_t recovery_time_stand;                    //0x01B0
    float_t recovery_time_crouch_final;             //0x01B4
    float_t recovery_time_stand_final;              //0x01B8
    int32_t recovery_transition_start_bullet;           //0x01BC
    int32_t recovery_transition_end_bullet;             //0x01C0
    bool unzoom_after_shot;                     //0x01C4
    bool hide_viewmodel_zoom;                   //0x01C5
    char pad_0x01B5[ 0x2 ];                     //0x01C6
    char zoom_levels[ 0x3 ];                    //unk
    int32_t zoom_fov[ 0x2 ];                    //unk
    float_t zoom_time[ 0x3 ];                   //unk
    char* addon_location;                       //0x01E0
    char pad_01E4[ 0x4 ];                       //0x01E4
    float_t addon_scale;                        //0x01E8
    char* eject_brass_efect;                    //0x01EC
    char* tracer_effect;                        //0x01F0
    int32_t tracer_frequency;                   //0x01F4
    int32_t tracer_frequency_alt;                   //0x01F8
    char* muzzle_flash_effect_first_person;             //0x01FC
    char pad_0200[ 0x4 ];                       //0x0200
    char* muzzle_flash_effect_third_person;             //0x0204
    char pad_0208[ 0x4 ];                       //0x0208
    char* heat_effect;                      //0x020C
    float_t heat_per_shot;                      //0x0210
    char* zoom_in_sound;                        //0x0214
    char* zoom_out_sound;                       //0x0218
    float_t inaccuracy_pitch_shift;                 //0x021C
    float_t inaccuracy_sound_threshold;             //0x0220
    float_t bot_audible_range;                  //0x0224
    char pad_0228[ 0x8 ];                       //0x0228
    char* wrong_team_msg;                       //0x0230
    bool has_burst_mode;                        //0x0234
    char pad_0235[ 0x3 ];                       //0x0235
    bool is_revolver;                       //0x0238
    bool cannot_shoot_underwater;                   //0x0239
};
DucaRii commented 5 years ago

What field gave wrong outputs?

outlassn commented 5 years ago

weapon_type wasnt working when I tested with the old struct, knife was returning as 1 not 0 etc

DucaRii commented 5 years ago

Yeah you should know that there are 2 different weapontypes i found. The one you may be searching for is at weapon_type - 0x4.

outlassn commented 5 years ago

huh, didnt know that. does that type allow for checking things such as C4 as in the original struct the weapon type for C4 and grenades were always 0, regardless the weapon type that I use is the -0x4 one and if it is intentionally 4 bytes up from that, theres no bug to worry about

DucaRii commented 5 years ago

I do believe so. If there's any other issues be sure to shoot me your discord and I'll add you.

outlassn commented 5 years ago

my discord is outlassn#0999 I'll let you know if I see any issues