#205 ground spawns need random heading assigned

닫힘
image3 년 전을 오픈 · 0개의 코멘트
image 코멘트됨, 3 년 전

right now their include heading is disabled so they all point one direction

void Spawn::InitializePosPacketData(Player* player, PacketStruct* packet, bool bSpawnUpdate) {
    int16 version = packet->GetVersion();
    packet->setDataByName("pos_grid_id", appearance.pos.grid_id);
    bool include_heading = true;
    if (IsWidget() && ((Widget*)this)->GetIncludeHeading() == false)
        include_heading = false;
    else if (IsSign() && ((Sign*)this)->GetIncludeHeading() == false)
        include_heading = false;
    else if (IsGroundSpawn())
        include_heading = false;
right now their include heading is disabled so they all point one direction ``` void Spawn::InitializePosPacketData(Player* player, PacketStruct* packet, bool bSpawnUpdate) { int16 version = packet->GetVersion(); packet->setDataByName("pos_grid_id", appearance.pos.grid_id); bool include_heading = true; if (IsWidget() && ((Widget*)this)->GetIncludeHeading() == false) include_heading = false; else if (IsSign() && ((Sign*)this)->GetIncludeHeading() == false) include_heading = false; else if (IsGroundSpawn()) include_heading = false; ```
image 1 년 전가 Close
로그인하여 이 대화에 참여
로딩중...
취소
저장
아직 콘텐츠가 없습니다.