MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / AddVector

Method AddVector

core/UserMessagePBHelpers.h:1031–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1029 }
1030
1031 inline bool AddVector(const char *pszFieldName, Vector &vec)
1032 {
1033 GETCHECK_FIELD();
1034 CHECK_FIELD_TYPE(MESSAGE);
1035 CHECK_FIELD_REPEATED();
1036
1037 CMsgVector *msgVec = (CMsgVector *)msg->GetReflection()->AddMessage(msg, field);
1038 msgVec->set_x(vec.x);
1039 msgVec->set_y(vec.y);
1040 msgVec->set_z(vec.z);
1041
1042 return true;
1043 }
1044
1045 inline bool GetQAngle(const char *pszFieldName, QAngle *out)
1046 {

Callers 1

smn_PbAddVectorFunction · 0.80

Calls 1

AddMessageMethod · 0.80

Tested by

no test coverage detected