From e2d51a0615db4dfe0d3c120a0b248440afddb8e2 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Thu, 16 Jul 2020 13:40:03 -0500 Subject: [PATCH] Added CBaseAnimating functions for v4.3 --- VScript-in-Mapbase.md | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/VScript-in-Mapbase.md b/VScript-in-Mapbase.md index e45a23a..39fedc9 100644 --- a/VScript-in-Mapbase.md +++ b/VScript-in-Mapbase.md @@ -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 | | *int* LookupBone(*string* name)| Get the named bone id | | *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* Scorch(*int* rate, *int* floor)| Makes the entity darker from scorching | +| *void* GetPhysicsBone(*int* bone)| Get physics bone from bone index | +| *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 | |:------------- | :-----| -| *handle* GetKeyValues()| Gets the external data expressed in CScriptKeyValues. | -| *handle* GetKeyValueBlock()| Gets the current external data block expressed in CScriptKeyValues. | -| *void* SetKeyValues(handle *keyvalues*)| Sets the external data from a CScriptKeyValues object. | -| *void* SetKeyValueBlock(handle *keyvalues*)| Sets the current external data block from a CScriptKeyValues object. | +| *CScriptKeyValues* GetKeyValues()| Gets the external data expressed in CScriptKeyValues. | +| *CScriptKeyValues* GetKeyValueBlock()| Gets the current external data block expressed in CScriptKeyValues. | +| *void* SetKeyValues(*CScriptKeyValues* keyvalues)| Sets the external data 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* SaveFile()| Saves the external data to the external file. |