[DiscordArchive] What made u wanna revert to classic tickrates for energy <@456226577798135808> ?
[DiscordArchive] What made u wanna revert to classic tickrates for energy <@456226577798135808> ?
Archived author: Jyria • Posted: 2023-01-21T18:05:06.276000+00:00
Original source
What made u wanna revert to classic tickrates for energy <@456226577798135808> ?
Archived author: Deleted User • Posted: 2023-01-21T18:06:51.532000+00:00
Original source
We use TBC classes as a base.
Archived author: Deleted User • Posted: 2023-01-21T18:07:40.240000+00:00
Original source
Needed for things like powershifting etc which some people care a lot about. If I can replicate it I'd rather do that, if the client won't allow it then that class is gonna need some custom changes.
Archived author: robinsch • Posted: 2023-01-21T18:08:30.475000+00:00
Original source
The client 100% allows it
Archived author: robinsch • Posted: 2023-01-21T18:09:09.124000+00:00
Original source
I'm just not sure what your problem is exactly since it is really trivial in the client code.
Archived author: Titi • Posted: 2023-01-21T18:10:25.438000+00:00
Original source
To catter to the few minmaxers that only care about how strong their class is and are desperate for 1% power
Archived author: robinsch • Posted: 2023-01-21T18:10:27.280000+00:00
Original source
```cpp
int __thiscall CGUnit_C::GetPower(CGUnit_C* this, POWERTYPE powerType)
{
if (cvar_predictedPower->m_intValue != 0)
{
return this->PredictedPower[powerType];
}
if (powerType == POWER_HEALTH)
{
return this->UnitData->UNIT_FIELD_HEALTH;
}
return this->UnitData->UNIT_FIELD_POWERS[powerType];
}
```
Archived author: robinsch • Posted: 2023-01-21T18:11:20.398000+00:00
Original source
and if your cvar is 0 then it should just return whatever the server set UNIT_FIELD_POWERS to.
Archived author: Deleted User • Posted: 2023-01-21T18:15:20.332000+00:00
Original source
If anything that's positive and gives me hope. I bet something is going iffy server side.
Archived author: robinsch • Posted: 2023-01-21T18:19:23.722000+00:00
Original source
Yeah the client does nothing else than receive SMSG_UPDATE_OBJECT and then call the respective mirrorhandler, in your case UnitPowerUpdateHandler. Which again checks cvar_predictedPower and then sets UNIT_FIELD_POWERS.