mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-25 21:21:08 +03:00
Fixed a few client-side VScript functions not binding correctly
This commit is contained in:
parent
a11cb93c42
commit
fa37adb1d5
@ -302,7 +302,7 @@ BEGIN_ENT_SCRIPTDESC( C_BaseAnimating, C_BaseEntity, "Animating models client-si
|
|||||||
DEFINE_SCRIPTFUNC_NAMED( ScriptSetPoseParameter, "SetPoseParameter", "Set the specified pose parameter to the specified value" )
|
DEFINE_SCRIPTFUNC_NAMED( ScriptSetPoseParameter, "SetPoseParameter", "Set the specified pose parameter to the specified value" )
|
||||||
DEFINE_SCRIPTFUNC( IsSequenceFinished, "Ask whether the main sequence is done playing" )
|
DEFINE_SCRIPTFUNC( IsSequenceFinished, "Ask whether the main sequence is done playing" )
|
||||||
#ifdef MAPBASE_VSCRIPT
|
#ifdef MAPBASE_VSCRIPT
|
||||||
DEFINE_SCRIPTFUNC( LookupAttachment, "Get the named attachement id" )
|
DEFINE_SCRIPTFUNC_NAMED( ScriptLookupAttachment, "LookupAttachment", "Get the named attachement id" )
|
||||||
DEFINE_SCRIPTFUNC_NAMED( ScriptGetAttachmentOrigin, "GetAttachmentOrigin", "Get the attachement id's origin vector" )
|
DEFINE_SCRIPTFUNC_NAMED( ScriptGetAttachmentOrigin, "GetAttachmentOrigin", "Get the attachement id's origin vector" )
|
||||||
DEFINE_SCRIPTFUNC_NAMED( ScriptGetAttachmentAngles, "GetAttachmentAngles", "Get the attachement id's angles as a p,y,r vector" )
|
DEFINE_SCRIPTFUNC_NAMED( ScriptGetAttachmentAngles, "GetAttachmentAngles", "Get the attachement id's angles as a p,y,r vector" )
|
||||||
DEFINE_SCRIPTFUNC_NAMED( ScriptGetAttachmentMatrix, "GetAttachmentMatrix", "Get the attachement id's matrix transform" )
|
DEFINE_SCRIPTFUNC_NAMED( ScriptGetAttachmentMatrix, "GetAttachmentMatrix", "Get the attachement id's matrix transform" )
|
||||||
@ -332,7 +332,7 @@ BEGIN_ENT_SCRIPTDESC( C_BaseAnimating, C_BaseEntity, "Animating models client-si
|
|||||||
DEFINE_SCRIPTFUNC( SetPlaybackRate, "" )
|
DEFINE_SCRIPTFUNC( SetPlaybackRate, "" )
|
||||||
DEFINE_SCRIPTFUNC( GetCycle, "" )
|
DEFINE_SCRIPTFUNC( GetCycle, "" )
|
||||||
DEFINE_SCRIPTFUNC( SetCycle, "" )
|
DEFINE_SCRIPTFUNC( SetCycle, "" )
|
||||||
DEFINE_SCRIPTFUNC( GetSkin, "Gets the model's skin" )
|
DEFINE_SCRIPTFUNC_NAMED( ScriptGetSkin, "GetSkin", "Gets the model's skin" )
|
||||||
DEFINE_SCRIPTFUNC( SetSkin, "Sets the model's skin" )
|
DEFINE_SCRIPTFUNC( SetSkin, "Sets the model's skin" )
|
||||||
|
|
||||||
DEFINE_SCRIPTFUNC( GetForceBone, "Gets the entity's force bone, which is used to determine which bone a ragdoll should apply its force to." )
|
DEFINE_SCRIPTFUNC( GetForceBone, "Gets the entity's force bone, which is used to determine which bone a ragdoll should apply its force to." )
|
||||||
|
@ -454,6 +454,7 @@ public:
|
|||||||
virtual bool IsViewModel() const;
|
virtual bool IsViewModel() const;
|
||||||
|
|
||||||
#ifdef MAPBASE_VSCRIPT
|
#ifdef MAPBASE_VSCRIPT
|
||||||
|
int ScriptLookupAttachment( const char *pAttachmentName ) { return LookupAttachment( pAttachmentName ); }
|
||||||
const Vector& ScriptGetAttachmentOrigin(int iAttachment);
|
const Vector& ScriptGetAttachmentOrigin(int iAttachment);
|
||||||
const Vector& ScriptGetAttachmentAngles(int iAttachment);
|
const Vector& ScriptGetAttachmentAngles(int iAttachment);
|
||||||
HSCRIPT ScriptGetAttachmentMatrix(int iAttachment);
|
HSCRIPT ScriptGetAttachmentMatrix(int iAttachment);
|
||||||
@ -465,6 +466,7 @@ public:
|
|||||||
int ScriptSelectWeightedSequence( int activity ) { return SelectWeightedSequence( (Activity)activity ); }
|
int ScriptSelectWeightedSequence( int activity ) { return SelectWeightedSequence( (Activity)activity ); }
|
||||||
|
|
||||||
// For VScript
|
// For VScript
|
||||||
|
int ScriptGetSkin() { return GetSkin(); }
|
||||||
void SetSkin( int iSkin ) { m_nSkin = iSkin; }
|
void SetSkin( int iSkin ) { m_nSkin = iSkin; }
|
||||||
|
|
||||||
int GetForceBone() { return m_nForceBone; }
|
int GetForceBone() { return m_nForceBone; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user