MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / SpawnMonsterBodyPart

Method SpawnMonsterBodyPart

PanzerChasm/server/map.cpp:391–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391void Map::SpawnMonsterBodyPart(
392 const unsigned char monster_type_id, const unsigned char body_part_id,
393 const m_Vec3& pos, float angle )
394{
395 monsters_parts_birth_messages_.emplace_back();
396 Messages::MonsterPartBirth& message= monsters_parts_birth_messages_.back();
397
398 message.monster_type= monster_type_id;
399 message.part_id= body_part_id;
400
401 PositionToMessagePosition( pos, message.xyz );
402 message.angle= AngleToMessageAngle( angle );
403}
404
405void Map::PlayMonsterLinkedSound(
406 const EntityId monster_id,

Callers 1

SpawnBodyPartMethod · 0.80

Calls 2

AngleToMessageAngleFunction · 0.85

Tested by

no test coverage detected