-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnav_ladder.h.txt
43 lines (32 loc) · 1.25 KB
/
nav_ladder.h.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
DECLARE_ENT_SCRIPTDESC();
// VSCRIPT
HSCRIPT GetScriptInstance();
HSCRIPT m_hScriptInstance;
int ScriptGetID( void ) const { return (int)GetID(); }
void ScriptConnectTo( HSCRIPT hArea );
void ScriptDisconnect( HSCRIPT hArea );
bool ScriptIsConnected( HSCRIPT hArea, int dir );
Vector ScriptGetBottomOrigin( void ) const { return m_bottom; }
Vector ScriptGetTopOrigin( void ) const { return m_top; }
HSCRIPT ScriptGetBottomArea( );
HSCRIPT ScriptGetTopArea( );
HSCRIPT ScriptGetLadderEntity( void );
bool ScriptIsInUse( HSCRIPT hIgnore );
int ScriptGetDir( void ) const { return (int)GetDir(); }
float ScriptGetLength( void ) const { return m_length; }
float ScriptGetWidth( void ) const { return m_width; }
----------------------------------------------
// Add the following to the constructor
//CNavLadder( void )
//
m_hScriptInstance = NULL;
----------------------------------------------
inline HSCRIPT ToHScript( CNavLadder *pLadder )
{
return ( pLadder ) ? pLadder->GetScriptInstance() : NULL;
}
template <> ScriptClassDesc_t *GetScriptDesc<CNavLadder>( CNavLadder * );
inline CNavLadder *ToNavLadder( HSCRIPT hScript )
{
return ( hScript ) ? (CNavLadder *)g_pScriptVM->GetInstanceValue( hScript, GetScriptDescForClass(CNavLadder) ) : NULL;
}