designer1337 / csgo-cheat-base

simple csgo internal base.
MIT License
242 stars 50 forks source link

i_net_channel_info stuff not working #6

Closed HoppaC4 closed 4 years ago

HoppaC4 commented 4 years ago

i cant get latency, its always showing 0.00000etc my get latency function: int get_latency() { i_net_channel_info* net_channel = interfaces::engine->get_net_channel_info(); if(net_channel) return net_channel->get_average_latency(2) * 1000; } my get_net_channel_info: i_net_channel_info* get_net_channel_info() { using original_fn = i_net_channel_info *(__thiscall*)(iv_engine_client*); return (*(original_fn * *)this)[78](this); } i_net_channel_info class: `class i_net_channel_info { public:

enum {
    GENERIC = 0,    // must be first and is default group
    LOCALPLAYER,    // bytes for local player entity update
    OTHERPLAYERS,   // bytes for other players update
    ENTITIES,       // all other entity bytes
    SOUNDS,         // game sounds
    EVENTS,         // event messages
    USERMESSAGES,   // user messages
    ENTMESSAGES,    // entity messages
    VOICE,          // voice data
    STRINGTABLE,    // a stringtable update
    MOVE,           // client move cmds
    STRINGCMD,      // string command
    SIGNON,         // various signondata
    TOTAL,          // must be last and is not a real group
};

virtual const char* get_name(void) const = 0;   // get channel name
virtual const char* get_address(void) const = 0; // get channel IP address as string
virtual float       get_time(void) const = 0;   // current net time
virtual float       get_time_connected(void) const = 0; // get connection time in seconds
virtual int         get_buffer_size(void) const = 0;    // netchannel packet history size
virtual int         get_data_rate(void) const = 0; // send data rate in byte/sec

virtual bool        is_loop_back(void) const = 0;   // true if loopback channel
virtual bool        is_timing_out(void) const = 0;  // true if timing out
virtual bool        is_play_back(void) const = 0;   // true if demo playback

virtual float       get_latency(int flow) const = 0;     // current latency (RTT), more accurate but jittering
virtual float       get_average_latency(int flow) const = 0; // average packet latency in seconds
virtual float       get_average_loss(int flow) const = 0;    // avg packet loss[0..1]
virtual float       get_average_choke(int flow) const = 0;   // avg packet choke[0..1]
virtual float       get_average_data(int flow) const = 0;    // data flow in bytes/sec
virtual float       get_average_packets(int flow) const = 0; // avg packets/sec
virtual int         get_total_data(int flow) const = 0;  // total flow in/out in bytes
virtual int         get_sequence_number(int flow) const = 0;    // last send seq number
virtual bool        is_valid_packet(int flow, int frame_number) const = 0; // true if packet was not lost/dropped/chocked/flushed
virtual float       get_packet_time(int flow, int frame_number) const = 0; // time when packet was send
virtual int         get_packet_bytes(int flow, int frame_number, int group) const = 0; // group size of this packet
virtual bool        get_stream_progress(int flow, int* received, int* total) const = 0;  // TCP progress if transmitting
virtual float       get_since_last_time_recieved(void) const = 0;   // get time since last recieved packet in seconds
virtual float       get_command_interpolation_ammount(int flow, int frame_number) const = 0;
virtual void        get_packet_response_latency(int flow, int frame_number, int* pnLatencyMsecs, int* pnChoke) const = 0;
virtual void        get_remote_framerate(float* pflFrameTime, float* pflFrameTimeStdDeviation) const = 0;

virtual float       get_timeout_seconds() const = 0;

};`

designer1337 commented 4 years ago

https://pastebin.com/4GNJJ42p

i can't tag code properly, github is retarted. hope u get the idea

HoppaC4 commented 4 years ago

https://pastebin.com/4GNJJ42p

i can't tag code properly, github is retarted. hope u get the idea

ty works :)