![]() |
![]() |
JohnnyAxe |
![]()
Post
#1
|
![]() Member ![]() ![]() Group: Members Posts: 33 Joined: 7-July 09 From: Portugal Member No.: 1,604 ![]() |
Since 'The Classless Update' was released, I can't play with bots anymore.
It's the usual 'hl2.exe has stopped working' message as soon as I try adding bots. |
![]() ![]() |
bir3yk |
![]()
Post
#2
|
RCBot Fan ![]() ![]() ![]() ![]() Group: Members Posts: 107 Joined: 4-June 09 Member No.: 1,566 ![]() |
CODE // -------------------------------------------------------------------------------------------------------------- // // SendProp. // -------------------------------------------------------------------------------------------------------------- // // If SendProp::GetDataTableProxyIndex() returns this, then the proxy is one that always sends // the data to all clients, so we don't need to store the results. #define DATATABLE_PROXY_INDEX_NOPROXY 255 #define DATATABLE_PROXY_INDEX_INVALID 254 class SendProp { public: SendProp(); virtual ~SendProp(); void Clear(); int GetOffset() const; void SetOffset( int i ); SendVarProxyFn GetProxyFn() const; void SetProxyFn( SendVarProxyFn f ); SendTableProxyFn GetDataTableProxyFn() const; void SetDataTableProxyFn( SendTableProxyFn f ); SendTable* GetDataTable() const; void SetDataTable( SendTable *pTable ); char const* GetExcludeDTName() const; // If it's one of the numbered "000", "001", etc properties in an array, then // these can be used to get its array property name for debugging. const char* GetParentArrayPropName(); void SetParentArrayPropName( char *pArrayPropName ); const char* GetName() const; bool IsSigned() const; bool IsExcludeProp() const; bool IsInsideArray() const; // Returns true if SPROP_INSIDEARRAY is set. void SetInsideArray(); // Arrays only. void SetArrayProp( SendProp *pProp ); SendProp* GetArrayProp() const; // Arrays only. void SetArrayLengthProxy( ArrayLengthSendProxyFn fn ); ArrayLengthSendProxyFn GetArrayLengthProxy() const; int GetNumElements() const; void SetNumElements( int nElements ); // Return the # of bits to encode an array length (must hold GetNumElements()). int GetNumArrayLengthBits() const; int GetElementStride() const; SendPropType GetType() const; int GetFlags() const; void SetFlags( int flags ); // Some property types bind more data to the SendProp in here. const void* GetExtraData() const; void SetExtraData( const void *pData ); public: RecvProp *m_pMatchingRecvProp; // This is temporary and only used while precalculating // data for the decoders. SendPropType m_Type; int m_nBits; float m_fLowValue; float m_fHighValue; SendProp *m_pArrayProp; // If this is an array, this is the property that defines each array element. ArrayLengthSendProxyFn m_ArrayLengthProxy; // This callback returns the array length. int m_nElements; // Number of elements in the array (or 1 if it's not an array). int m_ElementStride; // Pointer distance between array elements. union { char *m_pExcludeDTName; // If this is an exclude prop, then this is the name of the datatable to exclude a prop from. char *m_pParentArrayPropName; }; char *m_pVarName; float m_fHighLowMul; private: int m_Flags; // SPROP_ flags. SendVarProxyFn m_ProxyFn; // NULL for DPT_DataTable. SendTableProxyFn m_DataTableProxyFn; // Valid for DPT_DataTable. SendTable *m_pDataTable; // SENDPROP_VECTORELEM makes this negative to start with so we can detect that and // set the SPROP_IS_VECTOR_ELEM flag. int m_Offset; // Extra data bound to this property. const void *m_pExtraData; }; are 4 bytes must be added? |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 18th July 2025 - 06:06 AM |