Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Thats a unit flag isnt?

[DiscordArchive] Thats a unit flag isnt?

[DiscordArchive] Thats a unit flag isnt?

rektbyfaith
Administrator
0
10-25-2024, 01:15 PM
#1
Archived author: M'Dic • Posted: 2024-10-25T13:15:34.999000+00:00
Original source

Thats a unit flag isnt?
rektbyfaith
10-25-2024, 01:15 PM #1

Archived author: M'Dic • Posted: 2024-10-25T13:15:34.999000+00:00
Original source

Thats a unit flag isnt?

rektbyfaith
Administrator
0
10-25-2024, 01:16 PM
#2
Archived author: robinsch • Posted: 2024-10-25T13:16:40.903000+00:00
Original source

```cpp
bool __thiscall CGUnit_C::CanBeSpellClickedByLocalPlayer(CGUnit_C *this)
{
UnitFields *m_obj; // eax
WGUID targetGUID; // [esp+Ch] [ebp-8h] MAPDST BYREF

m_obj = this->m_obj;
if ( (m_obj->UNIT_NPC_FLAGS & UNIT_NPC_FLAG_SPELLCLICK) != 0 && (m_obj->UNIT_FIELD_FLAGS_2 & UNIT_FLAG2_PREVENT_SPELL_CLICK) == 0 )
{
if ( (this->m_obj->UNIT_FIELD_FLAGS_2 & UNIT_FLAG2_RESTRICT_PARTY_INTERACTION) == 0 )
return 1;
targetGUID = this->m_data->OBJECT_FIELD_GUID;
if ( CGUnit_C::IsPartyMember(&targetGUID) )
return 1;
targetGUID = this->m_data->OBJECT_FIELD_GUID;
if ( CGRaidInfo::IsPlayerOrPetInRaid(&targetGUID) )
return 1;
}
return 0;
}
```
rektbyfaith
10-25-2024, 01:16 PM #2

Archived author: robinsch • Posted: 2024-10-25T13:16:40.903000+00:00
Original source

```cpp
bool __thiscall CGUnit_C::CanBeSpellClickedByLocalPlayer(CGUnit_C *this)
{
UnitFields *m_obj; // eax
WGUID targetGUID; // [esp+Ch] [ebp-8h] MAPDST BYREF

m_obj = this->m_obj;
if ( (m_obj->UNIT_NPC_FLAGS & UNIT_NPC_FLAG_SPELLCLICK) != 0 && (m_obj->UNIT_FIELD_FLAGS_2 & UNIT_FLAG2_PREVENT_SPELL_CLICK) == 0 )
{
if ( (this->m_obj->UNIT_FIELD_FLAGS_2 & UNIT_FLAG2_RESTRICT_PARTY_INTERACTION) == 0 )
return 1;
targetGUID = this->m_data->OBJECT_FIELD_GUID;
if ( CGUnit_C::IsPartyMember(&targetGUID) )
return 1;
targetGUID = this->m_data->OBJECT_FIELD_GUID;
if ( CGRaidInfo::IsPlayerOrPetInRaid(&targetGUID) )
return 1;
}
return 0;
}
```

rektbyfaith
Administrator
0
10-25-2024, 01:19 PM
#3
Archived author: M'Dic • Posted: 2024-10-25T13:19:31.842000+00:00
Original source

Oh i ment the no name display
rektbyfaith
10-25-2024, 01:19 PM #3

Archived author: M'Dic • Posted: 2024-10-25T13:19:31.842000+00:00
Original source

Oh i ment the no name display

rektbyfaith
Administrator
0
10-25-2024, 01:20 PM
#4
Archived author: robinsch • Posted: 2024-10-25T13:20:00.039000+00:00
Original source

many things control it
rektbyfaith
10-25-2024, 01:20 PM #4

Archived author: robinsch • Posted: 2024-10-25T13:20:00.039000+00:00
Original source

many things control it

rektbyfaith
Administrator
0
10-25-2024, 01:20 PM
#5
Archived author: robinsch • Posted: 2024-10-25T13:20:50.268000+00:00
Original source

But you can disable it by using `UNIT_FLAG_UNINTERACTIBLE`
rektbyfaith
10-25-2024, 01:20 PM #5

Archived author: robinsch • Posted: 2024-10-25T13:20:50.268000+00:00
Original source

But you can disable it by using `UNIT_FLAG_UNINTERACTIBLE`

rektbyfaith
Administrator
0
10-25-2024, 01:21 PM
#6
Archived author: M'Dic • Posted: 2024-10-25T13:21:39.617000+00:00
Original source

<:fingerguns:854756052359708682>
rektbyfaith
10-25-2024, 01:21 PM #6

Archived author: M'Dic • Posted: 2024-10-25T13:21:39.617000+00:00
Original source

<:fingerguns:854756052359708682>

rektbyfaith
Administrator
0
10-25-2024, 01:23 PM
#7
Archived author: robinsch • Posted: 2024-10-25T13:23:48.537000+00:00
Original source

or creatures types, or `UNIT_STAND_FLAGS_UNTRACKABLE`
rektbyfaith
10-25-2024, 01:23 PM #7

Archived author: robinsch • Posted: 2024-10-25T13:23:48.537000+00:00
Original source

or creatures types, or `UNIT_STAND_FLAGS_UNTRACKABLE`

Recently Browsing
 
Recently Browsing