Jump to content

Recommended Posts

[Mod] Displaying the cooldown of skills

 

screenshot_1.gif

 

The mod shows the time on the skill icons, which remains until full recovery (see animation above). Based on @Snre3n's code posted in thread "Source Code Features/Concepts Releases":

On 8/4/2019 at 11:59 PM, Snre3n said:

I5uedJZQpD.gif

 


//...
	static char buf[6];
	const float seconds_remaining = _fPlayTime - _fCurTime;
	const int minutes = static_cast<int>(seconds_remaining / 60);
	const int seconds = static_cast<int>(seconds_remaining - (minutes * 60));
	minutes > 1 ? _snprintf_s(buf, _TRUNCATE, "%.2d:%.2d", minutes, seconds)
				: seconds > 1 ? _snprintf_s(buf, _TRUNCATE, "%d", seconds)
							  : _snprintf_s(buf, _TRUNCATE, "%.1f", seconds_remaining);

	CGuiFont::s_Font.BRender(0, buf, x, y, COLOR_RED, COLOR_BLACK);
} // End of function void CAniClock::Render(int x, int y);

 

 

 

Requirements

 

Installed mod loading system for server and client (PKOdev.NET mod loader).

 

 

Modification information

 

Name: pkodev.mod.cooldown;

Version: 1.0;

Author: V3ct0r;

Type: for client (Game.exe);

Supported executable .exe files: GAME_13X_0, GAME_13X_1, GAME_13X_2, GAME_13X_3, GAME_13X_4, GAME_13X_5.

 

 

Installation

 

Place the mod DLL file "pkodev.mod.cooldown.client.13x_<ID> .dll" for your version of Game.exe into the "mods" folder of the game client.

 

 

Download

 

1) Binary release (.dll);

2) The source code of the mod for Visual Studio 2019 Community (C++).

 

 

If you encounter any problem, bug or have any questions, then feel free to write in this thread.

  • Like 3

Share this post


Link to post
Share on other sites
On 12/31/2021 at 12:47 PM, gunnapong said:

Why doesn't it show me?

Hello! Too little information from you.

 

1) Have you installed the mod loader?

2) Is your version of Game.exe supported by the mod loader?

3) Have you installed the mod correctly? Does it show up in the list of loaded mods?


Share this post


Link to post
Share on other sites

@V3ct0r Useful mod, thank you!
 

Just want you to implement it for items such as Flash Bomb, Blessed Potion, etc..
 

One more thing "I haven't tried yet" I think upon dying or switching characters the mod stops displaying the cooldown remaining. 

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, gunnapong said:

Game.exe I not Support.

That is the answer. Mod is support only some Game.exe:

Quote

Supported executable .exe files: GAME_13X_0, GAME_13X_1, GAME_13X_2, GAME_13X_3, GAME_13X_4, GAME_13X_5.

 

28 minutes ago, Sultan said:

@V3ct0r Useful mod, thank you!
 

Just want you to implement it for items such as Flash Bomb, Blessed Potion, etc..
 

One more thing "I haven't tried yet" I think upon dying or switching characters the mod stops displaying the cooldown remaining. 

This is normal behavior, since the display of the skill's cooldown time is tied to the animation, which also disappears. It looks like the server doesn't sync the cooldown time with the client in certain cases.

  • Like 1

Share this post


Link to post
Share on other sites
On 1/4/2022 at 8:40 PM, Sultan said:

Just want you to implement it for items such as Flash Bomb, Blessed Potion, etc..

+ 1 Would like to see this being implemented in the mod as well <3

Share this post


Link to post
Share on other sites

Hello @Myruni and @Sultan!

 

Quote

Just want you to implement it for items such as Flash Bomb, Blessed Potion, etc..

Do you can explain in more detail how it should look and work? Thank you!


Share this post


Link to post
Share on other sites
6 hours ago, V3ct0r said:

Hello @Myruni and @Sultan!

 

Do you can explain in more detail how it should look and work? Thank you!

12 minutes ago, okitora said:

Most likely they mean the same cooldown technique but for usables like Flash BombsCakes and so on.. 

@Myruni, @Sultan do you mean like this? Cooldown Preview

 

Yup, that's pretty much it as the current mod shared by V3ctor only applies to skills and not items. Would be nice to see if they apply to items as well :D

Share this post


Link to post
Share on other sites

Mod update 02/17/2021

 

+ Removed the cooldown from the effects panel (when the appropriate mod is installed);

+ If the skill cooldown lasts more than an hour, then the time format will be displayed as hours:minutes.

 

All [forum] users who use this mod on their servers, please update as soon as possible - links to the mod and its source code have been updated. Thanks to our participant @Fomin for the bugs found!

  • Like 1

Share this post


Link to post
Share on other sites
20 hours ago, gunnapong said:

Mods do not support the game.exe , I don't know the number, please tell me.

https://drive.google.com/file/d/1jfnNjzO8iGdNU9KTt0jfkbWaoyAkHPM5/view?usp=drivesdk

// void	CAniClock::Render(int x, int y)
const unsigned int CAniClock__Render = 0x004EF4B0;

// CGuiFont
const unsigned int CGuiFont = 0x0069A9F0;

// void CGuiFont::BRender(unsigned int nIndex, const char* str, int x, int y, DWORD color, DWORD shadow)
const unsigned int CGuiFont__BRender = 0x00471570;

// void CSkillCommand::Render(int x, int y)
const unsigned int CSkillCommand__Render = 0x00491C20;

 

  • Thanks 1

Share this post


Link to post
Share on other sites
2 hours ago, V3ct0r said:

// void	CAniClock::Render(int x, int y)
const unsigned int CAniClock__Render = 0x004EF4B0;

// CGuiFont
const unsigned int CGuiFont = 0x0069A9F0;

// void CGuiFont::BRender(unsigned int nIndex, const char* str, int x, int y, DWORD color, DWORD shadow)
const unsigned int CGuiFont__BRender = 0x00471570;

// void CSkillCommand::Render(int x, int y)
const unsigned int CSkillCommand__Render = 0x00491C20;

 

thank you very much it works fine

Share this post


Link to post
Share on other sites

Hello @V3ct0r,
 

Can you add "items" cooldown for it as well?
 

Such as:

- Cake 
- Flash Bomb

- Blessed Potion

 

As @okitora described in Cooldown Preview:

On 1/15/2022 at 8:15 PM, okitora said:

Most likely they mean the same cooldown technique but for usables like Flash BombsCakes and so on.. 

@Myruni, @Sultan do you mean like this? Cooldown Preview

 

Share this post


Link to post
Share on other sites
16 hours ago, Sultan said:

Hello @V3ct0r,
 

Can you add "items" cooldown for it as well?
 

Such as:

- Cake 
- Flash Bomb

- Blessed Potion

 

As @okitora described in Cooldown Preview:

 

If the items call a skillinfo target, it'll show a cooldown.

  • Thanks 1

Share this post


Link to post
Share on other sites
7 hours ago, Rogue said:

If the items call a skillinfo target, it'll show a cooldown.

Did you test it out? It's not working here, flash bomb has a skill info target in the ItemInfo line.

Share this post


Link to post
Share on other sites
On 8/26/2022 at 9:53 AM, eatsangels said:

A query, because it only works for me on the main map, but on pk maps it doesn't work for the Master Teleport skill

check that the skill has skill time

 

  • Thanks 1

Share this post


Link to post
Share on other sites

HI @V3ct0r is the mod loader necessary? this one looks amazing to add to my collection of tweak ,tho been five years since i played top would likee to save this one but installing that mod loader etc etc just for this idk >.> more so when i've no idea when i will play again ( if i will... ) Ty cheers

Share this post


Link to post
Share on other sites

Hello @IfYouSeeMeRun,

 

Yes, it is necessary. You can learn how to install the mod loader and the mod here:

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...