Forums WoW Modding Support Archives WoWModding Threads [DiscordArchive] hello i am trying to make a haste cap of 80k on...

[DiscordArchive] hello i am trying to make a haste cap of 80k on...

[DiscordArchive] hello i am trying to make a haste cap of 80k on...

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
07-05-2025, 12:40 AM
#1
Archived author: Needle • Posted: 2025-07-05T00:40:01.890000+00:00
Original source

rektbyfaith
07-05-2025, 12:40 AM #1

Archived author: Needle • Posted: 2025-07-05T00:40:01.890000+00:00
Original source

rektbyfaith
Administrator
0
07-05-2025, 12:40 AM
#2
Archived author: Needle • Posted: 2025-07-05T00:40:02.597000+00:00
Original source

Thread automatically created by darkqc in <#415944535718494208>
rektbyfaith
07-05-2025, 12:40 AM #2

Archived author: Needle • Posted: 2025-07-05T00:40:02.597000+00:00
Original source

Thread automatically created by darkqc in <#415944535718494208>

rektbyfaith
Administrator
0
07-05-2025, 08:21 AM
#3
Archived author: August • Posted: 2025-07-05T08:21:01.734000+00:00
Original source

```
void Unit::ApplyAttackTimePercentMod(WeaponAttackType att, float val, bool apply)
{
float amount = GetFloatValue(UNIT_FIELD_BASEATTACKTIME + AsUnderlyingType(att));
float base = 80000.0f;
float factor = 1.0f - ((val > base ? base : val) / base);

float remainingTimePct = (float)m_attackTimer[att] / (GetAttackTime(att) * m_modAttackSpeedPct[att]);
if (apply)
{
amount *= factor;
m_modAttackSpeedPct[att] *= factor;
}
else
{
amount /= factor;
m_modAttackSpeedPct[att] /= factor;
}

SetFloatValue(UNIT_FIELD_BASEATTACKTIME + AsUnderlyingType(att), amount);
m_attackTimer[att] = uint32(GetAttackTime(att) * m_modAttackSpeedPct[att] * remainingTimePct);
}

void Unit::ApplyCastTimePercentMod(float val, bool apply)
{
float amount = GetFloatValue(UNIT_MOD_CAST_SPEED);
float base = 80000.0f;
float factor = 1.0f - ((val > base ? base : val) / base);

if (apply)
amount *= factor;
else
amount /= factor;

SetModCastingSpeed(amount);
}
```
rektbyfaith
07-05-2025, 08:21 AM #3

Archived author: August • Posted: 2025-07-05T08:21:01.734000+00:00
Original source

```
void Unit::ApplyAttackTimePercentMod(WeaponAttackType att, float val, bool apply)
{
float amount = GetFloatValue(UNIT_FIELD_BASEATTACKTIME + AsUnderlyingType(att));
float base = 80000.0f;
float factor = 1.0f - ((val > base ? base : val) / base);

float remainingTimePct = (float)m_attackTimer[att] / (GetAttackTime(att) * m_modAttackSpeedPct[att]);
if (apply)
{
amount *= factor;
m_modAttackSpeedPct[att] *= factor;
}
else
{
amount /= factor;
m_modAttackSpeedPct[att] /= factor;
}

SetFloatValue(UNIT_FIELD_BASEATTACKTIME + AsUnderlyingType(att), amount);
m_attackTimer[att] = uint32(GetAttackTime(att) * m_modAttackSpeedPct[att] * remainingTimePct);
}

void Unit::ApplyCastTimePercentMod(float val, bool apply)
{
float amount = GetFloatValue(UNIT_MOD_CAST_SPEED);
float base = 80000.0f;
float factor = 1.0f - ((val > base ? base : val) / base);

if (apply)
amount *= factor;
else
amount /= factor;

SetModCastingSpeed(amount);
}
```

rektbyfaith
Administrator
0
07-05-2025, 08:21 AM
#4
Archived author: August • Posted: 2025-07-05T08:21:03.599000+00:00
Original source

try that instead
rektbyfaith
07-05-2025, 08:21 AM #4

Archived author: August • Posted: 2025-07-05T08:21:03.599000+00:00
Original source

try that instead

rektbyfaith
Administrator
0
07-05-2025, 08:21 AM
#5
Archived author: August • Posted: 2025-07-05T08:21:21.118000+00:00
Original source

those functions already exist just edit them
rektbyfaith
07-05-2025, 08:21 AM #5

Archived author: August • Posted: 2025-07-05T08:21:21.118000+00:00
Original source

those functions already exist just edit them

rektbyfaith
Administrator
0
07-06-2025, 12:37 AM
#6
Archived author: darkqc • Posted: 2025-07-06T00:37:01.417000+00:00
Original source

okay thank you i will
rektbyfaith
07-06-2025, 12:37 AM #6

Archived author: darkqc • Posted: 2025-07-06T00:37:01.417000+00:00
Original source

okay thank you i will

rektbyfaith
Administrator
0
07-06-2025, 03:47 PM
#7
Archived author: darkqc • Posted: 2025-07-06T15:47:28.298000+00:00
Original source

i need to modify them in unit.cpp right ?
rektbyfaith
07-06-2025, 03:47 PM #7

Archived author: darkqc • Posted: 2025-07-06T15:47:28.298000+00:00
Original source

i need to modify them in unit.cpp right ?

rektbyfaith
Administrator
0
07-06-2025, 03:47 PM
#8
Archived author: darkqc • Posted: 2025-07-06T15:47:38.677000+00:00
Original source

do i need to modify something inside player.cpp ?
rektbyfaith
07-06-2025, 03:47 PM #8

Archived author: darkqc • Posted: 2025-07-06T15:47:38.677000+00:00
Original source

do i need to modify something inside player.cpp ?

rektbyfaith
Administrator
0
07-06-2025, 03:58 PM
#9
Archived author: August • Posted: 2025-07-06T15:58:47.596000+00:00
Original source

only unit.cpp
rektbyfaith
07-06-2025, 03:58 PM #9

Archived author: August • Posted: 2025-07-06T15:58:47.596000+00:00
Original source

only unit.cpp

rektbyfaith
Administrator
0
07-06-2025, 05:03 PM
#10
Archived author: darkqc • Posted: 2025-07-06T17:03:14.504000+00:00
Original source

i have placed the code but its still getting stuck at with a 80k haste weapon
[Image: image.png?ex=690c2c12&is=690ada92&hm=810...4e1841b68&]
rektbyfaith
07-06-2025, 05:03 PM #10

Archived author: darkqc • Posted: 2025-07-06T17:03:14.504000+00:00
Original source

i have placed the code but its still getting stuck at with a 80k haste weapon
[Image: image.png?ex=690c2c12&is=690ada92&hm=810...4e1841b68&]

Pages (3): 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)