Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit 794ff8c

Browse files
authored
v1.26.0
1 parent bcd3e19 commit 794ff8c

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

squirrel.code-snippets

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
11
{
2+
// Consts
3+
"CharacterBone":
4+
{
5+
"prefix": "CharacterBone",
6+
"body": "CharacterBone.${1|Head,Neck,Pelvis,Spine,Spine1,Spine2,Spine3,L_Calf,L_Clavicle,L_Foot,L_Forearm,L_ForeTwist,L_Hand,L_Prop,L_Thigh,L_UpperArm,R_Calf,R_Clavicle,R_Foot,R_Forearm,R_ForeTwist,R_Hand,R_Prop,R_Thigh,R_UpperArm|}$0"
7+
},
8+
"PropBone":
9+
{
10+
"prefix": "PropBone",
11+
"body": "PropBone.${1|AttachSync,Grip_L_Elbow,Grip_L_Hand,Grip_L_Shoulder,Grip_R_Elbow,Grip_R_Hand,Grip_R_Shoulder,Head,HeadSync|}$0"
12+
},
13+
214
// Enums
315
"AIObjective":
416
{
@@ -730,6 +742,21 @@
730742
"prefix": "SimObjectProp.Create",
731743
"body": "SimObjectProp.Create(${model}, Vector3(${x}, ${y}, ${z}), Vector3(${rx}, ${ry}, ${rz}))$0"
732744
},
745+
"SimObjectProp.IsAttached(): boolean":
746+
{
747+
"prefix": [ "SimObjectProp.IsAttached", "IsAttached" ],
748+
"body": "IsAttached()$0"
749+
},
750+
"SimObjectProp.GetAttachBone(): string":
751+
{
752+
"prefix": [ "SimObjectProp.GetAttachBone", "GetAttachBone" ],
753+
"body": "GetAttachBone()$0"
754+
},
755+
"SimObjectProp.GetPropBone(): string":
756+
{
757+
"prefix": [ "SimObjectProp.GetPropBone", "GetPropBone" ],
758+
"body": "GetPropBone()$0"
759+
},
733760

734761
// SimCharacter
735762
"SimCharacter(): SimCharacter":
@@ -792,6 +819,41 @@
792819
"prefix": [ "SimCharacter.SetAIObjective", "SetAIObjective" ],
793820
"body": "SetAIObjective(${AIObjective})$0"
794821
},
822+
"SimCharacter.GetBonesCount(): int":
823+
{
824+
"prefix": [ "SimCharacter.GetBonesCount", "GetBonesCount" ],
825+
"body": "GetBonesCount()$0"
826+
},
827+
"SimCharacter.GetBoneName(): string":
828+
{
829+
"prefix": [ "SimCharacter.GetBoneName", "GetBoneName" ],
830+
"body": "GetBoneName(${index})$0"
831+
},
832+
"SimCharacter.GetBonePosition(): Vector3":
833+
{
834+
"prefix": [ "SimCharacter.GetBonePosition", "GetBonePosition" ],
835+
"body": "GetBonePosition(${hash})$0"
836+
},
837+
"SimCharacter.GetBoneRotation(): Vector3":
838+
{
839+
"prefix": [ "SimCharacter.GetBoneRotation", "GetBoneRotation" ],
840+
"body": "GetBoneRotation(${hash})$0"
841+
},
842+
"SimCharacter.AttachProp(): boolean":
843+
{
844+
"prefix": [ "SimCharacter.AttachProp", "AttachProp" ],
845+
"body": "AttachProp(${SimObjectProp})$0"
846+
},
847+
"SimCharacter.AttachProp(): [Advanced] boolean":
848+
{
849+
"prefix": [ "SimCharacter.AttachProp", "AttachProp" ],
850+
"body": "AttachProp(${SimObjectProp}, ${CharacterBone}, ${PropBone})$0"
851+
},
852+
"SimCharacter.DetachProp(): boolean":
853+
{
854+
"prefix": [ "SimCharacter.DetachProp", "DetachProp" ],
855+
"body": "DetachProp(${SimObjectProp})$0"
856+
},
795857
"SimCharacter.GetOccupantState(): CharacterOccupantState":
796858
{
797859
"prefix": [ "SimCharacter.GetOccupantState", "GetOccupantState" ],

0 commit comments

Comments
 (0)