Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AtomicBool committed Jun 19, 2024
1 parent 5647f97 commit a6c9882
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cs_dma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ void UpdatePlayers(){
for(int i = 0; i < 64; i++){
PlayerController PlayerController = getController(EntityListEntry, i);
PlayerPawn PlayerPawn = PlayerController.getPawn(EntityListEntry);

if(radar){
std::string player_name = PlayerController.getName();
if(radar && player_name.empty()){ //stupid way but works
json m_player_data{};
m_player_data["m_idx"] = i;
m_player_data["m_name"] = PlayerController.getName();
Expand Down
4 changes: 2 additions & 2 deletions game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ uint64_t getEntityByClassName(std::string class_name)
for(int i = 64; i < 1024; i++){
uint64_t entity_addr = getControllerByID(i);
// m_pentity: 0x10; m_designername: 0x20;
std::string entity_name = mem.readString(mem.Read<uint64_t>(mem.Read<uint64_t>(entity_addr + 0x10) + 0x20));
if(entity_name.find(class_name) != std::string::npos){
std::string entity_type_name = mem.readString(mem.Read<uint64_t>(mem.Read<uint64_t>(entity_addr + 0x10) + 0x20));
if(entity_type_name.find(class_name) != std::string::npos){
return entity_addr;
}
}
Expand Down

0 comments on commit a6c9882

Please sign in to comment.