CPointer* CBinaryFile::FindAddress(object oIdentifier) { #ifdef _WIN32 if(CheckClassname(oIdentifier, "bytes")) return FindSignature(oIdentifier); #endif return FindSymbol(extract<char*>(oIdentifier)); }
CVector* CVector::operator/(object value) { if (CheckClassname(value, "CVector")) { CVector other = extract<CVector>(value); return new CVector(m_Vector / other); } float fValue = extract<float>(value); return new CVector(m_Vector / fValue); }
CVector* CVector::operator-(object value) { if (CheckClassname(value, "CVector")) { CVector other = extract<CVector>(value); return new CVector(m_Vector - other); } float fValue = extract<float>(value); // CS:GO SDK does not define Vector::operator+(float fValue), so we make it easy // and create a new vector return new CVector(m_Vector - CVector(fValue, fValue, fValue)); }