AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [CSGO] Kitsune - DetectSmoke API (https://forums.alliedmods.net/showthread.php?t=330466)

Sples1 02-05-2021 07:31

[CSGO] Kitsune - DetectSmoke API
 



https://i.imgur.com/1GEENq2.png
The plugin is mainly for other developers.
This plugin was created from an older code part of an unknown person.
I've made modifications to make it work for developer tracks.
This plugin will help developers to check how players interact with smokes. Track EnterSmoke, LeaveSmoke and you can check manually if the player is currently in smoke.

Include:
Code:

//Fired when a client enters a smoke
forward void Kitsune_OnClientEnterSmoke(int client);

//Fired when a client leaves a smoke
forward void Kitsune_OnClientLeaveSmoke(int client);

/**
 * Check if the player is currently in smoke
 *
 * @param client                                Client index
 * @return                                        Return true if player is in smoke, otherwise false.
 */
native bool Kitsune_IsPlayerInSmoke(int client);


https://i.imgur.com/iXZ8VvF.png
Spoiler

:fox:
Download (1.2): here
GitHub (1.2): here

NanoC 02-05-2021 14:55

Re: [CSGO] Kitsune - DetectSmoke API
 
Good job Entity.
My suggestion would be = add support for every single grenade not just smoke, that would be cool ;)

`666 02-05-2021 16:12

Re: [CSGO] Kitsune - DetectSmoke API
 
Thank you.

Sples1 02-05-2021 16:46

Re: [CSGO] Kitsune - DetectSmoke API
 
Quote:

Originally Posted by NanoC (Post 2735833)
Good job Entity.
My suggestion would be = add support for every single grenade not just smoke, that would be cool ;)

What do you mean about all grenades?
This one tracks if player is inside a smoke ( particle ).
I don't know what you want to track about other grenades :O

Also I highly appreciate your feedback guys! It means a lot sometimes. <3

SSheriFF 02-06-2021 11:56

Re: [CSGO] Kitsune - DetectSmoke API
 
Great idea, thank you!

`666 03-14-2021 13:38

Re: [CSGO] Kitsune - DetectSmoke API
 
Must RegPluginLibrary or get error
Quote:

[SM] Unable to load plugin "test.smx": Could not find required plugin "kit_detect_smoke"
Code:

public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
        RegPluginLibrary("kit_detect_smoke");
        return APLRes_Success;
}


Sples1 03-20-2021 19:13

Re: [CSGO] Kitsune - DetectSmoke API
 
Quote:

Originally Posted by `666 (Post 2740452)
Must RegPluginLibrary or get error
Code:

public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max)
{
        RegPluginLibrary("kit_detect_smoke");
        return APLRes_Success;
}


I really don't know how I missed that. Thank you.
Update pushed, added Plugin Library and fixed miss-typo. <3


All times are GMT -4. The time now is 09:55.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.