#205 ground spawns need random heading assigned

Kapalı
image tarafından 3 yıl önce kere açıldı · 0 yorum
image 3 yıl önce olarak yorumlandı

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; ```
Giriş yap bu konuşmaya katılmak için.
Yükleniyor...
İptal
Kaydet
Henüz bir içerik yok.