Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bIsTool = KeyValues::GetBool(this->kv, "is_tool", 0, 0);// if "is_tool" is "1"
- bSomeCondition = 1;
- if ( !bIsTool ) // if "is_tool" is not "1"
- {
- sItemClass = *(_DWORD *)(this + 204); // get "item_class"
- bSomeCondition = 0;
- if ( sItemClass ) // if "item_class" is not empty
- bSomeCondition = V_stricmp(sItemClass, "tool") == 0;// if "item_class" is not "tool"
- }
- *(_BYTE *)(this + 149) = bSomeCondition; //this->m_bSomeCondition
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement