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

Method AddQAngle

core/UserMessagePBHelpers.h:1107–1119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105 }
1106
1107 inline bool AddQAngle(const char *pszFieldName, QAngle &vec)
1108 {
1109 GETCHECK_FIELD();
1110 CHECK_FIELD_TYPE(MESSAGE);
1111 CHECK_FIELD_REPEATED();
1112
1113 CMsgQAngle *msgAng = (CMsgQAngle *)msg->GetReflection()->AddMessage(msg, field);
1114 msgAng->set_x(vec.x);
1115 msgAng->set_y(vec.y);
1116 msgAng->set_z(vec.z);
1117
1118 return true;
1119 }
1120
1121 inline bool GetMessage(const char *pszFieldName, protobuf::Message **message)
1122 {

Callers 1

smn_PbAddAngleFunction · 0.80

Calls 1

AddMessageMethod · 0.80

Tested by

no test coverage detected