mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-24 04:37:57 +03:00
Added CBaseAnimating functions for v4.3
parent
3c356de2b7
commit
e2d51a0615
@ -241,8 +241,30 @@ Base class for model-based entities. This class was already exposed to VScript,
|
|||||||
| *float* SetPoseParameter(*string* name, *float* value)| Set the specified pose parameter to the specified value |
|
| *float* SetPoseParameter(*string* name, *float* value)| Set the specified pose parameter to the specified value |
|
||||||
| *int* LookupBone(*string* name)| Get the named bone id |
|
| *int* LookupBone(*string* name)| Get the named bone id |
|
||||||
| *void* GetBoneTransform(*int* bone, *matrix3x4_t* matrix)| Get the transform for the specified bone |
|
| *void* GetBoneTransform(*int* bone, *matrix3x4_t* matrix)| Get the transform for the specified bone |
|
||||||
| *void* Dissolve(*string* material, *float* startTime, *bool* npcOnly, *int* dissolveType, *Vector* dissolverOrigin, *int* magnitude)| Dissolve. Use `"sprites/blueglow1.vmt"` for the default material, `0` for the default start time, `false` for `npcOnly` if you don't want it to check if the entity is a NPC first, `0` for the default dissolve type, `Vector(0,0,0)` for the default dissolver origin, and `0` for the default magnitude. |
|
| *void* GetPhysicsBone(*int* bone)| Get physics bone from bone index |
|
||||||
| *void* Scorch(*int* rate, *int* floor)| Makes the entity darker from scorching |
|
| *int* GetNumBones()| Get the number of bones |
|
||||||
|
| *int* GetSequence()| Gets the current sequence |
|
||||||
|
| *void* SetSequence(*int* sequence)| Gets the current sequence |
|
||||||
|
| *bool* SequenceLoops()| Checks if the current sequence loops |
|
||||||
|
| *int* LookupSequence(*string* name)| Gets the index of the specified sequence name |
|
||||||
|
| *int* LookupActivity(*string* name)| Gets the ID of the specified activity name |
|
||||||
|
| *bool* SequenceHasMovement(*int* sequence)| Checks if the specified sequence has movement |
|
||||||
|
| *float* GetSequenceMoveYaw(*int* sequence)| Gets the move yaw of the specified sequence |
|
||||||
|
| *float* GetSequenceMoveDist(*int* sequence)| Gets the move distance of the specified sequence |
|
||||||
|
| *string* GetSequenceName(*int* sequence)| Gets the name of the specified sequence index |
|
||||||
|
| *string* GetSequenceActivityName(*int* sequence)| Gets the activity name of the specified sequence index |
|
||||||
|
| *int* GetSequenceActivity(*int* sequence)| Gets the activity ID of the specified sequence index |
|
||||||
|
| *int* SelectWeightedSequence(*int* activity)| Selects a sequence for the specified activity ID |
|
||||||
|
| *int* SelectHeaviestSequence(*int* activity)| Selects the sequence with the heaviest weight for the specified activity ID |
|
||||||
|
| *CScriptKeyValues* GetSequenceKeyValues(*int* sequence) | Get a KeyValue class instance on the specified sequence. WARNING: This uses the same KeyValue pointer as GetModelKeyValues! |
|
||||||
|
| *int* GetBodygroup(*int* group) | Gets a bodygroup |
|
||||||
|
| *string* GetBodygroupName(*int* group) | Gets a bodygroup name |
|
||||||
|
| *int* FindBodygroupByName(*string* name) | Finds a bodygroup by name |
|
||||||
|
| *int* GetBodygroupCount() | Gets the number of models in a bodygroup |
|
||||||
|
| *int* GetNumBodyGroups() | Gets the number of bodygroups |
|
||||||
|
| *void* Dissolve(*string* material, *float* startTime, *bool* npcOnly, *int* dissolveType, *Vector* dissolverOrigin, *int* magnitude) | Dissolve. Use `"sprites/blueglow1.vmt"` for the default material, `0` for the default start time, `false` for `npcOnly` if you don't want it to check if the entity is a NPC first, `0` for the default dissolve type, `Vector(0,0,0)` for the default dissolver origin, and `0` for the default magnitude. |
|
||||||
|
| *void* Ignite(*float* flameLifetime, *bool* NPCOnly, *float* size, *bool* CalledByLevelDesigner)| Ignite. "NPCOnly" only lets this fall through if the entity is a NPC and "CalledByLevelDesigner" determines whether to treat this like the `Ignite` input or just an internal ignition call. |
|
||||||
|
| *void* Scorch(*int* rate, *int* floor) | Makes the entity darker from scorching |
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
@ -493,10 +515,10 @@ An entity which loads keyvalues from an external data file.
|
|||||||
|
|
||||||
| Signature | Description |
|
| Signature | Description |
|
||||||
|:------------- | :-----|
|
|:------------- | :-----|
|
||||||
| *handle* GetKeyValues()| Gets the external data expressed in CScriptKeyValues. |
|
| *CScriptKeyValues* GetKeyValues()| Gets the external data expressed in CScriptKeyValues. |
|
||||||
| *handle* GetKeyValueBlock()| Gets the current external data block expressed in CScriptKeyValues. |
|
| *CScriptKeyValues* GetKeyValueBlock()| Gets the current external data block expressed in CScriptKeyValues. |
|
||||||
| *void* SetKeyValues(handle *keyvalues*)| Sets the external data from a CScriptKeyValues object. |
|
| *void* SetKeyValues(*CScriptKeyValues* keyvalues)| Sets the external data from a CScriptKeyValues object. |
|
||||||
| *void* SetKeyValueBlock(handle *keyvalues*)| Sets the current external data block from a CScriptKeyValues object. |
|
| *void* SetKeyValueBlock(*CScriptKeyValues* keyvalues)| Sets the current external data block from a CScriptKeyValues object. |
|
||||||
| *void* LoadFile()| Loads external data from the external file. |
|
| *void* LoadFile()| Loads external data from the external file. |
|
||||||
| *void* SaveFile()| Saves the external data to the external file. |
|
| *void* SaveFile()| Saves the external data to the external file. |
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user